!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; }return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?""!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("'):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b=''):b='','
'+b+"
"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("
",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+10?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide(b)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(a){},prevSlide:function(a){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery); (function($){ $(document).on('ready' + rlArgs.customEvents, function (){ $.event.trigger({ type: 'doResponsiveLightbox', script: rlArgs.script, selector: rlArgs.selector, args: rlArgs }); }); $(document).on('doResponsiveLightbox', function(event){ var script=event.script, selector=event.selector, args=event.args; if(typeof script==='undefined'||typeof selector==='undefined'){ return false; } var observe_script_dom=(function (){ var MutationObserver=window.MutationObserver||window.WebKitMutationObserver, eventListenerSupported=window.addEventListener; return function(obj, only_added, callback){ if(MutationObserver){ var obs=new MutationObserver(function(mutations, observer){ if(only_added){ if(mutations[0].addedNodes.length) callback(); }else{ if(mutations[0].addedNodes.length||mutations[0].removedNodes.length) callback(); }}); obs.observe(obj, { childList: true, subtree: true }); }else if(eventListenerSupported){ obj.addEventListener('DOMNodeInserted', callback, false); if(!only_added){ obj.addEventListener('DOMNodeRemoved', callback, false); }} }})(); rl_view_image=function(script, url){ $.event.trigger({ type: 'doLightboxViewImage', script: script, url: url }); } rl_hide_image=function(script, url){ $.event.trigger({ type: 'doLightboxHideImage', script: script, url: url }); } setTimeout(function (){ var flex=$('.flex-viewport'); if(rlArgs.woocommerce_gallery==='1'&&flex.length){ $('.zoomImg').css('cursor', 'pointer'); $(document).on('click', '.flex-active-slide .zoomImg', function(e){ e.preventDefault(); e.stopPropagation(); flex.find('.flex-active-slide a[data-rel]').trigger('click'); }); }}, 10); switch(script){ case 'swipebox': var slide=$('#swipebox-overlay').find('.slide.current'), image_source='', allow_hide=false, close_executed=false; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').swipebox({ useCSS:(rlArgs.animation==='1' ? true:false), useSVG:(rlArgs.useSVG==='1' ? true:false), hideCloseButtonOnMobile:(rlArgs.hideCloseButtonOnMobile==='1' ? true:false), removeBarsOnMobile:(rlArgs.removeBarsOnMobile==='1' ? true:false), hideBarsDelay:(rlArgs.hideBars==='1' ? parseInt(rlArgs.hideBarsDelay):0), videoMaxWidth: parseInt(rlArgs.videoMaxWidth), loopAtEnd:(rlArgs.loopAtEnd==='1' ? true:false), afterOpen: function (){ close_executed=false; slide=$('#swipebox-overlay').find('.slide.current'); var image=slide.find('img').attr('src'); if(typeof image!=='undefined'){ image_source=image; rl_view_image(script, image_source); }else{ image_source=''; } observe_script_dom(document.getElementById('swipebox-slider'), false, function (){ if(image_source===''){ var image=slide.find('img').attr('src'); if(typeof image!=='undefined'){ image_source=image; rl_view_image(script, image_source); }else{ image_source=''; }} }); }, nextSlide: function (){ slide=$('#swipebox-overlay').find('.slide.current'); var image=slide.find('img').attr('src'); if(typeof image!=='undefined'){ image_source=image; rl_view_image(script, image_source); }else{ image_source=''; }}, prevSlide: function (){ slide=$('#swipebox-overlay').find('.slide.current'); var image=slide.find('img').attr('src'); if(typeof image!=='undefined'){ image_source=image; rl_view_image(script, image_source); }else{ image_source=''; }}, afterClose: function (){ close_executed=true; if(allow_hide){ rl_hide_image(script, image_source); allow_hide=false; }} }); $(window).on('resize', function (){ if(!close_executed){ allow_hide=true; }}); break; case 'prettyphoto': var view_disabled=false, last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').prettyPhoto({ hook: 'data-rel', animation_speed: rlArgs.animationSpeed, slideshow:(rlArgs.slideshow==='1' ? parseInt(rlArgs.slideshowDelay):false), autoplay_slideshow:(rlArgs.slideshowAutoplay==='1' ? true:false), opacity: rlArgs.opacity, show_title:(rlArgs.showTitle==='1' ? true:false), allow_resize:(rlArgs.allowResize==='1' ? true:false), allow_expand:(rlArgs.allowExpand==='1' ? true:false), default_width: parseInt(rlArgs.width), default_height: parseInt(rlArgs.height), counter_separator_label: rlArgs.separator, theme: rlArgs.theme, horizontal_padding: parseInt(rlArgs.horizontalPadding), hideflash:(rlArgs.hideFlash==='1' ? true:false), wmode: rlArgs.wmode, autoplay:(rlArgs.videoAutoplay==='1' ? true:false), modal:(rlArgs.modal==='1' ? true:false), deeplinking:(rlArgs.deeplinking==='1' ? true:false), overlay_gallery:(rlArgs.overlayGallery==='1' ? true:false), keyboard_shortcuts:(rlArgs.keyboardShortcuts==='1' ? true:false), social_tools:(rlArgs.social==='1' ? '':''), ie6_fallback: true, changepicturecallback: function (){ if(view_disabled){ view_disabled=false; return; } last_image=$('#pp_full_res').find('img').attr('src'); rl_view_image(script, last_image); if(rlArgs.allowExpand==='1'){ $('a.pp_expand').on('click', function (){ view_disabled=true; }); }}, callback: function (){ rl_hide_image(script, last_image); }}); break; case 'fancybox': var last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').fancybox({ modal:(rlArgs.modal==='1' ? true:false), overlayShow:(rlArgs.showOverlay==='1' ? true:false), showCloseButton:(rlArgs.showCloseButton==='1' ? true:false), enableEscapeButton:(rlArgs.enableEscapeButton==='1' ? true:false), hideOnOverlayClick:(rlArgs.hideOnOverlayClick==='1' ? true:false), hideOnContentClick:(rlArgs.hideOnContentClick==='1' ? true:false), cyclic:(rlArgs.cyclic==='1' ? true:false), showNavArrows:(rlArgs.showNavArrows==='1' ? true:false), autoScale:(rlArgs.autoScale==='1' ? true:false), scrolling: rlArgs.scrolling, centerOnScroll:(rlArgs.centerOnScroll==='1' ? true:false), opacity:(rlArgs.opacity==='1' ? true:false), overlayOpacity: parseFloat(rlArgs.overlayOpacity / 100), overlayColor: rlArgs.overlayColor, titleShow:(rlArgs.titleShow==='1' ? true:false), titlePosition: rlArgs.titlePosition, transitionIn: rlArgs.transitions, transitionOut: rlArgs.transitions, easingIn: rlArgs.easings, easingOut: rlArgs.easings, speedIn: parseInt(rlArgs.speeds), speedOut: parseInt(rlArgs.speeds), changeSpeed: parseInt(rlArgs.changeSpeed), changeFade: parseInt(rlArgs.changeFade), padding: parseInt(rlArgs.padding), margin: parseInt(rlArgs.margin), width: parseInt(rlArgs.videoWidth), height: parseInt(rlArgs.videoHeight), onComplete: function (){ last_image=$('#fancybox-content').find('img').attr('src'); rl_view_image(script, last_image); }, onClosed: function (){ rl_hide_image(script, last_image); }}); break; case 'nivo': $.each($('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]'), function (){ var attr=$(this).attr('data-rel'); if(typeof attr==='undefined'||attr==false){ attr=$(this).attr('rel'); } if(typeof attr!=='undefined'&&attr!==false){ var match=attr.match(new RegExp(rlArgs.selector + '\\-(gallery\\-(?:[\\da-z]{1,4}))', 'ig')); if(match!==null){ $(this).attr('data-lightbox-gallery', match[0]); }} }); var observer_initialized=false, change_allowed=true, last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').nivoLightbox({ effect: rlArgs.effect, clickOverlayToClose:(rlArgs.clickOverlayToClose==='1' ? true:false), keyboardNav:(rlArgs.keyboardNav==='1' ? true:false), errorMessage: rlArgs.errorMessage, afterShowLightbox: function(lightbox){ var content=$(lightbox)[0].find('.nivo-lightbox-content'); if(!observer_initialized){ observer_initialized=true; observe_script_dom(document.getElementsByClassName('nivo-lightbox-content')[0], true, function (){ if(change_allowed){ last_image=content.find('.nivo-lightbox-image img').attr('src'); rl_view_image(script, last_image); change_allowed=false; }}); }}, afterHideLightbox: function (){ change_allowed=true; rl_hide_image(script, last_image); }, onPrev: function(element){ change_allowed=false; last_image=element[0].attr('href'); rl_view_image(script, last_image); }, onNext: function(element){ change_allowed=false; last_image=element[0].attr('href'); rl_view_image(script, last_image); }}); break; case 'imagelightbox': var selectors=[ ], last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $(selectors).each(function(i, item){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').imageLightbox({ animationSpeed: parseInt(rlArgs.animationSpeed), preloadNext:(rlArgs.preloadNext==='1' ? true:false), enableKeyboard:(rlArgs.enableKeyboard==='1' ? true:false), quitOnEnd:(rlArgs.quitOnEnd==='1' ? true:false), quitOnImgClick:(rlArgs.quitOnImageClick==='1' ? true:false), quitOnDocClick:(rlArgs.quitOnDocumentClick==='1' ? true:false), onLoadEnd: function (){ last_image=$('#imagelightbox').attr('src'); rl_view_image(script, last_image); }, onEnd: function (){ rl_hide_image(script, last_image); }}); }); } break; case 'tosrus': var selectors=[ ], last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $(selectors).each(function(i, item){ var tos=$('a[data-rel="' + item + '"], a[rel="' + item + '"]').tosrus({ infinite:(rlArgs.infinite==='1' ? true:false), autoplay: { play:(rlArgs.autoplay==='1' ? true:false), pauseOnHover:(rlArgs.pauseOnHover==='1' ? true:false), timeout: rlArgs.timeout }, effect: rlArgs.effect, keys: { prev:(rlArgs.keys==='1' ? true:false), next:(rlArgs.keys==='1' ? true:false), close:(rlArgs.keys==='1' ? true:false) }, pagination: { add:(rlArgs.pagination==='1' ? true:false), type: rlArgs.paginationType }, show: false, buttons: true, caption: { add: true, attributes: [ "title" ] }, wrapper: { onClick: rlArgs.closeOnClick==='1' ? 'close':'toggleUI' }}); tos.bind('sliding.tos', function(event, number){ last_image=$($(event.target).find('.tos-slider .tos-slide')[number]).find('img').attr('src'); rl_view_image(script, last_image); }); tos.bind('closing.tos', function (){ rl_hide_image(script, last_image); }); }); } break; case 'featherlight': var selectors=[ ], last_image=''; $('a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $.extend($.featherlight.defaults, { openSpeed: parseInt(rlArgs.openSpeed), closeSpeed: parseInt(rlArgs.closeSpeed), closeOnClick: rlArgs.closeOnClick, closeOnEsc:(rlArgs.closeOnEsc==='1' ? true:false), afterOpen: function(event){ last_image=event.currentTarget.href; rl_view_image(script, last_image); }, afterClose: function (){ rl_hide_image(script, last_image); }}); $(selectors).each(function(i, item){ if(/-gallery-/.test(item)){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlightGallery({ galleryFadeIn: parseInt(rlArgs.galleryFadeIn), galleryFadeOut: parseInt(rlArgs.galleryFadeOut), previousIcon: '❮', nextIcon: '❯' }); }else if(/-video-/.test(item)){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlight(); }else{ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlight(); }}); } break; }}); })(jQuery); (function($){ $.prettyPhoto={version: '3.1.5'}; $.fn.prettyPhoto=function(pp_settings){ pp_settings=jQuery.extend({ hook: 'rel', animation_speed: 'fast', ajaxcallback: function(){}, slideshow: 0, autoplay_slideshow: false, opacity: 0.80, show_title: true, allow_resize: true, allow_expand: false, default_width: 500, default_height: 300, counter_separator_label: '/', theme: 'pp_default', horizontal_padding: 20, hideflash: false, wmode: 'opaque', autoplay: false, modal: false, deeplinking: true, overlay_gallery: false, overlay_gallery_max: 30, keyboard_shortcuts: true, changepicturecallback: function(){}, callback: function(){}, ie6_fallback: true, markup: '
\
\
\
\
\
\
\
\
\
\
\
\ Expand \
\ next \ previous \
\
\
\
\ Previous \

0/0

\ Next \
\ Close \
\
\
\
\
\
\
\
\
\
\
\
\
', gallery_markup: '', image_markup: '', flash_markup: '', quicktime_markup: '', iframe_markup: '', inline_markup: '
{content}
', custom_markup: '', social_tools: '' }, pp_settings); var matchedObjects=this, percentBased=false, pp_dimensions, pp_open, pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth, pp_topHeightExtra, windowHeight=$(window).height(), windowWidth=$(window).width(), pp_slideshow; doresize=true, scroll_pos=_get_scroll(); $(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){ _center_overlay(); _resize_overlay(); }); if(pp_settings.keyboard_shortcuts){ $(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){ if(typeof $pp_pic_holder!='undefined'){ if($pp_pic_holder.is(':visible')){ switch(e.keyCode){ case 37: $.prettyPhoto.changePage('previous'); e.preventDefault(); break; case 39: $.prettyPhoto.changePage('next'); e.preventDefault(); break; case 27: if(!settings.modal) $.prettyPhoto.close(); e.preventDefault(); break; };}; };}); }; $.prettyPhoto.initialize=function(){ settings=pp_settings; if(settings.theme=='pp_default') settings.horizontal_padding=13; theRel=$(this).attr(settings.hook); galleryRegExp=/\[(?:.*)\]/; isSet=(galleryRegExp.exec(theRel)) ? true:false; pp_images=(isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel)!=-1) return $(n).attr('href'); }):$.makeArray($(this).attr('href')); pp_titles=(isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel)!=-1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt'):""; }):$.makeArray($(this).find('img').attr('alt')); pp_descriptions=(isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel)!=-1) return ($(n).attr('title')) ? $(n).attr('title'):""; }):$.makeArray($(this).attr('title')); if(pp_images.length > settings.overlay_gallery_max) settings.overlay_gallery=false; set_position=jQuery.inArray($(this).attr('href'), pp_images); rel_index=(isSet) ? set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this)); _build_overlay(this); if(settings.allow_resize) $(window).bind('scroll.prettyphoto',function(){ _center_overlay(); }); $.prettyPhoto.open(); return false; } $.prettyPhoto.open=function(event){ if(typeof settings=="undefined"){ settings=pp_settings; pp_images=$.makeArray(arguments[0]); pp_titles=(arguments[1]) ? $.makeArray(arguments[1]):$.makeArray(""); pp_descriptions=(arguments[2]) ? $.makeArray(arguments[2]):$.makeArray(""); isSet=(pp_images.length > 1) ? true:false; set_position=(arguments[3])? arguments[3]: 0; _build_overlay(event.target); } if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden'); _checkPosition($(pp_images).size()); $('.pp_loaderIcon').show(); if(settings.deeplinking) setHashtag(); if(settings.social_tools){ facebook_like_link=settings.social_tools.replace('{location_href}', encodeURIComponent(location.href)); $pp_pic_holder.find('.pp_social').html(facebook_like_link); } $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity); $pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + $(pp_images).size()); if(typeof pp_descriptions[set_position]!='undefined'&&pp_descriptions[set_position]!=""){ $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position])); }else{ $pp_pic_holder.find('.pp_description').hide(); } movie_width=(parseFloat(getParam('width',pp_images[set_position]))) ? getParam('width',pp_images[set_position]):settings.default_width.toString(); movie_height=(parseFloat(getParam('height',pp_images[set_position]))) ? getParam('height',pp_images[set_position]):settings.default_height.toString(); percentBased=false; if(movie_height.indexOf('%')!=-1){ movie_height=parseFloat(($(window).height() * parseFloat(movie_height) / 100) - 150); percentBased=true; } if(movie_width.indexOf('%')!=-1){ movie_width=parseFloat(($(window).width() * parseFloat(movie_width) / 100) - 150); percentBased=true; } $pp_pic_holder.fadeIn(function(){ imgPreloader=""; skipInjection=false; switch(_getFileType(pp_images[set_position])){ case 'image': imgPreloader=new Image(); nextImage=new Image(); if(isSet&&set_position < $(pp_images).size() -1) nextImage.src=pp_images[set_position + 1]; prevImage=new Image(); if(isSet&&pp_images[set_position - 1]) prevImage.src=pp_images[set_position - 1]; $pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]); imgPreloader.onload=function(){ pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height); _showContent(); }; imgPreloader.onerror=function(){ alert('Image cannot be loaded. Make sure the path is correct and image exist.'); $.prettyPhoto.close(); }; imgPreloader.src=pp_images[set_position]; break; case 'youtube': pp_dimensions=_fitToViewport(movie_width,movie_height); movie_id=getParam('v',pp_images[set_position]); if(movie_id==""){ movie_id=pp_images[set_position].split('youtu.be/'); movie_id=movie_id[1]; if(movie_id.indexOf('?') > 0) movie_id=movie_id.substr(0,movie_id.indexOf('?')); if(movie_id.indexOf('&') > 0) movie_id=movie_id.substr(0,movie_id.indexOf('&')); } movie='http://www.youtube.com/embed/'+movie_id; (getParam('rel',pp_images[set_position])) ? movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1"; if(settings.autoplay) movie +="&autoplay=1"; toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie); break; case 'vimeo': pp_dimensions=_fitToViewport(movie_width,movie_height); movie_id=pp_images[set_position]; var regExp=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/; var match=movie_id.match(regExp); movie='http://player.vimeo.com/video/'+ match[3] +'?title=0&byline=0&portrait=0'; if(settings.autoplay) movie +="&autoplay=1;"; vimeo_width=pp_dimensions['width'] + '/embed/?moog_width='+ pp_dimensions['width']; toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie); break; case 'quicktime': pp_dimensions=_fitToViewport(movie_width,movie_height); pp_dimensions['height']+=15; pp_dimensions['contentHeight']+=15; pp_dimensions['containerHeight']+=15; toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay); break; case 'flash': pp_dimensions=_fitToViewport(movie_width,movie_height); flash_vars=pp_images[set_position]; flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars') + 10,pp_images[set_position].length); filename=pp_images[set_position]; filename=filename.substring(0,filename.indexOf('?')); toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars); break; case 'iframe': pp_dimensions=_fitToViewport(movie_width,movie_height); frame_url=pp_images[set_position]; frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1); toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url); break; case 'ajax': doresize=false; pp_dimensions=_fitToViewport(movie_width,movie_height); doresize=true; skipInjection=true; $.get(pp_images[set_position],function(responseHTML){ toInject=settings.inline_markup.replace(/{content}/g,responseHTML); $pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject; _showContent(); }); break; case 'custom': pp_dimensions=_fitToViewport(movie_width,movie_height); toInject=settings.custom_markup; break; case 'inline': myClone=$(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show(); doresize=false; pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height()); doresize=true; $(myClone).remove(); toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html()); break; }; if(!imgPreloader&&!skipInjection){ $pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject; _showContent(); };}); return false; }; $.prettyPhoto.changePage=function(direction){ currentGalleryPage=0; if(direction=='previous'){ set_position--; if(set_position < 0) set_position=$(pp_images).size()-1; }else if(direction=='next'){ set_position++; if(set_position > $(pp_images).size()-1) set_position=0; }else{ set_position=direction; }; rel_index=set_position; if(!doresize) doresize=true; if(settings.allow_expand){ $('.pp_contract').removeClass('pp_contract').addClass('pp_expand'); } _hideContent(function(){ $.prettyPhoto.open(); }); }; $.prettyPhoto.changeGalleryPage=function(direction){ if(direction=='next'){ currentGalleryPage ++; if(currentGalleryPage > totalPage) currentGalleryPage=0; }else if(direction=='previous'){ currentGalleryPage --; if(currentGalleryPage < 0) currentGalleryPage=totalPage; }else{ currentGalleryPage=direction; }; slide_speed=(direction=='next'||direction=='previous') ? settings.animation_speed:0; slide_to=currentGalleryPage * (itemsPerPage * itemWidth); $pp_gallery.find('ul').animate({left:-slide_to},slide_speed); }; $.prettyPhoto.startSlideshow=function(){ if(typeof pp_slideshow=='undefined'){ $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){ $.prettyPhoto.stopSlideshow(); return false; }); pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow); }else{ $.prettyPhoto.changePage('next'); };} $.prettyPhoto.stopSlideshow=function(){ $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){ $.prettyPhoto.startSlideshow(); return false; }); clearInterval(pp_slideshow); pp_slideshow=undefined; } $.prettyPhoto.close=function(){ if($pp_overlay.is(":animated")) return; $.prettyPhoto.stopSlideshow(); $pp_pic_holder.stop().find('object,embed').css('visibility','hidden'); $('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); }); $pp_overlay.fadeOut(settings.animation_speed, function(){ if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible'); $(this).remove(); $(window).unbind('scroll.prettyphoto'); clearHashtag(); settings.callback(); doresize=true; pp_open=false; delete settings; }); }; function _showContent(){ $('.pp_loaderIcon').hide(); projectedTop=scroll_pos['scrollTop'] + ((windowHeight/2) - (pp_dimensions['containerHeight']/2)); if(projectedTop < 0) projectedTop=0; $pp_pic_holder.find('.pp_content') .animate({ height:pp_dimensions['contentHeight'], width:pp_dimensions['contentWidth'] },settings.animation_speed); $pp_pic_holder.animate({ 'top': projectedTop, 'left': ((windowWidth/2) - (pp_dimensions['containerWidth']/2) < 0) ? 0:(windowWidth/2) - (pp_dimensions['containerWidth']/2), width:pp_dimensions['containerWidth'] },settings.animation_speed,function(){ $pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']); $pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed); if(isSet&&_getFileType(pp_images[set_position])=="image"){ $pp_pic_holder.find('.pp_hoverContainer').show(); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); } if(settings.allow_expand){ if(pp_dimensions['resized']){ $('a.pp_expand,a.pp_contract').show(); }else{ $('a.pp_expand').hide(); }} if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open) $.prettyPhoto.startSlideshow(); settings.changepicturecallback(); pp_open=true; }); _insert_gallery(); pp_settings.ajaxcallback(); }; function _hideContent(callback){ $pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden'); $pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){ $('.pp_loaderIcon').show(); callback(); }); }; function _checkPosition(setCount){ (setCount > 1) ? $('.pp_nav').show():$('.pp_nav').hide(); }; function _fitToViewport(width,height){ resized=false; _getDimensions(width,height); var imageWidth=width; var imageHeight=height; if(((pp_containerWidth > windowWidth)||(pp_containerHeight > windowHeight))&&doresize&&settings.allow_resize&&!percentBased){ var resized=true; if(pp_containerWidth > windowWidth) pp_containerWidth=windowWidth - settings.horizontal_padding * 2; if(pp_containerHeight > windowHeight) pp_containerHeight=windowHeight - pp_topHeightExtra - settings.horizontal_padding * 2; var stageRatio=pp_containerHeight / pp_containerWidth; var imageRatio=imageHeight / imageWidth; if(stageRatio >=imageRatio){ imageWidth=pp_containerWidth; imageHeight=(imageWidth/ width) * imageHeight; }else{ imageHeight=pp_containerHeight; imageWidth=(imageHeight / height) * imageWidth; } _getDimensions(imageWidth, imageHeight); }; return { width:Math.floor(imageWidth), height:Math.floor(imageHeight), containerHeight:Math.floor(pp_containerHeight), containerWidth:Math.floor(pp_containerWidth) + (settings.horizontal_padding * 2), contentHeight:Math.floor(pp_contentHeight), contentWidth:Math.floor(pp_contentWidth), resized:resized };}; function _getDimensions(width,height){ width=parseFloat(width); height=parseFloat(height); $pp_details=$pp_pic_holder.find('.pp_details'); $pp_details.width(width); detailsHeight=parseFloat($pp_details.css('marginTop')) + parseFloat($pp_details.css('marginBottom')); $pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({ 'position':'absolute', 'top':-10000 }); detailsHeight +=$pp_details.height(); detailsHeight=(detailsHeight <=34) ? 36:detailsHeight; $pp_details.remove(); titleHeight=0; pp_contentHeight=height + detailsHeight; pp_contentWidth=width; pp_topHeightExtra=detailsHeight + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height(); pp_containerHeight=pp_contentHeight + titleHeight + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height(); pp_containerWidth=width; } function _getFileType(itemSrc){ if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){ return 'youtube'; }else if(itemSrc.match(/vimeo\.com/i)){ return 'vimeo'; }else if(itemSrc.match(/\b.mov\b/i)){ return 'quicktime'; }else if(itemSrc.match(/\b.swf\b/i)){ return 'flash'; }else if(itemSrc.match(/\biframe=true\b/i)){ return 'iframe'; }else if(itemSrc.match(/\bajax=true\b/i)){ return 'ajax'; }else if(itemSrc.match(/\bcustom=true\b/i)){ return 'custom'; }else if(itemSrc.substr(0,1)=='#'){ return 'inline'; }else{ return 'image'; };}; function _center_overlay(){ if(doresize&&typeof $pp_pic_holder!='undefined'){ scroll_pos=_get_scroll(); contentHeight=$pp_pic_holder.height(), contentwidth=$pp_pic_holder.width(); projectedTop=(windowHeight/2) + scroll_pos['scrollTop'] - (contentHeight/2); if(projectedTop < 0) projectedTop=0; if(contentHeight > windowHeight) return; $pp_pic_holder.css({ 'top': projectedTop, 'left': (windowWidth/2) + scroll_pos['scrollLeft'] - (contentwidth/2) }); };}; function _get_scroll(){ if(self.pageYOffset){ return {scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){ return {scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){ return {scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};}; }; function _resize_overlay(){ windowHeight=$(window).height(), windowWidth=$(window).width(); if(typeof $pp_overlay!="undefined") $pp_overlay.height($(document).height()).width(windowWidth); }; function _insert_gallery(){ if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"){ itemWidth=52+5; navWidth=(settings.theme=="facebook"||settings.theme=="pp_default") ? 50:30; itemsPerPage=Math.floor((pp_dimensions['containerWidth'] - 100 - navWidth) / itemWidth); itemsPerPage=(itemsPerPage < pp_images.length) ? itemsPerPage:pp_images.length; totalPage=Math.ceil(pp_images.length / itemsPerPage) - 1; if(totalPage==0){ navWidth=0; $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide(); }else{ $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show(); }; galleryWidth=itemsPerPage * itemWidth; fullGalleryWidth=pp_images.length * itemWidth; $pp_gallery .css('margin-left',-((galleryWidth/2) + (navWidth/2))) .find('div:first').width(galleryWidth+5) .find('ul').width(fullGalleryWidth) .find('li.selected').removeClass('selected'); goToPage=(Math.floor(set_position/itemsPerPage) < totalPage) ? Math.floor(set_position/itemsPerPage):totalPage; $.prettyPhoto.changeGalleryPage(goToPage); $pp_gallery_li.filter(':eq('+set_position+')').addClass('selected'); }else{ $pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave'); }} function _build_overlay(caller){ if(settings.social_tools) facebook_like_link=settings.social_tools.replace('{location_href}', encodeURIComponent(location.href)); settings.markup=settings.markup.replace('{pp_social}',''); $('body').append(settings.markup); $pp_pic_holder=$('.pp_pic_holder') , $ppt=$('.ppt'), $pp_overlay=$('div.pp_overlay'); if(isSet&&settings.overlay_gallery){ currentGalleryPage=0; toInject=""; for (var i=0; i < pp_images.length; i++){ if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){ classname='default'; img_src=''; }else{ classname=''; img_src=pp_images[i]; } toInject +="
  • "; }; toInject=settings.gallery_markup.replace(/{gallery}/g,toInject); $pp_pic_holder.find('#pp_full_res').after(toInject); $pp_gallery=$('.pp_pic_holder .pp_gallery'), $pp_gallery_li=$pp_gallery.find('li'); $pp_gallery.find('.pp_arrow_next').click(function(){ $.prettyPhoto.changeGalleryPage('next'); $.prettyPhoto.stopSlideshow(); return false; }); $pp_gallery.find('.pp_arrow_previous').click(function(){ $.prettyPhoto.changeGalleryPage('previous'); $.prettyPhoto.stopSlideshow(); return false; }); $pp_pic_holder.find('.pp_content').hover(function(){ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn(); }, function(){ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut(); }); itemWidth=52+5; $pp_gallery_li.each(function(i){ $(this) .find('a') .click(function(){ $.prettyPhoto.changePage(i); $.prettyPhoto.stopSlideshow(); return false; }); }); }; if(settings.slideshow){ $pp_pic_holder.find('.pp_nav').prepend('Play') $pp_pic_holder.find('.pp_nav .pp_play').click(function(){ $.prettyPhoto.startSlideshow(); return false; }); } $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); $pp_overlay .css({ 'opacity':0, 'height':$(document).height(), 'width':$(window).width() }) .bind('click',function(){ if(!settings.modal) $.prettyPhoto.close(); }); $('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; }); if(settings.allow_expand){ $('a.pp_expand').bind('click',function(e){ if($(this).hasClass('pp_expand')){ $(this).removeClass('pp_expand').addClass('pp_contract'); doresize=false; }else{ $(this).removeClass('pp_contract').addClass('pp_expand'); doresize=true; }; _hideContent(function(){ $.prettyPhoto.open(); }); return false; }); } $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){ $.prettyPhoto.changePage('previous'); $.prettyPhoto.stopSlideshow(); return false; }); $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){ $.prettyPhoto.changePage('next'); $.prettyPhoto.stopSlideshow(); return false; }); _center_overlay(); }; if(!pp_alreadyInitialized&&getHashtag()){ pp_alreadyInitialized=true; hashIndex=getHashtag(); hashRel=hashIndex; hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1); hashRel=hashRel.substring(0,hashRel.indexOf('/')); setTimeout(function(){ $("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click'); },50); } return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize); }; function getHashtag(){ var url=location.href; hashtag=(url.indexOf('#prettyPhoto')!==-1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false; if(hashtag){hashtag=hashtag.replace(/<|>/g,'');} return hashtag; }; function setHashtag(){ if(typeof theRel=='undefined') return; location.hash=theRel + '/'+rel_index+'/'; }; function clearHashtag(){ if(location.href.indexOf('#prettyPhoto')!==-1) location.hash="prettyPhoto"; } function getParam(name,url){ name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS="[\\?&]"+name+"=([^&#]*)"; var regex=new RegExp(regexS); var results=regex.exec(url); return(results==null) ? "":results[1]; }})(jQuery); var pp_alreadyInitialized=false; function wr360QueryGetParameterByName(name){ var match=RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search); return match&&decodeURIComponent(match[1].replace(/\+/g, ' ')); } jQuery(document).ready(function(){ var popup360Elm=jQuery("#wr360PlayerId20"); if(popup360Elm.length==1){ var configHeight=parseInt(wr360QueryGetParameterByName("height")); var iframeHeight=configHeight; var iframeElm=jQuery("#wr360frame_id", window.parent.document); if(iframeElm.length > 0) iframeHeight=iframeElm.attr("height"); var realHeight=(iframeHeight < configHeight) ? iframeHeight:configHeight; jQuery(".viewerbox").css("height", realHeight + "px"); popup360Elm.rotator({ licenseFileURL:window.parent.getWR360License(), graphicsPath:window.parent.getWR360GraphicsPath(), configFileURL:wr360QueryGetParameterByName("config"), rootPath:wr360QueryGetParameterByName("root") }); }else{ if((typeof(jQuery.fn.prettyPhoto)!=="undefined")&&(typeof(getWR360PopupSkin)!=="undefined")){ jQuery("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:0, deeplinking:false, theme:getWR360PopupSkin()}); }} }); /* * Copyright (c) 2016, WebRotate 360 LLC. All rights reserved. */ var WR360 = {};(function () {Function.prototype.aK = function (eB) {if (eB.constructor == Function) {this.prototype = new eB;this.prototype.constructor = this;this.prototype.ct = eB.prototype;this.prototype.iQ = 0;this.prototype.aB = function () {var ct = this.ct;for (var i = this.iQ; i > 0; i--) {ct = ct.ct;}this.iQ++;return ct;};} else {this.prototype = eB;this.prototype.constructor = this;this.prototype.ct = eB;}return this;};String.prototype.pg = function () {var txt = this;var i = arguments.length;while (i--) {txt = txt.replace(new RegExp("\\{" + i + "\\}", "gm"), arguments[i]);}return txt;};String.prototype.bE = function () {if (this == "auto") {return 0;}return parseInt(this.replace("px", ""));};String.prototype.nA = function () {var txt = this;txt = txt.replace(/\r\n/g, "
    ");txt = txt.replace(/\n\r/g, "
    ");txt = txt.replace(/\r/g, "
    ");txt = txt.replace(/\n/g, "
    ");return txt;};})();(function () {Date.now = Date.now || function () {return + new Date;};jQuery.fn.fI = function (onclick, proxy) {var proxy = proxy === undefined ? "" : ".proxy" + proxy;var gv = 0;var gq = "touchstart";if (window.navigator.pointerEnabled) {gq = "pointerdown";} else if (window.navigator.msPointerEnabled) {gq = "MSPointerDown";}this.bind(gq + proxy, function (e) {onclick.call(this, e);e.stopPropagation();e.preventDefault();gv = Date.now();return false;});this.bind("click" + proxy, function (e) {if (Date.now() - gv < 400) {return;}gv = 0;onclick.call(this, e);});return this;};jQuery.fn.oe = function (proxy) {var proxy = proxy === undefined ? "" : ".proxy" + proxy;this.unbind("touchstart" + proxy);this.unbind("click" + proxy);return this;};WR360.by = function () {};WR360.by.lf = function () {var Device = {};Device.UA = navigator.userAgent;Device.Type = false;Device.jf = ["iPhone", "iPod", "iPad", "android"];for (var d = 0; d < Device.jf.length; d++) {var t = Device.jf[d];Device[t] = !!Device.UA.match(new RegExp(t, "i"));Device.Type = Device.Type || Device[t];}return Device.Type ? true : false;};WR360.by.fU = WR360.by.lf();WR360.by.cz = function (string, defaultValue) {if (string == null || string.length == 0) {return defaultValue;}return string;};WR360.by.dM = function (string, defaultValue) {if (string == null || string.length == 0) {return defaultValue;}return parseFloat(string);};WR360.by.je = function (string, defaultValue) {if (string == null || string.length == 0) {return defaultValue;}return parseFloat(string.replace(",", "."));};WR360.by.bX = function (string, defaultValue) {if (string == null || string.length == 0) {return defaultValue;}return string.toLowerCase() == "true" || string.toLowerCase() == "1";};WR360.by.ge = function () {var charCode;var jd = "";var mq = 10 + parseInt(Math.random() * 10);for (var i = 0; i < mq; i++) {charCode = 97 + parseInt(Math.random() * 26);jd += String.fromCharCode(charCode);}return jd;};WR360.by.qk = function () {if (jQuery.ad.msie == true) {return;}var trident = /Trident\/7\./;if (trident.test(navigator.userAgent)) {jQuery.ad.version = "99";jQuery.ad.msie = true;jQuery.ad.webkit = false;jQuery.ad.mozilla = false;jQuery.ad.opera = false;return;}jQuery.ad.sa = /(android)/i.test(navigator.userAgent);if (jQuery.ad.sa == true) {var hL = navigator.userAgent;jQuery.ad.rY = hL.indexOf("Chrome") > -1;if (jQuery.ad.rY == false) {jQuery.ad.sO = hL.indexOf("Mozilla/5.0") > -1 && hL.indexOf("AppleWebKit") > -1;}}};WR360.by.mG = function () {var matched, browser;if (!jQuery.uaMatch) {jQuery.uaMatch = function (ua) {ua = ua.toLowerCase();var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];return {browser:match[1] || "", version:match[2] || "0"};};}matched = jQuery.uaMatch(navigator.userAgent);browser = {};if (matched.browser) {browser[matched.browser] = true;browser.version = matched.version;}if (browser.chrome) {browser.webkit = true;} else if (browser.webkit) {browser.safari = true;}jQuery.ad = browser;WR360.by.qk();};WR360.by.fS = function (e) {var fw = 0, gI = 0;var rA = typeof window.event !== "undefined" && typeof window.event.targetTouches !== "undefined";if (WR360.by.fU == false && rA == false) {if (e.pageX || e.pageY) {fw = e.pageX;gI = e.pageY;} else if (e.clientX || e.clientY) {fw = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;gI = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;}return {x:fw, y:gI};}if (rA == true && window.event.targetTouches != null && window.event.targetTouches.length > 0) {fw = window.event.targetTouches[0].screenX;gI = window.event.targetTouches[0].screenY;return {x:fw, y:gI};}var st = typeof e.originalEvent !== "undefined" && typeof e.originalEvent.targetTouches !== "undefined";if (st == true && e.originalEvent.targetTouches != null && e.originalEvent.targetTouches.length > 0) {fw = e.originalEvent.targetTouches[0].screenX;gI = e.originalEvent.targetTouches[0].screenY;}return {x:fw, y:gI};};WR360.by.pe = function (qv, dX) {var jS = qv.slice(-3);if (jS !== "svg") {return;}document.body.appendChild(dX);dX.width = dX.offsetWidth;dX.height = dX.offsetHeight;document.body.removeChild(dX);};WR360.by.fA = function (cu, eJ) {var x = cu.offset().left;var y = cu.offset().top;var x2 = x + cu.outerWidth(false);var y2 = y + cu.outerHeight(false);var jx = Math.abs(eJ.x);return jx >= x && jx <= x2 && eJ.y >= y && eJ.y <= y2;};WR360.by.pA = function () {var rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/;var rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/;var ajaxLocation = "";try {ajaxLocation = location.href;} catch (e) {ajaxLocation = document.createElement("a");ajaxLocation.href = "";ajaxLocation = ajaxLocation.href;}var ajaxLocParts = rurl.exec(ajaxLocation.toLowerCase()) || [];var qm = rlocalProtocol.test(ajaxLocParts[1]);return qm;};WR360.by.qT = function (options) {try {if (!jQuery.ad.msie) {return false;}var qW = window.ActiveXObject !== undefined;if (qW == false) {return false;}if (!WR360.by.pA()) {return false;}var xhr = null;try {xhr = new window.ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}if (xhr == null) {return false;}if (!options.async) {options.async = jQuery.ajaxSettings.async;}xhr.open(options.type, options.url, options.async);var jv = function () {try {var text = xhr.responseText;if (options.success) {options.success(text);}} catch (e) {if (options.error) {options.error(e);}}};xhr.send(null);if (!options.async) {jv();} else if (xhr.readyState === 4) {setTimeout(jv, 0);} else {xhr.onreadystatechange = jv;}return true;} catch (e) {return false;}};})();(function () {WR360.J = function () {this.dr = new Array;};WR360.J.prototype.iS = function (item) {var result = -1;for (var i = 0; i < this.dr.length; i++) {if (this.dr[i] == item) {result = i;break;}}return result;};WR360.J.prototype.bk = function (item) {var result = false;if (item != null) {this.dr.push(item);result = true;}return result;};WR360.J.prototype.removeItem = function (item) {var result = false;var hN = this.iS(item);if (hN > -1) {this.dr.splice(hN, 1);result = true;}return result;};WR360.J.prototype.clear = function () {this.dr = new Array;};WR360.J.prototype.contains = function (item) {return this.iS(item) > -1;};WR360.J.prototype.mh = function (index) {return this.dr[index];};WR360.J.prototype.ds = function () {return this.dr.length;};WR360.J.prototype.nz = function () {return this.dr.length == 0;};})();(function () {WR360.gl = function () {this.settings = new WR360.kT;this.bF = new Array;this.hi = new Array;this.aw = new Array;this.ky = new Array;this.aw.ep = 0;this.aw.eU = 0;this.aw.rows = 1;};WR360.gl.prototype.iq = function () {return this.aw.ep > 0 && this.aw.eU > 0;};WR360.gl.prototype.ly = function () {for (var dj = 0; dj < this.bF.length; dj++) {var cd = this.bF[dj];if (cd.disabled == false && cd.renderMode != WR360.kc.bf.au) {return true;}}return false;};WR360.Control = function () {this.gp = 0.12;this.inBrowserFullScreen = false;this.dJ = false;this.iu = false;this.doubleClickFullscreen = false;this.mouseHoverDrag = false;this.qc = true;this.hideHotspotsOnLoad = false;this.hideHotspotsOnZoom = true;this.rowSensitivity = 15;this.dragSensitivity = 10;};WR360.Margin = function () {this.top = 0;this.right = 0;this.bottom = 0;this.left = 0;};WR360.Margin.prototype.parse = function (fG) {if (fG == null || fG.length == 0) {return;}var aj = fG.split(",");for (var i = 0; i < aj.length; i++) {switch (i) {case 0:this.top = WR360.by.dM(aj[i], this.top);break;case 1:this.right = WR360.by.dM(aj[i], this.right);break;case 2:this.bottom = WR360.by.dM(aj[i], this.bottom);break;case 3:this.left = WR360.by.dM(aj[i], this.left);break;default:break;}}};WR360.Align = function () {this.vertical = WR360.Align.TOP;this.horizontal = WR360.Align.LEFT;this.parsed = false;};WR360.Align.TOP = -1;WR360.Align.CENTER = 0;WR360.Align.BOTTOM = 1;WR360.Align.LEFT = -1;WR360.Align.CENTER = 0;WR360.Align.RIGHT = 1;WR360.Align.prototype.pn = function () {return this.vertical == WR360.Align.CENTER && this.horizontal == WR360.Align.CENTER;};WR360.Align.prototype.parse = function (bK) {if (bK == null || bK.length == 0) {return;}var gP = bK.split(",");this.parsed = gP.length > 0;for (var i = 0; i < gP.length; i++) {switch (i) {case 0:var verticalAlign = gP[i].toLowerCase().trim();if (verticalAlign == "top" || verticalAlign == "-1") {this.vertical = WR360.Align.TOP;} else if (verticalAlign == "center" || verticalAlign == "0") {this.vertical = WR360.Align.CENTER;} else if (verticalAlign == "bottom" || verticalAlign == "1") {this.vertical = WR360.Align.BOTTOM;}break;case 1:var ag = gP[i].toLowerCase().trim();if (ag == "left" || ag == "-1") {this.horizontal = WR360.Align.LEFT;} else if (ag == "center" || ag == "0") {this.horizontal = WR360.Align.CENTER;} else if (ag == "right" || ag == "1") {this.horizontal = WR360.Align.RIGHT;}break;default:break;}}};WR360.ix = function () {this.x = 0;this.y = 0;this.isXDefined = false;this.isYDefined = false;};WR360.ix.prototype.ot = function () {return this.isXDefined || this.isYDefined;};WR360.ix.prototype.parse = function (offsetX, offsetY) {this.isXDefined = offsetX != null && offsetX.length > 0;this.isYDefined = offsetY != null && offsetY.length > 0;this.x = WR360.by.dM(offsetX, this.x);this.y = WR360.by.dM(offsetY, this.y);};WR360.kc = function () {this.id = "";this.type = "";this.indicatorImage = "circ-cross-thin-blue.svg";this.disabled = false;this.hotspotInfo = null;this.offset = new WR360.ix;this.margin = new WR360.Margin;this.align = new WR360.Align;this.renderMode = WR360.kc.bf.aC;this.activateOnClick = false;this.deactivateOnClick = false;};WR360.kc.bf = {};WR360.kc.bf.aC = 0;WR360.kc.bf.io = 1;WR360.kc.bf.au = 2;WR360.kc.bf.kd = 3;WR360.HotspotInfo = function () {this.src = "";this.clickAction = WR360.HotspotInfo.iE.NONE;this.clickData = "";this.clickDataParam = "";this.url = "";this.urlTarget = "_self";this.txt = "";this.txtWidth = 242;this.txtColor = "#525B69";this.txtBkColor = "#FFFFFF";this.fntHeight = 14;this.css = "";this.cdata = "";this.imgWidth = 0;this.imgBkColor = "transparent";this.lbxShowClose = true;this.lbxBackCover = false;this.lbxClickActive = true;this.imgNoScale = false;};WR360.HotspotInfo.iE = {};WR360.HotspotInfo.iE.NONE = 0;WR360.HotspotInfo.iE.qq = 1;WR360.HotspotInfo.iE.mA = 2;WR360.HotspotInfo.iE.qx = 3;WR360.HotspotInfo.iE.sL = 4;WR360.HotspotInfo.iE.ss = 5;WR360.HotspotInfo.iE.rH = 6;WR360.HotspotInfo.iE.qP = 7;WR360.HotspotInfo.iE.pB = 8;WR360.HotspotInfo.iE.sr = 9;WR360.HotspotInfo.iE.sX = 10;WR360.HotspotInfo.iE.er = 11;WR360.lv = function () {this.src = "";this.label = "";this.delay = 0;this.bF = new Array;this.hi = new Array;this.cS = null;};WR360.lq = function () {this.source = "";this.offsetX = 0;this.offsetY = 0;};WR360.nu = function () {this.image = "first";};WR360.jJ = function () {this.fE = 0;this.rotate = "false";this.kC = -1;this.oc = "false";this.gg = 7;this.bounce = false;this.bounceRows = true;this.useInertia = true;this.inertiaRelToDragSpeed = true;this.inertiaTimeToStop = 700;this.inertiaMaxInterval = 120;this.flipHorizontalInput = false;};WR360.kT = function () {this.eH = new WR360.nu;this.bI = new WR360.jH;this.control = new WR360.Control;this.bg = new WR360.jJ;};WR360.jH = function () {this.hb = true;this.gj = true;this.gw = true;this.iT = true;this.bY = true;this.iU = true;this.bz = true;this.gx = 0;this.gH = "#ffffff";this.iC = 0.9;this.gX = 0.9;this.fullScreenBackColor = "#ffffff";this.showFullScreenToolbar = false;};WR360.kB = function () {this.src = "";};})();(function () {WR360.dh = function () {this.dw = {};};WR360.dh.prototype = {constructor:WR360.dh, oK:function () {return null;}, addEventListener:function (type, cc, param) {if (typeof this.dw[type] == "undefined") {this.dw[type] = [];}this.dw[type].push({cc:cc, param:param});}, dispatchEvent:function (event) {if (typeof event == "string") {event = {type:event};}if (!event.target) {event.target = this;}if (!event.type) {throw new Error("Event object missing 'type' property.");}var handled = false;if (this.dw[event.type] instanceof Array) {var cs = this.dw[event.type];for (var i = 0, ia = cs.length; i < ia; i++) {var ret = cs[i].cc.call(this, event, cs[i].param);if (typeof ret !== "undefined" && ret == true) {handled = true;}}}return handled;}, removeEventListener:function (type, cc) {if (this.dw[type] instanceof Array) {var cs = this.dw[type];for (var i = 0, ia = cs.length; i < ia; i++) {if (cs[i].cc === cc) {cs.splice(i, 1);break;}}}}};WR360.Event = function (type, bubbles, cancelable, param) {this.type = type;this.bubbles = bubbles;this.cancelable = cancelable;this.param = param;};})();(function () {WR360.dY = function () {this.aB().constructor.call(this);this.cQ = false;this.rootPath = "";};WR360.dY.aK(WR360.dh);WR360.dY.prototype.Init = function (rootPath, V) {this.rootPath = rootPath;this.cQ = false;};})();(function () {WR360.ba = function (image, index, rootPath, graphicsPath, oq) {this.aB().constructor.call(this);if (image == null) {throw new Error("ImageObject.ctor. null == hotspot");}this.image = image;this.F = new Image;this.bG = null;this.index = index;this.rootPath = rootPath;this.graphicsPath = graphicsPath;this.oq = oq;this.F.be = this;this.F.onload = this.gm;this.F.onerror = this.gc;this.aA();};WR360.ba.aK(WR360.dh);WR360.ba.iK = "pixel.png";WR360.ba.prototype.aA = function () {this.bG = new Image;this.bG.be = this;this.bG.cQ = false;this.bG.onload = this.lQ;this.bG.onerror = this.lL;this.bG.onabort = this.lG;};WR360.ba.prototype.gm = function () {var bu = this.be;bu.dispatchEvent(new WR360.ah(WR360.ah.COMPLETE, true, false, bu, false, bu.index, true, ""));};WR360.ba.prototype.gc = function () {var bu = this.be;bu.dispatchEvent(new WR360.ah(WR360.ah.ERROR, true, false, bu, false, bu.index, false, "Error loading image: " + this.src));};WR360.ba.prototype.lQ = function () {var bu = this.be;if (bu.hx(this)) {return;}this.cQ = true;bu.dispatchEvent(new WR360.ah(WR360.ah.eD, true, false, bu, true, bu.index, true, ""));};WR360.ba.prototype.lL = function () {var bu = this.be;if (bu.hx(this)) {return;}bu.dispatchEvent(new WR360.ah(WR360.ah.dU, true, false, bu, true, bu.index, false, "Error loading high-res image: " + this.src));};WR360.ba.prototype.lG = function () {var bu = this.be;if (bu.hx(this)) {return;}bu.dispatchEvent(new WR360.ah(WR360.ah.fD, true, false, bu, true, bu.index, false, "Abort loading high-res image: " + this.src));};WR360.ba.prototype.hx = function (image) {return image.src.indexOf(WR360.ba.iK) != -1;};WR360.ba.prototype.Load = function () {var qv = this.oq ? this.image.cS.src : this.image.src;this.F.src = this.rootPath + qv;};WR360.ba.prototype.hS = function () {if (this.bG == null) {this.aA();}this.bG.src = this.rootPath + this.image.cS.src;};WR360.ba.prototype.aE = function () {if (this.bG == null) {return;}this.hK();};WR360.ba.prototype.hK = function () {if (this.bG == null) {throw new Error("forceUnloadHighRes: highresBitmapLoader==null");}this.bG.cQ = false;this.bG.src = this.graphicsPath + "/" + WR360.ba.iK;};WR360.ba.prototype.kz = function () {if (this.bG == null) {return;}if (this.bG.cQ == false) {return;} else {this.hK();}};WR360.ah = function (type, bubbles, cancelable, af, ht, index, success, errorMessage) {this.aB().constructor.call(this, type, bubbles, cancelable);this.af = af;this.ht = ht;this.index = index;this.success = success;this.errorMessage = errorMessage;};WR360.ah.aK(WR360.Event);WR360.ah.COMPLETE = "ImageObject_complete";WR360.ah.ERROR = "ImageObject_error";WR360.ah.eD = "ImageObject_Highres_complete";WR360.ah.fD = "ImageObject_Highres_abort";WR360.ah.dU = "ImageObject_Highres_error";})();(function () {WR360.fC = function (bi, index, rootPath) {this.aB().constructor.call(this);this.bi = bi;this.index = index;this.F = new Image;this.rootPath = rootPath;this.F.be = this;this.F.onload = this.gm;this.F.onerror = this.gc;};WR360.fC.aK(WR360.dh);WR360.fC.Events = {};WR360.fC.Events.CLICK_ACTION = "HOTSPOT_API_CLICK_ACTION";WR360.da = function (type, bubbles, cancelable, aO, index, success, errorMessage) {this.aB().constructor.call(this, type, bubbles, cancelable);this.aO = aO;this.index = index;this.success = success;this.errorMessage = errorMessage;};WR360.da.aK(WR360.Event);WR360.da.COMPLETE = "HotspotObject_complete";WR360.da.ERROR = "HotspotObject_error";WR360.fC.prototype.gm = function () {var image = this;var handler = this.be;setTimeout(function () {WR360.by.pe(image.src, image);handler.dispatchEvent(new WR360.da(WR360.da.COMPLETE, true, false, handler, handler.index, true, ""));}, 100);};WR360.fC.prototype.gc = function () {var bu = this.be;bu.dispatchEvent(new WR360.da(WR360.da.ERROR, true, false, bu, bu.index, false, "Error loading image: " + this.src));};WR360.fC.prototype.Load = function () {this.F.src = this.rootPath + this.bi.hotspotInfo.src;};WR360.fC.prototype.js = function () {if (this.bi.hotspotInfo.clickAction != WR360.HotspotInfo.iE.NONE) {return true;}return this.bi.hotspotInfo.url.length > 0;};WR360.fC.prototype.gL = function () {return this.bi.hotspotInfo.cdata.length > 0 || this.F.src.length > 0 || this.bi.hotspotInfo.txt.length > 0;};WR360.fC.prototype.ea = function () {return this.bi.hotspotInfo.imgWidth != 0 ? this.bi.hotspotInfo.imgWidth : this.F.width;};WR360.fC.prototype.kv = function (imagerotator) {var bO = false;switch (this.bi.hotspotInfo.clickAction) {case WR360.HotspotInfo.iE.sX:if (imagerotator.pY == true) {imagerotator.cJ();} else {imagerotator.gJ();}bO = true;break;case WR360.HotspotInfo.iE.qq:imagerotator.cJ();imagerotator.gJ();bO = true;break;case WR360.HotspotInfo.iE.mA:imagerotator.cJ();bO = true;break;case WR360.HotspotInfo.iE.qx:imagerotator.cJ();imagerotator.bV.iG(1);bO = true;break;case WR360.HotspotInfo.iE.sL:imagerotator.cJ();imagerotator.bV.iG(-1);bO = true;break;case WR360.HotspotInfo.iE.ss:imagerotator.bV.qB(this.bi.hotspotInfo.clickData, this.bi.hotspotInfo.clickDataParam);bO = true;break;case WR360.HotspotInfo.iE.rH:imagerotator.cJ();imagerotator.bV.qo(this.bi.hotspotInfo.clickData);bO = true;break;case WR360.HotspotInfo.iE.qP:imagerotator.mf();bO = true;break;case WR360.HotspotInfo.iE.pB:imagerotator.mt();bO = true;break;case WR360.HotspotInfo.iE.sr:imagerotator.rc(null);bO = true;break;case WR360.HotspotInfo.iE.er:var mE = this.bi.hotspotInfo.clickData;if (mE.length > 0) {var hZ = window[mE];if (typeof hZ === "function") {hZ(this.bi);bO = true;}}break;default:;}return bO;};WR360.fC.prototype.cv = function (imagerotator) {var bO = false;if (this.dispatchEvent(new WR360.Event(WR360.fC.Events.CLICK_ACTION, false, false)) == true) {bO = true;} else if (this.js() == true) {if (this.bi.hotspotInfo.clickAction == WR360.HotspotInfo.iE.NONE) {var url = this.bi.hotspotInfo.url;if (imagerotator.gD() == true) {imagerotator.sm.Event(WR360.sY.rU.rR);}var re = url.substr(url.lastIndexOf(".") + 1);if (re && re.length > 0 && re.toLowerCase() == "xml") {imagerotator.reload(url, imagerotator.settings.rootPath);} else {window.open(url, this.bi.hotspotInfo.urlTarget);}return true;}bO = this.kv(imagerotator);}if (bO == true) {if (imagerotator.gD() == true) {imagerotator.sm.Event(WR360.sY.rU.rR);}}return false;};})();(function () {WR360.cL = function (bh) {this.aB().constructor.call(this);if (bh == null) {throw new Error("ImagePreloader: imageRotator is null");}this.image = null;this.bh = bh;};WR360.cL.aK(WR360.dY);WR360.cL.le = "first";WR360.cL.la = "none";WR360.cL.prototype.Load = function (rootPath, V) {this.ct.Init.call(this, rootPath, V);var hh = V.settings.eH.image;var av = typeof this.bh.qQ !== "undefined" && this.bh.qQ();var qI = this.bh.settings.fullScreenOnClick;if (!av) {if (this.bh.dV == true && this.bh.reloadImageIndex >= 0) {var bW = this.bh.reloadImageIndex;if (bW > V.aw.length - 1) {bW = 0;}hh = V.aw[bW].src;} else if (V.settings.eH.image.length == 0 || V.settings.eH.image.toLowerCase() == WR360.cL.la) {this.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE, true, false, null, true, ""));return;}} else {if (V.aw.length == 0) {this.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE, true, false, null, true, ""));return;}var aF = qI == true ? V.settings.bg.fE : this.bh.pH.bV.ob(true);if (aF < 0 || aF > V.aw.length - 1) {aF = 0;}hh = V.aw[aF].src;var oq = av && V.settings.control.qc && this.bh.bV.lc;if (oq) {hh = V.aw[aF].cS != null ? V.aw[aF].cS.src : V.aw[aF].src;}}this.image = new Image;this.image.be = this;this.image.onload = this.os;this.image.onerror = this.mj;this.image.src = this.rootPath + hh;};WR360.cL.prototype.os = function () {this.be.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE, true, false, this.be.image, true, ""));};WR360.cL.prototype.mj = function () {this.be.dispatchEvent(new WR360.cO(WR360.cO.ERROR, true, false, null, false, "Preloader IO ERROR: " + this.src));};WR360.cO = function (type, bubbles, cancelable, image, success, errorMessage) {this.aB().constructor.call(this, type, bubbles, cancelable);this.image = image;this.success = success;this.errorMessage = errorMessage;};WR360.cO.aK(WR360.Event);WR360.cO.COMPLETE = "complete";WR360.cO.ERROR = "error";})();(function () {WR360.dP = function (cR) {this.aB().constructor.call(this);this.aw = new Array;this.sU = new Array;this.rd = 0;this.startRowIndex = 0;this.cG = 0;this.cR = cR;this.mu = "cache_" + cR.substr(1, cR.length);};WR360.dP.aK(WR360.dY);WR360.dP.prototype.lU = function (row) {if (row > this.sU.length) {row = 0;}return this.sU[row];};WR360.dP.prototype.sd = function () {return this.sU.length;};WR360.dP.prototype.sM = function () {return this.rd;};WR360.dP.prototype.rr = function () {return this.aw.length;};WR360.dP.prototype.Init = function (rootPath, graphicsPath, V, oq) {this.ct.Init.call(this, rootPath, V);this.ln(rootPath, graphicsPath, V, oq);};WR360.dP.prototype.ln = function (rootPath, graphicsPath, V, oq) {this.rd = V.aw.length / V.aw.rows;if (this.rd % 1) {this.rd = V.aw.length;V.aw.rows = 1;}for (var row = 0; row < V.aw.rows; row++) {this.sU[row] = new Array;}var sK = 1;var sl = 0;for (var i = 0; i < V.aw.length; i++) {if (i >= sK * this.rd) {sK++;sl = 0;}this.aw[i] = new WR360.ba(V.aw[i], sl, rootPath, graphicsPath, oq);this.sU[sK - 1][sl++] = this.aw[i];if (V.settings.bg.fE == i) {this.startRowIndex = sK - 1;}}};WR360.dP.prototype.kE = function () {var hX = "#" + this.mu;this.hA = jQuery(hX);if (this.hA.length == 1) {this.hA.remove();}jQuery(this.cR + " .container").append("
    ");this.hA = jQuery(hX);this.cG = 0;for (var i = 0; i < this.aw.length; i++) {var af = this.aw[i];af.be = this;af.addEventListener(WR360.ah.COMPLETE, this.nU);af.addEventListener(WR360.ah.ERROR, this.ou);af.Load();}};WR360.dP.prototype.oB = function (index) {var af = aw[index];af.be = this;af.hS();};WR360.dP.prototype.oW = function (jM) {for (var i = 0; i < this.aw.length; i++) {if (i == jM) {continue;}this.aw[i].kz();}};WR360.dP.prototype.nU = function (e) {this.be.kA(e);};WR360.dP.prototype.kA = function (e) {if (e.ht) {return;}this.cG++;var eR = WR360.cf.PROGRESS;if (this.cG >= this.aw.length) {eR = WR360.cf.COMPLETE;this.cQ = true;}this.hA.append("
    ");this.dispatchEvent(new WR360.cf(eR, true, false, e.af, Math.round(this.cG * 100 / this.aw.length), true, ""));};WR360.dP.prototype.ou = function (e) {var bu = this.be;bu.dispatchEvent(new WR360.cf(WR360.cf.ERROR, true, false, e.af, Math.round(bu.cG * 100 / bu.aw.length), false, e.errorMessage));};WR360.cf = function (type, bubbles, cancelable, af, ee, success, errorMessage) {this.aB().constructor.call(this, type, bubbles, cancelable);this.af = af;this.ee = ee;this.errorMessage = errorMessage;this.success = success;};WR360.cf.aK(WR360.Event);WR360.cf.PROGRESS = "ImagesCache_progress";WR360.cf.COMPLETE = "ImagesCache_complete";WR360.cf.ERROR = "ImagesCache_error";WR360.cf.bJ = "ImagesCache_canceled";})();(function () {WR360.dc = function () {this.aB().constructor.call(this);this.dH = 0;this.bF = new Array;this.hu = -1;};WR360.dc.aK(WR360.dY);WR360.dc.prototype.Init = function (rootPath, V) {this.ct.Init.call(this, rootPath, V);this.ku(rootPath, V);};WR360.dc.prototype.ku = function (rootPath, V) {var eW = 0;for (var i = 0; i < V.bF.length; i++) {if (!V.bF[i].disabled) {if (this.hu == -1) {this.bF[eW] = new WR360.fC(V.bF[i], eW, rootPath);} else if (eW < this.hu) {this.bF[eW] = new WR360.fC(V.bF[i], eW, rootPath);}eW++;}}};WR360.dc.prototype.kD = function () {this.dH = 0;for (var i = 0; i < this.bF.length; i++) {var aO = this.bF[i];if (aO.bi.hotspotInfo.src.length > 0) {aO.be = this;aO.addEventListener(WR360.da.COMPLETE, this.mN);aO.addEventListener(WR360.da.ERROR, this.og);aO.Load();} else {this.kq(new WR360.da(WR360.da.COMPLETE, true, false, aO, aO.index, true, ""));}}};WR360.dc.prototype.mN = function (e) {this.be.kq(e);};WR360.dc.prototype.kq = function (e) {this.dH++;var eR = WR360.dK.PROGRESS;if (this.dH >= this.bF.length) {eR = WR360.dK.COMPLETE;this.cQ = true;}this.dispatchEvent(new WR360.dK(eR, true, false, e.aO, Math.round(this.dH * 100 / this.bF.length), true, ""));};WR360.dc.prototype.og = function (e) {var bu = this.be;bu.dispatchEvent(new WR360.dK(WR360.dK.ERROR, true, false, e.aO, Math.round(bu.dH * 100 / bu.bF.length), false, e.errorMessage));};WR360.dK = function (type, bubbles, cancelable, aO, ee, success, errorMessage) {this.aB().constructor.call(this, type, bubbles, cancelable);this.aO = aO;this.ee = ee;this.errorMessage = errorMessage;this.success = success;};WR360.dK.aK(WR360.Event);WR360.dK.PROGRESS = "HotspotsCache_progress";WR360.dK.COMPLETE = "HotspotsCache_complete";WR360.dK.ERROR = "HotspotsCache_error";WR360.dK.bJ = "HotspotsCache_canceled";})();(function () {WR360.cI = function (visible, aO, bV, H) {this.df = visible;this.dz = 0;this.dg = 0;this.aO = aO;this.bV = bV;this.bh = bV.bh;this.playing = false;this.H = H;};WR360.cI.prototype.cD = function () {this.fR();};WR360.cI.prototype.aH = function (visible) {};WR360.cI.prototype.eC = function (x) {this.dz = x;};WR360.cI.prototype.fv = function (y) {this.dg = y;};WR360.cI.prototype.nT = function () {if (this.bH == null) {return;}var aM = this.bV.oy(this.aO, this.bH.qh, this.bH.qw);this.dz = aM.x;this.dg = aM.y;this.bH.gM.css("left", this.dz);this.bH.gM.css("top", this.dg);if (this.bH.image != null && this.aO.bi.hotspotInfo.imgNoScale == false) {this.bH.gM.css("width", this.aO.ea() * this.bV.lB);}};WR360.cI.prototype.fR = function () {if (this.bH == null && this.aO.gL()) {this.bH = new WR360.bx(this.bV, this.aO, this.H);this.bH.jw();this.bH.jl(this.gV());}};WR360.cI.prototype.gV = function () {return {x:this.dz, y:this.dg};};WR360.cI.prototype.pM = function () {if (this.bH != null) {this.bH['delete']();}};})();(function () {WR360.aT = function (visible, aO, bV, H) {this.aB().constructor.call(this);this.df = visible;this.dz = 0;this.dg = 0;this.aO = aO;this.bV = bV;this.bh = bV.bh;this.dW = false;this.H = H;this.bb = null;this.hotspotHtmlId = "";this.kN = this.bh.settings.graphicsPath + "/" + this.aO.bi.indicatorImage;this.image = new Image;this.bH = null;this.fc = false;this.gB = 0;this.gE = 0;this.pl = "indicator_active " + this.aO.bi.id + "_indicator_active";this.image.onload = jQuery.proxy(this.nK, this);this.image.onerror = jQuery.proxy(this.nY, this);this.hotspotHtmlId = this.bh.gK(this.aO.bi);this.cb = 0;this.kn = 0;this.kG();this.image.src = this.kN;this.aH(visible);};WR360.aT.aK(WR360.dh);WR360.aT.Events = {};WR360.aT.Events.ACTIVATE = "HOTSPOT_API_ACTIVATE";WR360.aT.Events.DEACTIVATE = "HOTSPOT_API_DEACTIVATE";WR360.aT.Events.mI = "HOTSPOT_ROLLOVER_REMOVED";WR360.aT.prototype.kG = function () {this.bb = jQuery("
    ").appendTo(this.H);this.bb.mouseover(jQuery.proxy(function (event) {this.OnMouseOver(event);}, this));this.bb.mouseout(jQuery.proxy(function (event) {this.OnMouseOut(event);}, this));this.bb.fI(jQuery.proxy(function (event) {this.kf(event);}, this));this.bh.addEventListener(WR360.Events.hG, jQuery.proxy(this.mC, this));var self = this;this.bb.bind("touchend mousedown", function (e) {e.stopPropagation();self.bh.jB(e);});};WR360.aT.prototype.nK = function (e) {var image = e.target;var self = this;setTimeout(function () {WR360.by.pe(self.aO.bi.indicatorImage, image);self.eC(self.dz);self.fv(self.dg);self.bb.css("background-image", "url(" + image.src + ")");self.bb.css("width", image.width);self.bb.css("height", image.height);}, 100);};WR360.aT.prototype.nY = function (e) {WR360.bZ.gA("DynamicHotspotPresenter. Error loading image: " + e.target.src);};WR360.aT.prototype.cD = function () {};WR360.aT.prototype.aH = function (visible, aX) {this.df = visible;if (visible) {if (aX) {this.bb.fadeIn(300);} else {this.bb.show();}} else {if (aX) {this.bb.fadeOut(300);} else {this.bb.hide();}}};WR360.aT.prototype.eC = function (x) {this.dz = x;this.bb.css("left", x - this.image.width / 2);};WR360.aT.prototype.fv = function (y) {this.dg = y;this.bb.css("top", y - this.image.height / 2);};WR360.aT.prototype.lX = function () {return this.image.width;};WR360.aT.prototype.lT = function () {return this.image.height;};WR360.aT.prototype.mC = function (e) {if (e.param != this.hotspotHtmlId) {this.gY(false);}};WR360.aT.prototype.OnMouseOut = function (e) {e.stopPropagation();this.fc = false;};WR360.aT.prototype.OnMouseOver = function (e) {if (this.bh.pY == true) {return;}e.stopPropagation();e.preventDefault();if (this.aO.bi.activateOnClick == false) {var iH = this.fR();if (iH == true) {this.gE = Date.now();}}};WR360.aT.prototype.kf = function (e) {if (this.aO.bi.activateOnClick == false) {if (Date.now() - this.gE < 150) {return;}this.gE = 0;}if (this.aO.js() == true) {if (this.aO.gL() == false || this.aO.bi.activateOnClick == false && this.dW == true) {if (this.aO.gL() == false) {this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG, false, false, this.hotspotHtmlId));}var pU = this.aO.cv(this.bh);if (pU == false && this.dW == true) {this.gY(false);}return;}}this.fc = false;if (this.dW == true) {this.gY(false);} else {this.fR();}};WR360.aT.prototype.jP = function (e) {clearInterval(this.gB);clearTimeout(this.kn);clearTimeout(this.cb);this.cb = 0;this.bb.removeClass(this.pl);if (this.dW == false) {return;}this.dW = false;var aq = e.param;if (aq == false) {this.ld();}if (this.aO.bi.activateOnClick == true) {return;}if (WR360.by.fU == true) {return;}var cV = {x:this.bh.dO, y:this.bh.ei};if (cV.x == 0 && cV.y == 0) {return;}if (WR360.by.fA(this.bb, cV) == true) {this.fc = true;var lM = this;this.gB = setInterval(function () {lM.lb();}, 200);}};WR360.aT.prototype.eb = function (timeout, hZ) {this.fR(timeout);if (timeout !== undefined && this.cb == 0) {var self = this;this.cb = setTimeout(function () {self.gY(true);if (hZ !== undefined) {hZ(self.mv());}}, timeout);}};WR360.aT.prototype.fR = function (timeout) {if (this.bh.fu == true || this.dW == true || this.fc == true) {return false;}this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG, false, false, this.hotspotHtmlId));this.bh.cJ();this.dW = true;this.bh.lp();this.bb.addClass(this.pl);if (this.ll() == true || this.aO.gL() == false) {this.oX(timeout);return false;}if (this.bH == null) {this.bH = this.aO.bi.renderMode == WR360.kc.bf.kd ? new WR360.fH(this.bV, this.aO, this.H) : new WR360.bx(this.bV, this.aO, this.H);this.bH.addEventListener(WR360.aT.Events.mI, jQuery.proxy(this.jP, this));this.bH.jw();this.bH.jl(this.gV());} else {this.bH.jl(this.gV());}this.oX(timeout);return true;};WR360.aT.prototype.ll = function () {return this.dispatchEvent(new WR360.Event(WR360.aT.Events.ACTIVATE, false, false));};WR360.aT.prototype.ld = function () {return this.dispatchEvent(new WR360.Event(WR360.aT.Events.DEACTIVATE, false, false));};WR360.aT.prototype.gY = function (aX) {clearInterval(this.gB);clearTimeout(this.cb);this.cb = 0;clearTimeout(this.kn);this.bb.removeClass(this.pl);if (this.dW == false) {return;}if (this.ld() == true) {this.dW = false;return;}if (this.bH != null) {this.bH.cN(aX, true);}};WR360.aT.prototype.gV = function () {return {x:this.dz, y:this.dg};};WR360.aT.prototype.oX = function (timeout) {if (WR360.by.fU == true) {return;}clearInterval(this.gB);var oP = timeout !== undefined ? timeout : 0;var self = this;if (this.aO.bi.deactivateOnClick == true && oP == 0) {return;}this.kn = setTimeout(function () {self.gB = setInterval(function () {self.jE();}, 300);}, oP);};WR360.aT.prototype.jE = function () {var cV = {x:this.bh.dO, y:this.bh.ei};if (cV.x == 0 && cV.y == 0) {return;}if (WR360.by.fA(this.bb, cV) == false) {if (this.bH == null || this.bH.iI(cV) == false) {this.gY(true);clearInterval(this.gB);}}};WR360.aT.prototype.lb = function () {var cV = {x:this.bh.dO, y:this.bh.ei};if (cV.x == 0 && cV.y == 0) {return;}if (WR360.by.fA(this.bb, cV) == false) {this.fc = false;clearInterval(this.gB);this.gB = 0;}};WR360.aT.prototype.nT = function () {if (this.bH == null) {return;}if (this.aO.bi.renderMode == WR360.kc.bf.io) {var aM = this.bV.oy(this.aO, this.bH.qh, this.bH.qw);this.dz = aM.x;this.dg = aM.y;this.bH.gM.css("left", this.dz);this.bH.gM.css("top", this.dg);}if (this.aO.bi.renderMode != WR360.kc.bf.kd) {if (this.bH.image != null && this.aO.bi.hotspotInfo.imgNoScale == false) {this.bH.gM.css("width", this.aO.ea() * this.bV.lB);}}};WR360.aT.prototype.mv = function () {var oJ = {hotspotHtmlId:this.hotspotHtmlId, parentContainer:this.H, hotspotConfig:this.aO.bi, coordX:this.dz, coordY:this.dg, isVisible:this.df};return oJ;};WR360.aT.prototype.pM = function () {this.bb.unbind();this.bb.remove();if (this.bH != null) {this.bH.removeEventListener(WR360.aT.Events.mI, jQuery.proxy(this.jP, this));this.bH['delete']();}clearInterval(this.gB);clearTimeout(this.cb);clearTimeout(this.kn);this.bh.removeEventListener(WR360.Events.hG, jQuery.proxy(this.mC, this));};WR360.aT.prototype.pZ = function (isHide) {var ps = "hotspot_indicator_hidden";if (isHide == true) {this.bb.addClass(ps);} else {this.bb.removeClass(ps);}};})();(function () {WR360.bx = function (bV, aO, H) {this.aB().constructor.call(this);this.bV = bV;this.bh = bV.bh;this.H = H;this.ig = WR360.by.ge();this.dv = null;this.gM = null;this.image = null;this.qh = 0;this.qw = 0;this.aO = aO;this.hotspotInfo = aO.bi.hotspotInfo;this.renderMode = aO.bi.renderMode;this.sT = 0;this.bP = 5;this.visible = false;this.iA = new Array;this.dv = jQuery("
    ").appendTo(this.H);};WR360.bx.aK(WR360.dh);WR360.bx.prototype.nc = function (visible) {if (visible) {this.dv.show();} else {this.dv.hide();}this.visible = visible;};WR360.bx.prototype.mc = function (visible, duration, hZ) {if (visible) {this.dv.fadeIn(duration, hZ);} else {this.dv.fadeOut(duration, hZ);}this.visible = visible;};WR360.bx.prototype.iI = function (eJ) {if (this.visible == false) {return false;}return WR360.by.fA(this.gM, eJ);};WR360.bx.prototype.iL = function () {var ig = WR360.by.ge();if (this.hotspotInfo.cdata.length != 0) {this.gM = jQuery("
    ").appendTo(this.dv);this.gM.append(this.hotspotInfo.cdata);var bn = this;this.gM.find("iframe").each(function () {bn.iA.push(jQuery(this).attr("src"));});} else if (this.aO.F.src.length > 0) {var hY = this.hotspotInfo.imgNoScale == false ? this.bV.lB : 1;this.gM = jQuery("
    ").appendTo(this.dv);this.gM.css("width", this.aO.ea() * hY);this.gM.css("background-color", this.hotspotInfo.imgBkColor);this.image = jQuery("").appendTo(this.gM);} else if (this.hotspotInfo.txt.length != 0) {this.gM = jQuery("
    ").appendTo(this.dv);this.kr(this.gM);this.gM.html(this.hotspotInfo.txt.nA());}this.gM.css("position", "relative");if (this.hotspotInfo.cdata.length != 0 || this.hotspotInfo.txt.length != 0) {this.gM.find("a").fI(jQuery.proxy(function (event) {this.ib(event);}, this));}};WR360.bx.prototype.kr = function (dR) {if (this.hotspotInfo.css.length == 0) {dR.css("font-family", "Arial");dR.css("width", this.hotspotInfo.txtWidth + "px");dR.css("color", this.hotspotInfo.txtColor);dR.css("background-color", this.hotspotInfo.txtBkColor);dR.css("font-size", this.hotspotInfo.fntHeight + "px");dR.css("border", "1px #eeeeee solid");dR.css("padding", "6px 8px 10px 8px");} else {dR.attr("style", this.hotspotInfo.css);}};WR360.bx.prototype.jw = function () {this.iL();this.qh = this.dv.outerWidth();this.qw = this.dv.outerHeight();if (this.renderMode != WR360.kc.bf.aC) {var aM = this.bV.oy(this.aO, this.qh, this.qw);this.gM.css("left", aM.x);this.gM.css("top", aM.y);this.dv.css("width", 0);this.dv.css("height", 0);} else {this.gM.css("left", - (this.qh / 2));this.gM.css("top", - (this.qw / 2));}this.nc(false);this.dv.css("visibility", "visible");};WR360.bx.prototype.lm = function (e) {e.stopPropagation();e.preventDefault();var pU = this.aO.cv(this.bh);if (this.renderMode != WR360.kc.bf.au && pU == false) {this.cN(true);}};WR360.bx.prototype.ib = function (e) {e.stopPropagation();e.preventDefault();var link = jQuery(e.target).attr("href");if (link === undefined || link.length == 0) {this.lm(e);} else {if (this.bh.gD() == true) {this.bh.sm.Event(WR360.sY.rU.rR);}var target = jQuery(e.target).attr("target");window.open(link, target === undefined ? "_self" : target);}};WR360.bx.prototype.nR = function (it, ab) {var gd = 0;var jj = ab / 2;var margin = this.aO.bi.margin;switch (this.aO.bi.align.horizontal) {case WR360.Align.LEFT:gd = it - jj - margin.right;break;case WR360.Align.CENTER:gd = it - margin.right + margin.left;break;case WR360.Align.RIGHT:gd = it + jj + margin.left;break;default:;}var ca = jj + this.bP;if (gd - ca <= 0) {gd = it + jj + margin.left;} else if (gd + ca > this.H.css("width").bE()) {gd = it - jj - margin.right;}return gd;};WR360.bx.prototype.oi = function (gR, bq) {var ho = 0;var hC = bq / 2;var margin = this.aO.bi.margin;switch (this.aO.bi.align.vertical) {case WR360.Align.TOP:ho = gR - hC - margin.bottom;break;case WR360.Align.CENTER:ho = gR - margin.bottom + margin.top;break;case WR360.Align.BOTTOM:ho = gR + hC + margin.top;break;default:;}var cE = hC + this.bP;if (ho - cE <= 0) {ho = gR + hC + margin.top;} else if (ho + cE > this.H.css("height").bE()) {ho = gR - hC - margin.bottom;}return ho;};WR360.bx.prototype.mi = function (it, ab) {var ca = ab / 2 + this.bP;var lD = this.H.css("width").bE();if (it + ca >= lD) {return lD - ca;} else if (it - ca <= 0) {return ca;}return it;};WR360.bx.prototype.lF = function (gR, bq) {var cE = bq / 2 + this.bP;var mQ = this.H.css("height").bE();if (gR + cE >= mQ) {return mQ - cE;} else if (gR - cE <= 0) {return cE;}return gR;};WR360.bx.prototype.jl = function (cU) {this.iZ();if (this.visible == true) {return;}if (this.renderMode == WR360.kc.bf.aC) {var ab = this.qh;var bq = this.qw;if (this.image != null && this.hotspotInfo.imgNoScale == false) {ab = this.aO.ea() * this.bV.lB;bq = ab * this.aO.F.height / this.aO.F.width;this.gM.css("left", - (ab / 2));this.gM.css("top", - (bq / 2));}var kK = 0;var lg = 0;if (this.aO.bi.align.parsed == true && this.aO.bi.align.pn() == false) {kK = this.nR(cU.x, ab);lg = this.oi(cU.y, bq);} else {kK = this.mi(cU.x, ab);lg = this.lF(cU.y, bq);}this.dv.css("left", kK);this.dv.css("top", lg);}this.mc(true, 300, jQuery.proxy(this.jm, this));};WR360.bx.prototype.cN = function (aX, aq) {if (this.visible == false) {return;}if (aX) {this.mc(false, 200, jQuery.proxy(this.kk, this));} else {this.nc(false);this.kk();}aq = aq !== undefined ? aq : false;this.dispatchEvent(new WR360.Event(WR360.aT.Events.mI, false, false, aq));};WR360.bx.prototype.iZ = function () {this.gM.unbind();this.H.unbind("touchstart." + this.ig);this.H.unbind("mousedown." + this.ig);};WR360.bx.prototype.mx = function (e) {e.stopPropagation();if (this.renderMode != WR360.kc.bf.au) {this.cN(true);}};WR360.bx.prototype.jm = function () {if (this.renderMode == WR360.kc.bf.aC || this.renderMode == WR360.kc.bf.io) {this.sT = Date.now();}this.gM.bind("mouseover", function (event) {event.stopPropagation();});if (!WR360.by.fU) {this.gM.bind("mousedown", jQuery.proxy(function (event) {this.lm(event);}, this));this.H.bind("mousedown." + this.ig, jQuery.proxy(function (event) {this.mx(event);}, this));} else {this.gM.bind("touchstart", jQuery.proxy(function (event) {this.lm(event);}, this));this.H.bind("touchstart." + this.ig, jQuery.proxy(function (event) {this.mx(event);}, this));}var bn = this;this.gM.find("iframe").each(function (index) {var sS = jQuery(this).attr("src");var hv = bn.iA[index];if (typeof sS !== "undefined" && sS.length == 0 && typeof hv !== "undefined") {jQuery(this).attr("src", hv);}});};WR360.bx.prototype.kk = function () {if (this.renderMode == WR360.kc.bf.aC || this.renderMode == WR360.kc.bf.io) {if (this.sT != 0) {if (this.bh.gD() == true) {this.bh.sm.Event(WR360.sY.rU.te, Date.now() - this.sT);}this.sT = 0;}}this.gM.find("iframe").each(function () {jQuery(this).attr("src", "");});this.iZ();};WR360.bx.prototype['delete'] = function () {this.iZ();this.dv.remove();};})();(function () {WR360.jI = function (id, visible) {this.Id = id;this.Visible = visible;};})();(function () {WR360.cP = function (id, dF, cn) {this.cj = false;this.df = false;this.id = id;this.dF = dF;this.cn = cn;this.K = jQuery("#" + this.id);};WR360.cP.prototype.iW = function () {return this.cj;};WR360.cP.prototype.fi = function (fh) {if (this.cj == fh) {return;}if (!this.cj) {this.K.attr("class", this.cn);} else {this.K.attr("class", this.dF);}this.cj = fh;};WR360.cP.prototype.aH = function (visible) {if (this.K == null) {throw new Error("SetVisible: buttonElement==null.");}this.df = visible;if (visible) {this.K.show();} else {this.K.hide();}};WR360.eI = function (id, cg, be, dF, ck, cn, cY, du) {this.aB().constructor.call(this, id, dF, cn);this.jn = false;this.cg = cg;this.ck = ck;this.cY = cY;this.du = du;this.be = be;};WR360.eI.aK(WR360.cP);WR360.eI.prototype.cD = function () {if (this.jn) {return;}this.K.bind(this.cg, jQuery.proxy(this.ck, this.be));this.jn = true;};WR360.eI.prototype.fi = function (fh) {if (this.cj == fh) {return;}if (!this.cj) {this.K.unbind(this.cg);this.K.attr("class", this.cn);if (this.du == 0) {this.K.bind(this.cg, jQuery.proxy(this.cY, this.be));} else {var bu = this;setTimeout(function () {bu.ka();}, this.du);}} else {this.K.unbind(this.cg);this.K.attr("class", this.dF);if (this.du == 0) {this.K.bind(this.cg, jQuery.proxy(this.ck, this.be));} else {var bu = this;setTimeout(function () {bu.lj();}, this.du);}}this.cj = fh;};WR360.cP.prototype.ka = function () {this.K.bind(this.cg, jQuery.proxy(this.cY, this.be));};WR360.cP.prototype.lj = function () {this.K.bind(this.cg, jQuery.proxy(this.ck, this.be));};WR360.fb = function (id, cg, be, dF, ck, cn, cY, du) {this.aB().constructor.call(this, id, cg, be, dF, ck, cn, cY, du);};WR360.fb.aK(WR360.eI);WR360.fb.prototype.pb = function () {return this.iW();};WR360.fb.prototype.ji = function (playing) {this.fi(playing);};WR360.ej = function (id, dF, cn) {this.aB().constructor.call(this, id, dF, cn);};WR360.ej.aK(WR360.cP);WR360.ej.prototype.nM = function () {return this.iW();};WR360.ej.prototype.as = function (dn) {this.fi(dn);};})();(function () {WR360.bN = function () {this.he = 1;this.aF = -1;this.kl = 0;this.bU = null;this.bB = null;this.V = null;this.es = 0;this.fe = 0;this.bh = null;this.db = true;this.cA = null;this.hz = null;this.ce = null;this.en = false;this.hw = false;this.cX = new WR360.J;this.aU = null;this.dZ = 0;this.jr = true;this.lc = false;this.H = null;this.bd = null;this.jp = null;this.aG = null;this.kL = null;this.lB = 1;this.rm = false;this.pJ = 0;this.sn = 0;this.hE = 0;};WR360.bN.prototype.iF = function (bh, bd, jp) {this.bh = bh;this.bd = bd;this.aG = bd;this.jp = jp;this.hE = this.bd.css("z-index");if (typeof this.hE === "undefined" || this.hE == 0) {this.hE = 2002;}};WR360.bN.prototype.cD = function (bU, bB, V, es, fe, aU, H) {this.cA = new Array;this.hz = new Array;this.ce = new Array;this.bU = bU;this.kl = bU.startRowIndex;this.bB = bB;this.V = V;this.aU = aU;this.H = H;this.lB = this.bh.lB;this.he = this.bh.bA.settings.bg.kC == -1 ? 1 : -1;if (this.bh.pH != null && this.bh.pH.configFileFullScreenURL == "" && this.bh.settings.fullScreenOnClick == false) {this.es = this.bh.pH.dG;this.fe = this.bh.pH.dA;} else {this.es = es;this.fe = fe;}if (this.V.settings.control.hideHotspotsOnLoad) {this.db = false;}for (var i = 0; i < this.bB.bF.length; i++) {var aO = this.bB.bF[i];if (aO.bi.disabled == true) {continue;}var dj = aO.bi.id;var ai = null;if (aO.bi.renderMode != WR360.kc.bf.au) {ai = new WR360.aT(false, aO, this, this.H);} else {ai = new WR360.cI(false, aO, this, this.H);}this.cA[dj] = ai;this.hz[dj] = this.ce[i] = new WR360.jI(dj, true);ai.cD();}};WR360.bN.prototype.oy = function (aO, width, height) {var x = 0;var y = 0;var bi = aO.bi;if (aO.F.src.length > 0) {var hY = aO.bi.hotspotInfo.imgNoScale == false ? this.lB : 1;width = aO.ea() * hY;height = width * aO.F.height / aO.F.width;}if (bi.offset.ot()) {return {x:bi.offset.x * this.lB, y:bi.offset.y * this.lB};}switch (bi.align.horizontal) {case WR360.Align.LEFT:x = bi.margin.left;break;case WR360.Align.CENTER:x = bi.margin.left + (this.H.css("width").bE() - bi.margin.left - bi.margin.right - width) / 2;break;case WR360.Align.RIGHT:x = this.H.css("width").bE() - bi.margin.right - width;break;default:;}switch (bi.align.vertical) {case WR360.Align.TOP:y = bi.margin.top;break;case WR360.Align.CENTER:y = bi.margin.top + (this.H.css("height").bE() - bi.margin.top - bi.margin.bottom - height) / 2;break;case WR360.Align.BOTTOM:y = this.H.css("height").bE() - bi.margin.bottom - height;break;default:;}return {x:x, y:y};};WR360.bN.prototype.sx = function () {var sz = this.bU.sd();if (this.kl < sz - 1) {this.kl++;} else if (this.V.settings.bg.bounceRows == false) {this.kl = 0;}this.dE(this.aF);};WR360.bN.prototype.ta = function () {var sz = this.bU.sd();if (this.kl > 0) {this.kl--;} else if (this.V.settings.bg.bounceRows == false) {this.kl = sz - 1;}this.dE(this.aF);};WR360.bN.prototype.fo = function () {var dir = this.V.settings.bg.kC;if (this.V.settings.bg.oc == "true") {this.he = dir == -1 ? 1 : -1;} else {this.he = dir == -1 ? -1 : 1;}if (this.tk() == false) {return true;}return this.iG(this.he);};WR360.bN.prototype.eT = function () {var dir = this.V.settings.bg.kC;if (this.V.settings.bg.oc == "true") {this.he = dir == -1 ? 1 : -1;} else {this.he = dir == -1 ? 1 : -1;}if (this.tk() == false) {return true;}return this.iG(this.he);};WR360.bN.prototype.tk = function () {var jq = this.bU.lU(this.kl);var af = jq[this.aF];if (af.image.delay > 0) {if (this.sn++ < af.image.delay) {if (this.bh.gQ != -1) {this.bh.gQ++;}return false;}}this.sn = 0;return true;};WR360.bN.prototype.rE = function () {this.sn = 0;};WR360.bN.prototype.ny = function () {this.dE(0);};WR360.bN.prototype.nC = function () {this.dE(this.bU.lU(this.kl).length - 1);};WR360.bN.prototype.iG = function (jG) {return this.dE(this.aF + jG);};WR360.bN.prototype.qo = function (label) {if (typeof label === "undefined" || label.length <= 0) {return false;}this.sn = 0;var sz = this.bU.sd();for (var sH = 0; sH < sz; sH++) {var jq = this.bU.lU(sH);for (var si = 0; si < jq.length; si++) {if (jq[si].image.label.toLowerCase() == label.toLowerCase()) {this.kl = sH;return this.dE(si);}}}return false;};WR360.bN.prototype.qB = function (label, rF, hZ) {if (this.pJ != 0) {return true;}if (typeof label === "undefined" || label.length <= 0) {return false;}this.bh.cJ();var sz = this.bU.sd();for (var sh = 0; sh < sz; sh++) {var rD = false;var jq = this.bU.lU(sh);for (var pO = 0; pO < jq.length; pO++) {if (jq[pO].image.label.toLowerCase() == label.toLowerCase()) {rD = true;break;}}if (rD == true) {break;}}if (rD == false) {return false;}if (pO == this.aF && sh == this.kl) {return true;}var lh = true;var pv = Math.abs(this.aF - pO);if (pv <= jq.length / 2) {lh = this.aF < pO;} else {lh = this.aF > pO;}var lM = this;var qD = function () {if (lM.bh.pY == false || lM.aF == pO && lM.kl == sh) {clearInterval(lM.pJ);lM.pJ = 0;lM.bh.eg.ji(false);lM.bh.pY = false;if (lM.aF == pO && typeof hZ !== "undefined") {if (hZ != null) {hZ(label);}}return;}lM.rm = true;if (sh > lM.kl) {lM.sx();} else if (sh < lM.kl) {lM.ta();}if (lM.aF != pO) {lh ? lM.eT() : lM.fo();}lM.rm = false;};this.bh.eg.ji(true);this.bh.pY = true;var gg = WR360.by.dM(rF, 1);var eo = gg / jq.length * 1000;this.pJ = setInterval(function () {qD();}, eo);return true;};WR360.bN.prototype.ob = function (nh) {if (typeof nh !== "undefined" && nh == true) {return this.aF + this.kl * this.bU.sM();}return this.aF;};WR360.bN.prototype.lV = function (index) {var jq = this.bU.lU(this.kl);var kj = false;if (index < 0) {index = - index;kj = true;}if (index > jq.length - 1) {index = index % jq.length;}if (index > 0 && kj) {index = jq.length - index;}return index;};WR360.bN.prototype.nk = function (index) {var jq = this.bU.lU(this.kl);if (!this.rm && this.V.settings.bg.bounce) {if (index >= jq.length - 1) {return jq.length - 1;} else if (index <= 0) {return 0;}}return this.lV(index);};WR360.bN.prototype.fK = function (bW, deltaX, deltaY) {var jq = this.bU.lU(this.kl);var fL = jq[bW].bG;if (fL == null) {return;}if (deltaX == null) {deltaX = 0;}if (deltaY == null) {deltaY = 0;}var dC = 0;var cK = 0;if (this.bh.bA.iq()) {dC = this.bh.bA.aw.ep;cK = this.bh.bA.aw.eU;} else {dC = fL.width;cK = fL.height;}this.aG.css("width", dC);this.aG.css("height", cK);if (this.jr) {this.aG.css("margin-left", this.aU['_viewPort.x'] + (this.aU['_viewPort.width'] - dC) / 2 + deltaX);this.aG.css("margin-top", this.aU['_viewPort.y'] + (this.aU['_viewPort.height'] - cK) / 2 + deltaY);if (this.dZ == 0) {this.dZ = dC / this.aU['_viewPort.width'];}if (this.bh.fm - dC < 0) {this.bh.eL.eY = this.bh.fm - dC;this.bh.eL.fd = 0;} else {this.bh.eL.eY = 0;this.bh.eL.fd = this.bh.fm - dC;}if (this.bh.fJ - cK < 0) {this.bh.eL.ev = this.bh.fJ - cK;this.bh.eL.fM = 0;} else {this.bh.eL.ev = 0;this.bh.eL.fM = this.bh.fJ - cK;}this.jr = false;}this.hs(fL.src);if (!this.bh.eG()) {this.eh(bW);}this.aU['_viewPort.zoomedInX'] = this.aG.css("margin-left").bE();this.aU['_viewPort.zoomedInY'] = this.aG.css("margin-top").bE();this.aU['_viewPort.zoomedInWidth'] = this.aG.css("width").bE();this.aU['_viewPort.zoomedInHeight'] = this.aG.css("height").bE();this.hw = true;};WR360.bN.prototype.dE = function (index, deltaX, deltaY) {var ic = this.aF;var returnValue = true;this.aF = parseInt(this.nk(index));if (ic >= 0 && this.aF == ic) {returnValue = false;}var jq = this.bU.lU(this.kl);var af = jq[this.aF];if (this.en && af.image.cS != null) {if (af.bG != null && af.bG.cQ == true) {this.aS(null);this.fK(this.aF);} else {this.aS(af);if (!this.cX.contains(af)) {this.cX.bk(af);af.addEventListener(WR360.ah.eD, jQuery.proxy(this.hm, this), {deltaX:deltaX, deltaY:deltaY});af.addEventListener(WR360.ah.dU, jQuery.proxy(this.eK, this));af.addEventListener(WR360.ah.fD, jQuery.proxy(this.eK, this));af.hS();if (af.bG == null || af.bG.cQ == false) {this.bh.hc(true);}}if (af.bG == null || af.bG.cQ == false) {this.iM(this.aF, true);}}} else {this.iM(this.aF, this.hw);}return returnValue;};WR360.bN.prototype.aS = function (iw) {var bC = 0;if (this.cX.contains(iw)) {bC = 1;}while (this.cX.ds() > bC) {var af = this.cX.mh(0);if (af != iw) {af.removeEventListener(WR360.ah.eD, this.hm);af.removeEventListener(WR360.ah.dU, this.eK);af.removeEventListener(WR360.ah.fD, this.eK);af.aE();this.cX.removeItem(af);}}if (this.cX.ds() == 0) {this.bh.hc(false);}};WR360.bN.prototype.iM = function (bW, jT) {var jq = this.bU.lU(this.kl);if (this.bU == null) {return;}if (jq[bW].F.src.length == 0) {return;}this.hs(jq[bW].F.src);if (!this.bh.eG()) {this.eh(bW);}if (jT) {this.hw = false;}};WR360.bN.prototype.kg = function () {if (this.ce != null) {for (var i = 0; i < this.ce.length; i++) {this.ce[i].Visible = false;}}};WR360.bN.prototype.eh = function (bW, aX) {if (!this.db) {this.nT();return;}if (this.aG.is(":visible") != true) {var bn = this;setTimeout(function () {bn.eh(bW, aX);}, 400);return;}this.kg();if (!this.bU) {return;}var jq = this.bU.lU(this.kl);var af = jq[bW];if (!af) {return;}for (var i = 0; i < af.image.bF.length; i++) {var al = af.image.bF[i];if (al != null) {var ai = this.cA[al.source];if (ai != null) {ai.eC(this.aG.css("left").bE() + this.aG.css("margin-left").bE() + al.offsetX * (this.aG.css("width").bE() / this.es));ai.fv(this.aG.css("top").bE() + this.aG.css("margin-top").bE() + al.offsetY * (this.aG.css("height").bE() / this.fe));ai.aH(true, aX);this.hz[al.source].Visible = true;}}}this.nT();this.kQ();};WR360.bN.prototype.nT = function () {for (var i = 0; i < this.ce.length; i++) {var bi = this.ce[i];if (bi !== undefined && bi != null) {var ai = this.cA[bi.Id];if (ai != null) {var aO = ai.aO;if (aO != null) {ai.nT();}}}}};WR360.bN.prototype.kQ = function () {for (var i = 0; i < this.ce.length; i++) {var jg = this.ce[i];if (!jg.Visible) {this.cA[jg.Id].aH(false);}}};WR360.bN.prototype.kM = function (duration, left, top, marginLeft, marginTop, width, height) {if (!this.db) {return;}var jq = this.bU.lU(this.kl);var af = jq[this.aF];for (var i = 0; i < af.image.bF.length; i++) {var al = af.image.bF[i];if (al != null) {var ai = this.cA[al.source];if (ai != null) {var aO = ai.aO;if (aO.bi.renderMode != WR360.kc.bf.au) {ai.bb.animate({left:left + marginLeft + al.offsetX * (width / this.es) - ai.lX() / 2, top:top + marginTop + al.offsetY * (height / this.fe) - ai.lT() / 2}, duration);}}}}};WR360.bN.prototype.lx = function (aX) {for (var i = 0; i < this.ce.length; i++) {this.cA[this.ce[i].Id].aH(false, aX);}this.bh.R = false;};WR360.bN.prototype.hs = function (src) {this.bd.attr("src", src);};WR360.bN.prototype.bo = function () {var aI = new Array;for (var i = 0; i < this.ce.length; i++) {var bi = this.ce[i];if (!bi) {continue;}var aN = this.cA[bi.Id];if (aN instanceof WR360.aT) {aI.push(aN.mv());}}return aI;};WR360.bN.prototype.ActivateHotspot = function (dj, timeout, hZ) {var aN = this.cA[dj];if (aN instanceof WR360.aT) {aN.eb(timeout, hZ);}};WR360.bN.prototype.op = function (dj) {var aN = this.cA[dj];if (aN instanceof WR360.aT) {aN.gY(true);}};WR360.bN.prototype.qb = function (dj, isHide) {var cA = this.cA;var aN = cA[dj];if (aN instanceof WR360.aT) {aN.pZ(isHide);this.fP();}};WR360.bN.prototype.qG = function () {for (var i = 0; i < this.ce.length; i++) {var bi = this.ce[i];if (!bi) {continue;}var aN = this.cA[bi.Id];if (aN instanceof WR360.aT || aN instanceof WR360.cI) {aN.pM();}}};WR360.bN.prototype.lO = function (e) {this.db = true;this.eh(this.aF, true);this.bh.ih(true);};WR360.bN.prototype.mo = function (e) {this.db = false;this.lx(true);this.bh.ih(false);};WR360.bN.prototype.fP = function () {this.eh(this.aF);};WR360.bN.prototype.hm = function (e, offset) {if (e.af == null) {return;}this.cX.removeItem(e.af);if (this.cX.ds() == 0) {this.bh.hc(false);}if (!this.en) {return;}e.af.removeEventListener(WR360.ah.eD, this.hm);e.af.removeEventListener(WR360.ah.dU, this.eK);e.af.removeEventListener(WR360.ah.fD, this.eK);if (e.af.index != this.aF) {return;}this.fK(this.aF, offset.deltaX, offset.deltaY);};WR360.bN.prototype.eK = function (e) {if (e.af == null) {return;}this.cX.removeItem(e.af);if (this.cX.ds() == 0) {this.bh.hc(false);}e.af.removeEventListener(WR360.ah.eD, this.hm);e.af.removeEventListener(WR360.ah.dU, this.eK);e.af.removeEventListener(WR360.ah.fD, this.eK);};})();(function () {WR360.sY = function () {this.sZ = false;this.label = "N/A";this.rN = "WebRotate360";this.rs = "ga";this.rz = null;this.hW = null;};WR360.sY.prototype.cD = function (viewName, sZ) {if (viewName.length > 0) {this.label = viewName;}this.sZ = sZ;if (this.sZ == false) {return;}var sb = "GoogleAnalyticsObject";var ga = window[sb];if (typeof ga !== "undefined" && ga.length > 0) {this.rs = ga;this.rz = window;} else {ga = window.parent.window[sb];if (typeof ga !== "undefined" && ga.length > 0) {this.rs = ga;this.rz = window.parent.window;}}if (this.rz == null) {if (typeof _gaq !== "undefined") {this.hW = window;} else if (typeof window.parent._gaq !== "undefined") {this.hW = window.parent;}}};WR360.sY.prototype.Event = function (action, value) {var rJ = false;if (action == WR360.sY.rU.sG) {rJ = true;}if (this.sZ == true) {if (this.rz != null) {this.rz[this.rs]("send", "event", this.rN, action, this.label, value, rJ);} else if (this.hW != null) {this.hW._gaq.push(["_trackEvent", this.rN, action, this.label, value, rJ]);}}};WR360.sY.rU = {};WR360.sY.rU.ZOOM = "Zoom";WR360.sY.rU.rQ = "Playback";WR360.sY.rU.sP = "ArrowNavigation";WR360.sY.rU.FULLSCREEN = "Fullscreen";WR360.sY.rU.sk = "HotspotsOnOff";WR360.sY.rU.rC = "ImageGrab";WR360.sY.rU.rW = "ImageHover";WR360.sY.rU.sG = "ViewerLoaded";WR360.sY.rU.sc = "ViewerReloaded";WR360.sY.rU.te = "HotspotPopup";WR360.sY.rU.rR = "HotspotAction";})();(function () {WR360.bs = function () {};WR360.bs.prototype.cD = function () {var self = this;jQuery(".wr360embed, .wr360embed-cdl").each(function () {var data = self.ed(this);var cF = "wr360_" + data.name + "_playerid";var am = jQuery("
    ");jQuery(this).append(am);if (data.background.length > 0) {am.css("background-color", data.background);}var r = WR360.ImageRotator.Create(cF);r.settings.configFileURL = data.xmlfile;r.licenseFileURL = data.licfile;r.licenseCode = data.lic;r.settings.graphicsPath = data.graphics;r.settings.googleEventTracking = data.events;r.settings.responsiveBaseWidth = data.basewidth;r.settings.responsiveMinHeight = data.minheight;r.settings.eventTrackingAlias = data.name;r.settings.zIndexLayersOn = data.zlayers;r.settings.rootPath = data.rootpath;r.settings.crossDomainConfigLoader = jQuery(this).hasClass("wr360embed-cdl") ? true : false;if (data.onready.length > 0) {var fn = window[data.onready];if (typeof (fn === "function")) {r.settings.apiReadyCallback = fn;}}if (data.onprogress.length > 0) {var fn = window[data.onprogress];if (typeof (fn === "function")) {r.settings.progressCallback = fn;}}r.runImageRotator();});};WR360.bs.prototype.ed = function (hk) {var data = jQuery(hk).data("imagerotator");var defs = new WR360.jQ;data.name = this.bv(data.name, (new Date).getTime());data.licfile = this.bv(data.licfile, "license.lic");data.lic = this.bv(data.lic, "");data.graphics = this.bv(data.graphics, defs.graphicsPath);data.events = this.bv(data.events, defs.googleEventTracking);data.basewidth = this.bv(data.basewidth, defs.responsiveBaseWidth);data.minheight = this.bv(data.minheight, defs.responsiveMinHeight);data.zlayers = this.bv(data.zlayers, defs.zIndexLayersOn);data.rootpath = this.bv(data.rootpath, defs.rootPath);data.background = this.bv(data.background, "");data.onready = this.bv(data.onready, "");data.onprogress = this.bv(data.onprogress, "");return data;};WR360.bs.prototype.bv = function (param, ez) {if (typeof param === "undefined" || param.length <= 0) {return ez;}return param;};})();(function () {WR360.fH = function (bV, aO, H) {this.aB().constructor.call(this);this.bV = bV;this.bh = bV.bh;this.dv = null;this.gM = null;this.gS = null;this.iX = WR360.by.ge();this.H = H;this.eV = null;this.aO = aO;this.hotspotInfo = aO.bi.hotspotInfo;this.sT = 0;};WR360.fH.aK(WR360.dh);WR360.fH.prototype.iL = function () {this.dv = jQuery("