var cms_combine_fn='/(cms)/module/static/default/content/libs/js/general.js'; if(typeof _lib_load_libs=='undefined'&&typeof window._loader=='undefined'){var _lib_load_loaded=false;var _lib_load_libs={};if(typeof _lib_load_libs_loaded=='undefined'){var _lib_load_libs_loaded={};} var ll_onload_old=window.onload;window.onload=function(){window._lib_load_loaded=true;if(typeof(ll_onload_old)=='function'){ll_onload_old();}};var _lib_load=function(){for(var i=0;i');}}else if(file_ext=='css'){if(window._lib_load_loaded){tag=document.createElement('link');tag.rel='stylesheet';tag.href=file_src;} else{window.document.write('');}} if(window._lib_load_loaded&&tag!==false){head.appendChild(tag);}}} _lib_load_libs_loaded[lib_name]=true;}}};var _lib_repository_add=function(name,files){if(typeof _lib_load_libs[name]=='undefined'){_lib_load_libs[name]=files;}}} if(typeof window._loader!='undefined'){var _lib_repository_add=window._loader.lib_add;var _lib_load=window._loader.lib_load;} _lib_repository_add('jQuery',['/(cms)/module/static/default/content/libs/js/jquery-1.3.2/jquery-1.3.2.min.js']);_lib_repository_add('jQuery172',['/(cms)/module/static/default/content/libs/js/jquery-1.7.2/jquery-1.7.2.min.js']);_lib_repository_add('jQuery182',['/(cms)/module/static/default/content/libs/js/jquery-1.8.2/jquery-1.8.2.min.js']);_lib_repository_add('jQuery-UI',['/(cms)/module/static/default/content/libs/js/jquery-ui/js/jquery-ui-1.7.2.custom.min.js','/(cms)/module/static/default/content/libs/js/jquery-ui/css/smoothness/jquery-ui-1.7.2.custom.css']);_lib_repository_add('vTicker',['/(cms)/module/static/default/content/libs/js/jquery.vticker-1.1.3/jquery.vticker.js']);_lib_repository_add('ui-autocomplete',['/(cms)/module/static/default/content/libs/js/jquery.autocomplete-1.2.6/jquery.autocomplete.js','/(cms)/module/static/default/content/libs/js/jquery.autocomplete-1.2.6/jquery.autocomplete.css']);_lib_repository_add('Datepicker',['/(cms)/module/static/default/content/libs/js/datepicker-3.3/ui.datepicker.js','/(cms)/module/static/default/content/libs/js/datepicker-3.3/ui.datepicker.css']);_lib_repository_add('Lytebox',['/(cms)/module/static/default/content/libs/js/lytebox-3.22/lytebox.js?v=1','/(cms)/module/static/default/content/libs/js/lytebox-3.22/lytebox.css']);_lib_repository_add('Highslide',['/(cms)/module/static/default/content/libs/js/highslide-4.1.12/highslide-full.js','/(cms)/module/static/default/content/libs/js/highslide-4.1.12/settings.js','/(cms)/module/static/default/content/libs/js/highslide-4.1.12/highslide.css']);_lib_repository_add('bgiframe',['/(cms)/module/static/default/content/libs/js/jquery.bgiframe-2.1.1/jquery.bgiframe.min.js']);_lib_repository_add('swfobject',['/(cms)/module/static/default/content/libs/js/swfobject-2.1/swfobject.js']);_lib_repository_add('vjg',['/(cms)/module/static/default/content/libs/js/vjg/vjg.js?v=1083','/(cms)/module/static/default/content/libs/js/vjg/vjg.css']);_lib_repository_add('vjg2',['/(cms)/module/static/default/content/libs/js/vjg/vjg-2.js?v=2','/(cms)/module/static/default/content/libs/js/vjg/vjg.css?v=1']);_lib_repository_add('vil',['/(cms)/module/static/default/content/libs/js/vil/vil.js','/(cms)/module/static/default/content/libs/js/vil/vil.css']);_lib_repository_add('vnh',['/(cms)/module/static/default/content/libs/js/vnh/vnh.js?v=1']);_lib_repository_add('vha',['/(cms)/module/static/default/content/libs/js/vha/vha.js']);_lib_repository_add('vct',['/(cms)/module/static/default/content/libs/js/vct/vct.js']);_lib_repository_add('vcs',['/(cms)/module/static/default/content/libs/js/vcs/vcs.js']);_lib_repository_add('vac',['/(cms)/module/static/default/content/libs/js/vac/vac.js','/(cms)/module/static/default/content/libs/js/vac/vac.css']);_lib_repository_add('vmf',['/(cms)/module/static/default/content/libs/js/vmf/vmf.js?v=5']);_lib_repository_add('vnt',['/(cms)/module/static/default/content/libs/js/vnt/vnt.js']);_lib_repository_add('jQuery_Highlight',['/(cms)/module/static/default/content/libs/js/jquery-highlight-3/jquery.highlight-3.js']);_lib_repository_add('Cookies',['/(cms)/module/static/default/content/libs/js/jquery.cookie-1.0/jquery.cookie.js']);_lib_repository_add('corners',['/(cms)/module/static/default/content/libs/js/dd_roundies-0.0.2a/DD_roundies_0.0.2a-min.js']);_lib_repository_add('curvycorners',['/(cms)/module/static/default/content/libs/js/curvycorners-2.0.4/curvycorners.js']);_lib_repository_add('throttle',['/(cms)/module/static/default/content/libs/js/jQuery.throttle-1.1/jquery.throttle.js']);_lib_repository_add('jquery.json',['/(cms)/module/static/default/content/libs/js/jquery.labs_json-1.0/labs_json.js']);_lib_repository_add('jQTouch',['/(cms)/module/static/default/content/libs/js/jqtouch-1.0-beta-2-r109/jqtouch/jqtouch.min.js','/(cms)/module/static/default/content/libs/js/jqtouch-1.0-beta-2-r109/jqtouch/jqtouch.min.css','/(cms)/module/static/default/content/libs/js/jqtouch-1.0-beta-2-r109/themes/apple/theme.css']);_lib_repository_add('SpinningWheel',['/(cms)/module/static/default/content/libs/js/spinningwheel-1.4/spinningwheel-min.js','/(cms)/module/static/default/content/libs/js/spinningwheel-1.4/spinningwheel.css']);_lib_repository_add('jQuery_Sort',['/(cms)/module/static/default/content/libs/js/jquery.sort-0.1/jquery.sort.js']);_lib_repository_add('qtip',['/(cms)/module/static/default/content/libs/js/jquery.qtip-1.0.0/jquery.qtip-1.0.min.js']);_lib_repository_add('MediaElement',['/(cms)/module/static/default/content/libs/js/mediaelement-2.14.0/mediaelementplayer.css','/(cms)/module/static/default/content/libs/js/mediaelement-2.14.0/mediaelement-and-player.js']);if(!Function.prototype.bind){Function.prototype.bind=function(){var __method=this,args=Array.prototype.slice.call(arguments,0),object=args.shift();return function(){return __method.apply(object,args.concat(Array.prototype.slice.call(arguments,0)));};};} if(typeof console=='undefined'){console={log:function(){},group:function(){},groupEnd:function(){},info:function(){},warn:function(){}};} var cms_combine_fn='/(cms)/module/static/default/content/libs/js/jquery-1.12.4/jquery-1.12.4.min.js'; /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ !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("',error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:'fade',openSpeed:250,openEasing:'swing',openOpacity:true,openMethod:'zoomIn',closeEffect:'fade',closeSpeed:250,closeEasing:'swing',closeOpacity:true,closeMethod:'zoomOut',nextEffect:'elastic',nextSpeed:250,nextEasing:'swing',nextMethod:'changeIn',prevEffect:'elastic',prevSpeed:250,prevEasing:'swing',prevMethod:'changeOut',helpers:{overlay:true,title:true,alt:true},onCancel:$.noop,beforeLoad:$.noop,afterLoad:$.noop,beforeShow:$.noop,afterShow:$.noop,beforeChange:$.noop,beforeClose:$.noop,afterClose:$.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(group,opts){if(!group){return;} if(!$.isPlainObject(opts)){opts={};} if(false===F.close(true)){return;} if(!$.isArray(group)){group=isQuery(group)?$(group).get():[group];} $.each(group,function(i,element){var obj={},href,title,alt,content,type,rez,hrefParts,selector;if($.type(element)==="object"){if(element.nodeType){element=$(element);} if(isQuery(element)){obj={href:element.data('fancybox-href')||element.attr('href'),title:element.data('fancybox-title')||element.attr('title'),isDom:true,element:element};obj.alt=element.data('fancybox-alt')||element.find('img').attr('alt')||obj.title;if(obj.alt&&isString(obj.alt)){obj.alt=obj.alt.replace(/"/g,'"');} if($.metadata){$.extend(true,obj,element.metadata());}}else{obj=element;}} alt=opts.alt||obj.alt;href=opts.href||obj.href||(isString(element)?element:null);title=opts.title!==undefined?opts.title:obj.title||'';content=opts.content||obj.content;type=content?'html':(opts.type||obj.type);if(!type&&obj.isDom){type=element.data('fancybox-type');if(!type){rez=element.prop('class').match(/fancybox\.(\w+)/);type=rez?rez[1]:null;}} if(isString(href)){if(!type){if(F.isImage(href)){type='image';}else if(F.isSWF(href)){type='swf';}else if(href.charAt(0)==='#'){type='inline';}else if(isString(element)){type='html';content=element;}} if(type==='ajax'){hrefParts=href.split(/\s+/,2);href=hrefParts.shift();selector=hrefParts.shift();}} if(!content){if(type==='inline'){if(href){content=$(isString(href)?href.replace(/.*(?=#[^\s]+$)/,''):href);}else if(obj.isDom){content=element;}}else if(type==='html'){content=href;}else if(!type&&!href&&obj.isDom){type='inline';content=element;}} $.extend(obj,{href:href,type:type,content:content,title:title,alt:alt,selector:selector});group[i]=obj;});F.opts=$.extend(true,{},F.defaults,opts);if(opts.keys!==undefined){F.opts.keys=opts.keys?$.extend({},F.defaults.keys,opts.keys):false;} F.group=group;return F._start(F.opts.index);},cancel:function(){var coming=F.coming;if(!coming||false===F.trigger('onCancel')){return;} F.hideLoading();if(F.ajaxLoad){F.ajaxLoad.abort();} F.ajaxLoad=null;if(F.imgPreload){F.imgPreload.onload=F.imgPreload.onerror=null;} if(coming.wrap){coming.wrap.stop(true,true).trigger('onReset').remove();} F.coming=null;if(!F.current){F._afterZoomOut(coming);}},close:function(event){F.cancel();if(false===F.trigger('beforeClose')){return;} F.unbindEvents();if(!F.isActive){return;} if(!F.isOpen||event===true){$('.fancybox-wrap').stop(true).trigger('onReset').remove();F._afterZoomOut();}else{F.isOpen=F.isOpened=false;F.isClosing=true;$('.fancybox-item, .fancybox-nav').remove();F.wrap.stop(true,true).removeClass('fancybox-opened');F.transitions[F.current.closeMethod]();}},play:function(action){var clear=function(){clearTimeout(F.player.timer);},set=function(){clear();if(F.current&&F.player.isActive){F.player.timer=setTimeout(F.next,F.current.playSpeed);}},stop=function(){clear();D.unbind('.player');F.player.isActive=false;F.trigger('onPlayEnd');},start=function(){if(F.current&&(F.current.loop||F.current.index=current.index?'next':'prev')];F.router=router||'jumpto';if(current.loop){if(index<0){index=current.group.length+(index%current.group.length);} index=index%current.group.length;} if(current.group[index]!==undefined){F.cancel();F._start(index);}},reposition:function(e,onlyAbsolute){var current=F.current,wrap=current?current.wrap:null,pos;if(wrap){pos=F._getPosition(onlyAbsolute);if(e&&e.type==='scroll'){delete pos.position;wrap.stop(true,true).animate(pos,200);}else{wrap.css(pos);current.pos=$.extend({},current.dim,pos);}}},update:function(e){var type=(e&&e.type),anyway=!type||type==='orientationchange';if(anyway){clearTimeout(didUpdate);didUpdate=null;} if(!F.isOpen||didUpdate){return;} didUpdate=setTimeout(function(){var current=F.current;if(!current||F.isClosing){return;} F.wrap.removeClass('fancybox-tmp');if(anyway||type==='load'||(type==='resize'&¤t.autoResize)){F._setDimension();} if(!(type==='scroll'&¤t.canShrink)){F.reposition(e);} F.trigger('onUpdate');didUpdate=null;},(anyway&&!isTouch?0:300));},toggle:function(action){if(F.isOpen){F.current.fitToView=$.type(action)==="boolean"?action:!F.current.fitToView;if(isTouch){F.wrap.removeAttr('style').addClass('fancybox-tmp');F.trigger('onUpdate');} F.update();}},hideLoading:function(){D.unbind('.loading');$('#fancybox-loading').remove();},showLoading:function(){var el,viewport;F.hideLoading();el=$('
').click(F.cancel).appendTo('body');D.bind('keydown.loading',function(e){if((e.which||e.keyCode)===27){e.preventDefault();F.cancel();}});if(!F.defaults.fixed){viewport=F.getViewport();el.css({position:'absolute',top:(viewport.h*0.5)+viewport.y,left:(viewport.w*0.5)+viewport.x});}},getViewport:function(){var locked=(F.current&&F.current.locked)||false,rez={x:W.scrollLeft(),y:W.scrollTop()};if(locked){rez.w=locked[0].clientWidth;rez.h=locked[0].clientHeight;}else{rez.w=isTouch&&window.innerWidth?window.innerWidth:W.width();rez.h=isTouch&&window.innerHeight?window.innerHeight:W.height();} return rez;},unbindEvents:function(){if(F.wrap&&isQuery(F.wrap)){F.wrap.unbind('.fb');} D.unbind('.fb');W.unbind('.fb');},bindEvents:function(){var current=F.current,keys;if(!current){return;} W.bind('orientationchange.fb'+(isTouch?'':' resize.fb')+(current.autoCenter&&!current.locked?' scroll.fb':''),F.update);keys=current.keys;if(keys){D.bind('keydown.fb',function(e){var code=e.which||e.keyCode,target=e.target||e.srcElement;if(code===27&&F.coming){return false;} if(!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&!(target&&(target.type||$(target).is('[contenteditable]')))){$.each(keys,function(i,val){if(current.group.length>1&&val[code]!==undefined){F[i](val[code]);e.preventDefault();return false;} if($.inArray(code,val)>-1){F[i]();e.preventDefault();return false;}});}});} if($.fn.mousewheel&¤t.mouseWheel){F.wrap.bind('mousewheel.fb',function(e,delta,deltaX,deltaY){var target=e.target||null,parent=$(target),canScroll=false;while(parent.length){if(canScroll||parent.is('.fancybox-skin')||parent.is('.fancybox-wrap')){break;} canScroll=isScrollable(parent[0]);parent=$(parent).parent();} if(delta!==0&&!canScroll){if(F.group.length>1&&!current.canShrink){if(deltaY>0||deltaX>0){F.prev(deltaY>0?'down':'left');}else if(deltaY<0||deltaX<0){F.next(deltaY<0?'up':'right');} e.preventDefault();}}});}},trigger:function(event,o){var ret,obj=o||F.coming||F.current;if(!obj){return;} if($.isFunction(obj[event])){ret=obj[event].apply(obj,Array.prototype.slice.call(arguments,1));} if(ret===false){return false;} if(obj.helpers){$.each(obj.helpers,function(helper,opts){if(opts&&F.helpers[helper]&&$.isFunction(F.helpers[helper][event])){F.helpers[helper][event]($.extend(true,{},F.helpers[helper].defaults,opts),obj);}});} D.trigger(event);},isImage:function(str){return isString(str)&&str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i);},isSWF:function(str){return isString(str)&&str.match(/\.(swf)((\?|#).*)?$/i);},_start:function(index){var coming={},obj,href,type,margin,padding;index=getScalar(index);obj=F.group[index]||null;if(!obj){return false;} coming=$.extend(true,{},F.opts,obj);margin=coming.margin;padding=coming.padding;if($.type(margin)==='number'){coming.margin=[margin,margin,margin,margin];} if($.type(padding)==='number'){coming.padding=[padding,padding,padding,padding];} if(coming.modal){$.extend(true,coming,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}});} if(coming.autoSize){coming.autoWidth=coming.autoHeight=true;} if(coming.width==='auto'){coming.autoWidth=true;} if(coming.height==='auto'){coming.autoHeight=true;} coming.group=F.group;coming.index=index;F.coming=coming;if(false===F.trigger('beforeLoad')){F.coming=null;return;} type=coming.type;href=coming.href;if(!type){F.coming=null;if(F.current&&F.router&&F.router!=='jumpto'){F.current.index=index;return F[F.router](F.direction);} return false;} F.isActive=true;if(type==='image'||type==='swf'){coming.autoHeight=coming.autoWidth=false;coming.scrolling='visible';} if(type==='image'){coming.aspectRatio=true;} if(type==='iframe'&&isTouch){coming.scrolling='scroll';} coming.wrap=$(coming.tpl.wrap).addClass('fancybox-'+(isTouch?'mobile':'desktop')+' fancybox-type-'+type+' fancybox-tmp '+coming.wrapCSS).appendTo(coming.parent||'body');$.extend(coming,{skin:$('.fancybox-skin',coming.wrap),outer:$('.fancybox-outer',coming.wrap),inner:$('.fancybox-inner',coming.wrap)});$.each(["Top","Right","Bottom","Left"],function(i,v){coming.skin.css('padding'+v,getValue(coming.padding[i]));});F.trigger('onReady');if(type==='inline'||type==='html'){if(!coming.content||!coming.content.length){return F._error('content');}}else if(!href){return F._error('href');} if(type==='image'){F._loadImage();}else if(type==='ajax'){F._loadAjax();}else if(type==='iframe'){F._loadIframe();}else{F._afterLoad();}},_error:function(type){$.extend(F.coming,{type:'html',autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:'no',hasError:type,content:F.coming.tpl.error});F._afterLoad();},_loadImage:function(){var img=F.imgPreload=new Image();img.onload=function(){this.onload=this.onerror=null;F.coming.width=this.width/F.opts.pixelRatio;F.coming.height=this.height/F.opts.pixelRatio;F._afterLoad();};img.onerror=function(){this.onload=this.onerror=null;F._error('image');};img.src=F.coming.href;if(img.complete!==true){F.showLoading();}},_loadAjax:function(){var coming=F.coming;F.showLoading();F.ajaxLoad=$.ajax($.extend({},coming.ajax,{url:coming.href,error:function(jqXHR,textStatus){if(F.coming&&textStatus!=='abort'){F._error('ajax',jqXHR);}else{F.hideLoading();}},success:function(data,textStatus){if(textStatus==='success'){coming.content=data;F._afterLoad();}}}));},_loadIframe:function(){var coming=F.coming,iframe=$(coming.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr('scrolling',isTouch?'auto':coming.iframe.scrolling).attr('src',coming.href);$(coming.wrap).bind('onReset',function(){try{$(this).find('iframe').hide().attr('src','//about:blank').end().empty();}catch(e){}});if(coming.iframe.preload){F.showLoading();iframe.one('load',function(){$(this).data('ready',1);if(!isTouch){$(this).bind('load.fb',F.update);} $(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();F._afterLoad();});} coming.content=iframe.appendTo(coming.inner);if(!coming.iframe.preload){F._afterLoad();}},_preloadImages:function(){var group=F.group,current=F.current,len=group.length,cnt=current.preload?Math.min(current.preload,len-1):0,item,i;for(i=1;i<=cnt;i+=1){item=group[(current.index+i)%len];if(item.type==='image'&&item.href){new Image().src=item.href;}}},_afterLoad:function(){var coming=F.coming,previous=F.current,placeholder='fancybox-placeholder',current,content,type,scrolling,href,embed;F.hideLoading();if(!coming||F.isActive===false){return;} if(false===F.trigger('afterLoad',coming,previous)){coming.wrap.stop(true).trigger('onReset').remove();F.coming=null;return;} if(previous){F.trigger('beforeChange',previous);previous.wrap.stop(true).removeClass('fancybox-opened').find('.fancybox-item, .fancybox-nav').remove();} F.unbindEvents();current=coming;content=coming.content;type=coming.type;scrolling=coming.scrolling;$.extend(F,{wrap:current.wrap,skin:current.skin,outer:current.outer,inner:current.inner,current:current,previous:previous});href=current.href;switch(type){case'inline':case'ajax':case'html':if(current.selector){content=$('
').html(content).find(current.selector);}else if(isQuery(content)){if(!content.data(placeholder)){content.data(placeholder,$('
').insertAfter(content).hide());} content=content.show().detach();current.wrap.bind('onReset',function(){if($(this).find(content).length){content.hide().replaceAll(content.data(placeholder)).data(placeholder,false);}});} break;case'image':content=current.tpl.image.replace('{href}',href).replace('{alt}',current.alt);break;case'swf':content='';embed='';$.each(current.swf,function(name,val){content+='';embed+=' '+name+'="'+val+'"';});content+='';break;} if(!(isQuery(content)&&content.parent().is(current.inner))){current.inner.append(content);} F.trigger('beforeShow');current.inner.css('overflow',scrolling==='yes'?'scroll':(scrolling==='no'?'hidden':scrolling));F._setDimension();F.reposition();F.isOpen=false;F.coming=null;F.bindEvents();if(!F.isOpened){$('.fancybox-wrap').not(current.wrap).stop(true).trigger('onReset').remove();}else if(previous.prevMethod){F.transitions[previous.prevMethod]();} F.transitions[F.isOpened?current.nextMethod:current.openMethod]();F._preloadImages();},_setDimension:function(){var viewport=F.getViewport(),steps=0,canShrink=false,canExpand=false,wrap=F.wrap,skin=F.skin,inner=F.inner,current=F.current,width=current.width,height=current.height,minWidth=current.minWidth,minHeight=current.minHeight,maxWidth=current.maxWidth,maxHeight=current.maxHeight,scrolling=current.scrolling,scrollOut=current.scrollOutside?current.scrollbarWidth:0,margin=current.margin,wMargin=getScalar(margin[1]+margin[3]),hMargin=getScalar(margin[0]+margin[2]),wPadding,hPadding,wSpace,hSpace,origWidth,origHeight,origMaxWidth,origMaxHeight,ratio,width_,height_,maxWidth_,maxHeight_,iframe,body;wrap.add(skin).add(inner).width('auto').height('auto').removeClass('fancybox-tmp');wPadding=getScalar(skin.outerWidth(true)-skin.width());hPadding=getScalar(skin.outerHeight(true)-skin.height());wSpace=wMargin+wPadding;hSpace=hMargin+hPadding;origWidth=isPercentage(width)?(viewport.w-wSpace)*getScalar(width)/100:width;origHeight=isPercentage(height)?(viewport.h-hSpace)*getScalar(height)/100:height;if(current.type==='iframe'){iframe=current.content;if(current.autoHeight&&iframe.data('ready')===1){try{if(iframe[0].contentWindow.document.location){inner.width(origWidth).height(9999);body=iframe.contents().find('body');if(scrollOut){body.css('overflow-x','hidden');} origHeight=body.outerHeight(true);}}catch(e){}}}else if(current.autoWidth||current.autoHeight){inner.addClass('fancybox-tmp');if(!current.autoWidth){inner.width(origWidth);} if(!current.autoHeight){inner.height(origHeight);} if(current.autoWidth){origWidth=inner.width();} if(current.autoHeight){origHeight=inner.height();} inner.removeClass('fancybox-tmp');} width=getScalar(origWidth);height=getScalar(origHeight);ratio=origWidth/origHeight;minWidth=getScalar(isPercentage(minWidth)?getScalar(minWidth,'w')-wSpace:minWidth);maxWidth=getScalar(isPercentage(maxWidth)?getScalar(maxWidth,'w')-wSpace:maxWidth);minHeight=getScalar(isPercentage(minHeight)?getScalar(minHeight,'h')-hSpace:minHeight);maxHeight=getScalar(isPercentage(maxHeight)?getScalar(maxHeight,'h')-hSpace:maxHeight);origMaxWidth=maxWidth;origMaxHeight=maxHeight;if(current.fitToView){maxWidth=Math.min(viewport.w-wSpace,maxWidth);maxHeight=Math.min(viewport.h-hSpace,maxHeight);} maxWidth_=viewport.w-wMargin;maxHeight_=viewport.h-hMargin;if(current.aspectRatio){if(width>maxWidth){width=maxWidth;height=getScalar(width/ratio);} if(height>maxHeight){height=maxHeight;width=getScalar(height*ratio);} if(widthmaxWidth_||height_>maxHeight_)&&width>minWidth&&height>minHeight){if(steps++>19){break;} height=Math.max(minHeight,Math.min(maxHeight,height-10));width=getScalar(height*ratio);if(widthmaxWidth){width=maxWidth;height=getScalar(width/ratio);} inner.width(width).height(height);wrap.width(width+wPadding);width_=wrap.width();height_=wrap.height();}}else{width=Math.max(minWidth,Math.min(width,width-(width_-maxWidth_)));height=Math.max(minHeight,Math.min(height,height-(height_-maxHeight_)));}} if(scrollOut&&scrolling==='auto'&&heightmaxWidth_||height_>maxHeight_)&&width>minWidth&&height>minHeight;canExpand=current.aspectRatio?(widthminHeight&&height1)){F.inner.css('cursor','pointer').bind('click.fb',function(e){if(!$(e.target).is('a')&&!$(e.target).parent().is('a')){e.preventDefault();F[current.closeClick?'close':'next']();}});} if(current.closeBtn){$(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb',function(e){e.preventDefault();F.close();});} if(current.arrows&&F.group.length>1){if(current.loop||current.index>0){$(current.tpl.prev).appendTo(F.outer).bind('click.fb',F.prev);} if(current.loop||current.index
').appendTo(F.coming?F.coming.parent:opts.parent);this.fixed=false;if(opts.fixed&&F.defaults.fixed){this.overlay.addClass('fancybox-overlay-fixed');this.fixed=true;}},open:function(opts){var that=this;opts=$.extend({},this.defaults,opts);if(this.overlay){this.overlay.unbind('.overlay').width('auto').height('auto');}else{this.create(opts);} if(!this.fixed){W.bind('resize.overlay',$.proxy(this.update,this));this.update();} if(opts.closeClick){this.overlay.bind('click.overlay',function(e){if($(e.target).hasClass('fancybox-overlay')){if(F.isActive){F.close();}else{that.close();} return false;}});} this.overlay.css(opts.css).show();},close:function(){var scrollV,scrollH;W.unbind('resize.overlay');if(this.el.hasClass('fancybox-lock')){$('.fancybox-margin').removeClass('fancybox-margin');scrollV=W.scrollTop();scrollH=W.scrollLeft();this.el.removeClass('fancybox-lock');W.scrollTop(scrollV).scrollLeft(scrollH);} $('.fancybox-overlay').remove().hide();$.extend(this,{overlay:null,fixed:false});},update:function(){var width='100%',offsetWidth;this.overlay.width(width).height('100%');if(IE){offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(D.width()>offsetWidth){width=D.width();}}else if(D.width()>W.width()){width=D.width();} this.overlay.width(width).height(D.height());},onReady:function(opts,obj){var overlay=this.overlay;$('.fancybox-overlay').stop(true,true);if(!overlay){this.create(opts);} if(opts.locked&&this.fixed&&obj.fixed){if(!overlay){this.margin=D.height()>W.height()?$('html').css('margin-right').replace("px",""):false;} obj.locked=this.overlay.append(obj.wrap);obj.fixed=false;} if(opts.showEarly===true){this.beforeShow.apply(this,arguments);}},beforeShow:function(opts,obj){var scrollV,scrollH;if(obj.locked){if(this.margin!==false){$('*').filter(function(){return($(this).css('position')==='fixed'&&!$(this).hasClass("fancybox-overlay")&&!$(this).hasClass("fancybox-wrap"));}).addClass('fancybox-margin');this.el.addClass('fancybox-margin');} scrollV=W.scrollTop();scrollH=W.scrollLeft();this.el.addClass('fancybox-lock');W.scrollTop(scrollV).scrollLeft(scrollH);} this.open(opts);},onUpdate:function(){if(!this.fixed){this.update();}},afterClose:function(opts){if(this.overlay&&!F.coming){this.overlay.fadeOut(opts.speedOut,$.proxy(this.close,this));}}};F.helpers.title={defaults:{type:'float',position:'bottom'},beforeShow:function(opts){var current=F.current,text=current.title,type=opts.type,title,target;if($.isFunction(text)){text=text.call(current.element,current);} if(!isString(text)||$.trim(text)===''){return;} title=$('
'+text+'
');switch(type){case'inside':target=F.skin;break;case'outside':target=F.wrap;break;case'over':target=F.inner;break;default:target=F.skin;title.appendTo('body');if(IE){title.width(title.width());} title.wrapInner('');F.current.margin[2]+=Math.abs(getScalar(title.css('margin-bottom')));break;} title[(opts.position==='top'?'prependTo':'appendTo')](target);}};$.fn.fancybox=function(options){var index,that=$(this),selector=this.selector||'',run=function(e){var what=$(this).blur(),idx=index,relType,relVal;if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&!what.is('.fancybox-wrap')){relType=options.groupAttr||'data-fancybox-group';relVal=what.attr(relType);if(!relVal){relType='rel';relVal=what.get(0)[relType];} if(relVal&&relVal!==''&&relVal!=='nofollow'){what=selector.length?$(selector):that;what=what.filter('['+relType+'="'+relVal+'"]');idx=what.index(this);} options.index=idx;if(F.open(what,options)!==false){e.preventDefault();}}};options=options||{};index=options.index||0;if(!selector||options.live===false){that.unbind('click.fb-start').bind('click.fb-start',run);}else{D.undelegate(selector,'click.fb-start').delegate(selector+":not('.fancybox-item, .fancybox-nav')",'click.fb-start',run);} this.filter('[data-fancybox-start=1]').trigger('click');return this;};D.ready(function(){var w1,w2;if($.scrollbarWidth===undefined){$.scrollbarWidth=function(){var parent=$('
').appendTo('body'),child=parent.children(),width=child.innerWidth()-child.height(99).innerWidth();parent.remove();return width;};} if($.support.fixedPosition===undefined){$.support.fixedPosition=(function(){var elem=$('
').appendTo('body'),fixed=(elem[0].offsetTop===20||elem[0].offsetTop===15);elem.remove();return fixed;}());} $.extend(F.defaults,{scrollbarWidth:$.scrollbarWidth(),fixed:$.support.fixedPosition,parent:$('body')});w1=$(window).width();H.addClass('fancybox-lock-test');w2=$(window).width();H.removeClass('fancybox-lock-test');$("").appendTo("head");});}(window,document,jQuery)); var cms_combine_fn='/(cms)/module/static/default/content/libs/js/jquery.fancybox-2.1.5-alt/source/helpers/jquery.fancybox-thumbs.js'; /*! * Thumbnail helper for fancyBox * version: 1.0.7 (Mon, 01 Oct 2012) * @requires fancyBox v2.0 or later * * Usage: * $(".fancybox").fancybox({ * helpers : { * thumbs: { * width : 50, * height : 50 * } * } * }); * */ (function($){var F=$.fancybox;F.helpers.thumbs={defaults:{width:50,height:50,position:'bottom',source:function(item){var href;if(item.element){href=$(item.element).find('img').attr('src');} if(!href&&item.type==='image'&&item.href){href=item.href;} return href;}},wrap:null,list:null,width:0,init:function(opts,obj){var that=this,list,thumbWidth=opts.width,thumbHeight=opts.height,thumbSource=opts.source;list='';for(var n=0;n';} this.wrap=$('
').addClass(opts.position).appendTo('body');this.list=$('
    '+list+'
').appendTo(this.wrap);$.each(obj.group,function(i){var href=thumbSource(obj.group[i]);if(!href){return;} $("").load(function(){var width=this.width,height=this.height,widthRatio,heightRatio,parent;var alt=obj.group[i].alt||obj.group[i].title;if(!that.list||!width||!height){return;} widthRatio=width/thumbWidth;heightRatio=height/thumbHeight;parent=that.list.children().eq(i).find('a');if(widthRatio>=1&&heightRatio>=1){if(widthRatio>heightRatio){width=Math.floor(width/heightRatio);height=thumbHeight;}else{width=thumbWidth;height=Math.floor(height/widthRatio);}} $(this).css({width:width,height:height,top:Math.floor(thumbHeight/2-height/2),left:Math.floor(thumbWidth/2-width/2)}).attr('alt',alt);parent.width(thumbWidth).height(thumbHeight);$(this).hide().appendTo(parent).fadeIn(300);}).attr('src',href);});this.width=this.list.children().eq(0).outerWidth(true);this.list.width(this.width*(obj.group.length+1)).css('left',Math.floor($(window).width()*0.5-(obj.index*this.width+this.width*0.5)));},beforeLoad:function(opts,obj){if(obj.group.length<2){obj.helpers.thumbs=false;return;} obj.margin[opts.position==='top'?0:2]+=((opts.height)+15);},afterShow:function(opts,obj){if(this.list){this.onUpdate(opts,obj);}else{this.init(opts,obj);} this.list.children().removeClass('active').eq(obj.index).addClass('active');},onUpdate:function(opts,obj){if(this.list){this.list.stop(true).animate({'left':Math.floor($(window).width()*0.5-(obj.index*this.width+this.width*0.5))},150);}},beforeClose:function(){if(this.wrap){this.wrap.remove();} this.wrap=null;this.list=null;this.width=0;}}}(jQuery)); var cms_combine_fn='/(cms)/module/static/default/content/libs/js/dotdotdot-1.8.3/jquery.dotdotdot.min.js'; /* * jQuery dotdotdot 1.8.3 * * Copyright (c) Fred Heusschen * www.frebsite.nl * * Plugin website: * dotdotdot.frebsite.nl * * Licensed under the MIT license. * http://en.wikipedia.org/wiki/MIT_License */ !function(t,e){function n(t,e,n){var r=t.children(),o=!1;t.empty();for(var i=0,d=r.length;d>i;i++){var l=r.eq(i);if(t.append(l),n&&t.append(n),a(t,e)){l.remove(),o=!0;break}n&&n.detach()}return o}function r(e,n,i,d,l){var s=!1,c="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",u="script, .dotdotdot-keep";return e.contents().detach().each(function(){var h=this,f=t(h);if("undefined"==typeof h)return!0;if(f.is(u))e.append(f);else{if(s)return!0;e.append(f),!l||f.is(d.after)||f.find(d.after).length||e[e.is(c)?"after":"append"](l),a(i,d)&&(s=3==h.nodeType?o(f,n,i,d,l):r(f,n,i,d,l)),s||l&&l.detach()}}),n.addClass("is-truncated"),s}function o(e,n,r,o,d){var c=e[0];if(!c)return!1;var h=s(c),f=-1!==h.indexOf(" ")?" ":" ",p="letter"==o.wrap?"":f,g=h.split(p),v=-1,w=-1,b=0,m=g.length-1;for(o.fallbackToLetter&&0==b&&0==m&&(p="",g=h.split(p),m=g.length-1);m>=b&&(0!=b||0!=m);){var y=Math.floor((b+m)/2);if(y==w)break;w=y,l(c,g.slice(0,w+1).join(p)+o.ellipsis),r.children().each(function(){t(this).toggle().toggle()}),a(r,o)?(m=w,o.fallbackToLetter&&0==b&&0==m&&(p="",g=g[0].split(p),v=-1,w=-1,b=0,m=g.length-1)):(v=w,b=w)}if(-1==v||1==g.length&&0==g[0].length){var x=e.parent();e.detach();var C=d&&d.closest(x).length?d.length:0;if(x.contents().length>C?c=u(x.contents().eq(-1-C),n):(c=u(x,n,!0),C||x.detach()),c&&(h=i(s(c),o),l(c,h),C&&d)){var T=d.parent();t(c).parent().append(d),t.trim(T.html())||T.remove()}}else h=i(g.slice(0,v+1).join(p),o),l(c,h);return!0}function a(t,e){return t.innerHeight()>e.maxHeight}function i(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)<0&&(e+=n.ellipsis),e}function d(t){return{width:t.innerWidth(),height:t.innerHeight()}}function l(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function s(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function c(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function u(e,n,r){var o,a=e&&e[0];if(a){if(!r){if(3===a.nodeType)return a;if(t.trim(e.text()))return u(e.contents().last(),n)}for(o=c(a);!o;){if(e=e.parent(),e.is(n)||!e.length)return!1;o=c(e[0])}if(o)return u(t(o),n)}return!1}function h(e,n){return e?"string"==typeof e?(e=t(e,n),e.length?e:!1):e.jquery?e:!1:!1}function f(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],r=0,o=n.length;o>r;r++){var a=parseInt(t.css(n[r]),10);isNaN(a)&&(a=0),e-=a}return e}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var o=this,i=o.contents();o.data("dotdotdot")&&o.trigger("destroy.dot"),o.data("dotdotdot-style",o.attr("style")||""),o.css("word-wrap","break-word"),"nowrap"===o.css("white-space")&&o.css("white-space","normal"),o.bind_events=function(){return o.bind("update.dot",function(e,d){switch(o.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof l.height){case"number":l.maxHeight=l.height;break;case"function":l.maxHeight=l.height.call(o[0]);break;default:l.maxHeight=f(o)}l.maxHeight+=l.tolerance,"undefined"!=typeof d&&(("string"==typeof d||"nodeType"in d&&1===d.nodeType)&&(d=t("
").append(d).contents()),d instanceof t&&(i=d)),g=o.wrapInner('
').children(),g.contents().detach().end().append(i.clone(!0)).find("br").replaceWith("
").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,u=!1;return s.afterElement&&(c=s.afterElement.clone(!0),c.show(),s.afterElement.detach()),a(g,l)&&(u="children"==l.wrap?n(g,l,c):r(g,o,g,l,c)),g.replaceWith(g.contents()),g=null,t.isFunction(l.callback)&&l.callback.call(o[0],u,i),s.isTruncated=u,u}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],i),i}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),o.unwatch().unbind_events().contents().detach().end().append(i).attr("style",o.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),o},o.unbind_events=function(){return o.unbind(".dot"),o},o.watch=function(){if(o.unwatch(),"window"==l.watch){var e=t(window),n=e.width(),r=e.height();e.bind("resize.dot"+s.dotId,function(){n==e.width()&&r==e.height()&&l.windowResizeFix||(n=e.width(),r=e.height(),u&&clearInterval(u),u=setTimeout(function(){o.trigger("update.dot")},100))})}else c=d(o),u=setInterval(function(){if(o.is(":visible")){var t=d(o);c.width==t.width&&c.height==t.height||(o.trigger("update.dot"),c=t)}},500);return o},o.unwatch=function(){return t(window).unbind("resize.dot"+s.dotId),u&&clearInterval(u),o};var l=t.extend(!0,{},t.fn.dotdotdot.defaults,e),s={},c={},u=null,g=null;return l.lastCharacter.remove instanceof Array||(l.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),l.lastCharacter.noEllipsis instanceof Array||(l.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),s.afterElement=h(l.after,o),s.isTruncated=!1,s.dotId=p++,o.data("dotdotdot",!0).bind_events().trigger("update.dot"),l.watch&&o.watch(),o},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var p=1,g=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):g.apply(this,arguments)};var v=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("
").text(n).html(),this.trigger("update",[n])):v.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(t){t(".dot-ellipsis").each(function(){var e=t(this).hasClass("dot-resize-update"),n=t(this).hasClass("dot-timer-update"),r=0,o=t(this).attr("class").split(/\s+/);t.each(o,function(t,e){var n=e.match(/^dot-height-(\d+)$/);null!==n&&(r=Number(n[1]))});var a=new Object;n&&(a.watch=!0),e&&(a.watch="window"),r>0&&(a.height=r),t(this).dotdotdot(a)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")}); var cms_combine_fn='/(cms)/module/static/default/content/libs/js/nst/nst2015.js'; var responsive=function($){"use strict";var me=window.nst2015={};me.browser={nua:navigator.userAgent,Android:function(){return me.browser.nua.match(/Android/i);},AndroidVanilla:function(){return me.browser.nua.match(/^(?=.*\bMozilla\/5\.0\b)(?=.*\bAndroid\b)(?=.*\bAppleWebKit\b)(?!.*\bChrome\b).*$/);},BlackBerry:function(){return me.browser.nua.match(/BlackBerry/i);},iOS:function(){return me.browser.nua.match(/iPhone|iPad|iPod/i);},OperaMini:function(){return me.browser.nua.match(/Opera Mini/i);},OperaWebkit:function(){return me.browser.nua.match(/^(?=.*\bOPR\/\b)(?!.*\bMobile\b)/);},Chrome:function(){return me.browser.nua.match(/^(?=.*\bAppleWebKit\b)(?=.*\bChrome\b).*$/);},Safari:function(){return me.browser.nua.match(/^(?=.*\bAppleWebKit\b)(?!.*\bChrome\b)(?=.*\bSafari\b).*$/);},Webkit:function(){return(me.browser.Chrome()||me.browser.Safari()||me.browser.OperaWebkit());},IE8:function(){return me.browser.nua.match(/^(?=.*\bmsie\b)(?=.*\b8\.\b).*$/);},IE10:function(){return me.browser.nua.match(/^(?=.*\bmsie\b)(?=.*\b10\.\b).*$/);},IE11:function(){return me.browser.nua.match(/^(?=.*\bTrident\b)(?=.*\b11\.\b).*$/);},WinPhone:function(){return me.browser.nua.match(/IEMobile/i);},mobile:function(){return(me.browser.Android()||me.browser.BlackBerry()||me.browser.iOS()||me.browser.OperaMini()||me.browser.WinPhone());}};me.id=function(el,js_node){var node=document.getElementById(el);return js_node?node:$(node);};me.opt={variants:{template:'',header:'',navigation:''},dnt:navigator['doNotTrack']=='1'||navigator['doNotTrack']=='yes',window:$(window),body_scroll:$('html,body'),is_mobile:me.browser.mobile(),html:$('html'),site:$('#site'),head:$('head'),header:$('#header').add('#header_c'),hash:'',nav:$('#nav_0'),menu:$('#nav_menu'),menu_open:false,menu_fade_delay:1000,menu_animating:false,menu_animation:700,menu_button:$('#nav_menu_button'),main:$('#main'),scroll:0,scroll_breakpoint:function(){return(me.opt.scroll>=me.opt.main_top*0.5);},already_scrolled:false,noscript_afterload:$('noscript.styleafterscroll'),std_domain:'',mq:{obj:$('#layout'),width:0,portrait:false},gals:[],gal_std_ratio:16/9,gal_parallax:[],gal_parallax_listening:false,gmaps_styles:undefined,fancyboxDefaultPadding:undefined,ytLinks:false,ytLinksSel:'a[href*="youtube"],a[href*="youtu.be"]',flex_layouts:{'roomtype-slider':function(){this.options=$.extend({slideshow:false,animation:'slide',prevText:'',nextText:''},this.options);},'content-slider-wide':function(){this.resp_img_src=true;this.w=Math.min(1200,me.opt.mq.width);this.h=this.w*580/1200;this.options=$.extend({slideshow:false,animation:'slide',prevText:'',nextText:'',controlNav:true,directionNav:true},this.options);},'content-slider-images':function(){this.options=$.extend({slideshow:false,animation:'fade',prevText:'',nextText:'',directionNav:true},this.options);},'content-slider-texts':function(){this.options=$.extend({slideshow:false,animation:'slide',prevText:'',nextText:'',smoothHeight:true,controlNav:true,directionNav:true},this.options);},'tiles-slider':function(){var columns={'1920':3,'1600':3,'1280':3,'959':2,'768':2,'640':1,'480':1,'320':1};this.options=$.extend({slideshow:false,animation:'slide',prevText:'',nextText:'',selector:'.slides > .tile-gallery',controlNav:false,directionNav:true,itemWidth:380,itemMargin:30,minItems:columns[me.opt.mq.width],maxItems:columns[me.opt.mq.width],start:function(slider){$(window).bind('resize.tiles_slider',function(){slider.vars.smoothHeight=(columns[me.opt.mq.width]===1);slider.vars.minItems=columns[me.opt.mq.width];slider.vars.maxItems=columns[me.opt.mq.width];});}},this.options);}}};me.setup=function(){if(window.Modernizr===undefined){window.Modernizr={touchevents:false};} if(window.devicePixelRatio===undefined){window.devicePixelRatio=1;} me.opt.touch=window.Modernizr.touchevents;me.opt.lang=me.opt.html.attr('lang');me.opt.dev=me.opt.html.data('dev')==='yes';me.opt.std_domain=me.opt.html.data('dev-domain')||'';me.opt.main_menu_items=me.opt.menu.find('.main-menu-item');me.opt.variants.header=me.opt.header.data('variant');me.opt.variants.template_id=me.opt.site.data('template');me.opt.variants.navigation=me.opt.nav.data('variant');me.opt.banner=me.opt.header.children().filter('.banner');me.opt.logo=me.opt.banner.children().filter('.logo');me.opt.nav_hover=(me.opt.nav.data('hover')==='yes');me.opt.smoothscroll=(me.opt.site.data('smoothscroll')!=='no');me.opt.main_top=me.opt.main.length?me.opt.main.offset().top:0;me.opt.scroll=me.opt.window.scrollTop();me.opt.mq.width=me.opt.mq.obj.width();me.opt.gmaps_markers=window['nst_markers']||[{marker_1x:'/static/template-'+me.opt.variants.template_id+'/i/marker.png',marker_2x:'/static/template-'+me.opt.variants.template_id+'/i/marker_2x.png'}];if(me.opt.dev){window.me=me;}};me.init=function(){me.content_place();me.listeners();me.custom_events();};me.content_place=function(){me.scroll_event();me.accordion_build();me.fancybox_build();me.resp_iframe_build();me.text_ellipsis();if(document.location.hash&&!document.location.hash.match(/^#\//)){me.opt.hash=document.location.hash;}};me.text_ellipsis=function(){if($.fn.dotdotdot!==undefined){me.opt.main.find('.dotdotdot').dotdotdot({watch:'window'});}};me.resp_iframe_build=function(){if(me.opt.ytLinks){var ytLinks;try{if(me.opt.ytLinks instanceof $){ytLinks=me.opt.ytLinks} if(typeof me.opt.ytLinks==='string'||me.opt.ytLinks instanceof String){ytLinks=$(me.opt.ytLinks).find(me.opt.ytLinksSel);} else{ytLinks=me.opt.main.find(me.opt.ytLinksSel);} ytLinks.each(function(i,el){var $el=$(el);var videoID=el.href.match(/youtube.*v=([^&]*|.*$)/)||el.href.match(/youtu\.be\/(.*)$/);if(videoID!==null){var iframe=$('');iframe.attr('title',$el.text()+' (YouTube)');if($el.parent().is('p')){$el=$el.parent();} $el.replaceWith(iframe);}});} catch(e){console.warn(e);}} var css='';me.opt.site.find(':not(.yt-frame, .yt-iframe) > iframe').each(function(i,el){var $iframe=$(el),iframe_w=$iframe.attr('width')||0,iframe_h=$iframe.attr('height')||0;if($iframe.data('src')){$iframe.attr('src',$iframe.data('src'));} if(iframe_w*iframe_h>0){var iframe_id='yt-'+Math.round(1000000*Math.random());$iframe.wrap('
');css+='.'+iframe_id+'{max-width:'+iframe_w+'px}.'+iframe_id+'::before{padding-bottom:'+(100*iframe_h/iframe_w)+'%}';}});if(css.length>0){var styletag=document.createElement('style');styletag.type='text/css';if(styletag.styleSheet){styletag.styleSheet.cssText=css;}else{styletag.appendChild(document.createTextNode(css));} document.head.appendChild(styletag);}};me.accordion_build=function(context){if($.fn.accordion!==undefined){context=context||me.opt.main;var accordions=context.find('.accordion, .accordion-open, .accordion-open-desktop');accordions.addClass('accordion').each(function(i,el){var accHeader=$(el);var accContainer,accContent,nextElement,accFragment,currentFragment;var accActive=false;var nextSelector=':not(.accordion, .accordion-stop)';if(accHeader.parent().hasClass('.accordion-article')){return;} if(accHeader.next().is('div.accordion-content')){accContainer=accHeader.parent().addClass('accordion-article');} else{accContainer=$(document.createElement('div')).addClass('accordion-article');accContent=document.createElement('div');accContent.className='accordion-content';accFragment=document.createDocumentFragment();nextElement=accHeader.next(nextSelector);while(nextElement.length!=0){currentFragment=nextElement.get(0);nextElement=nextElement.next(nextSelector);accFragment.appendChild(currentFragment);} accContainer.insertAfter(accHeader);accContent.appendChild(accFragment);accContainer.append(accHeader,accContent);} if(accHeader.hasClass('accordion-open')||(accHeader.hasClass('accordion-open-desktop')&&me.opt.mq.width>959)){accActive=0;} accContainer.accordion({icons:false,active:accActive,header:'> .accordion',heightStyle:'content',autoHeight:false,collapsible:true});});}};me.fancyboxAfterShow=function(){if($.fn.sti!==undefined){$('img','.fancybox-outer').sti({selector:'.fancybox-outer',style:'flat',orientation:'horizontal'});} if(me.opt.touch&&typeof $.fn.swipe=='function'){$('.fancybox-nav').css('display','none');$('.fancybox-wrap').swipe({swipe:function(event,direction){if(direction==='left'||direction==='up'){$.fancybox.next(direction);} else{$.fancybox.prev(direction);}}});}};me.fancybox_build=function(context){context=context||me.opt.main;if($.fn.fancybox!==undefined){var fb_links=context.find('.fancybox, .cms-zoom-content');fb_links.not('[rel],[data-fancybox-group]').each(function(i,el){var fb_options={helpers:{title:{type:'inside'}},afterShow:me.fancyboxAfterShow},$this=$(el),height=parseInt($this.data('height'),10),width=parseInt($this.data('width'),10),padding=parseInt($this.attr('data-fancybox-padding'),10);if($this.attr('onclick')&&$this.attr('onclick').indexOf('hs.expand')>-1){$this.removeAttr('onclick');} if(!$this.attr('data-fancybox-type')&&$this.hasClass('cms-zoom-content')&&el.href){if(el.href.indexOf('/media/')>-1){fb_options.type='image';$this.attr('data-fancybox-type','image');} else if(el.href.indexOf('http')===0){fb_options.type='iframe';$this.attr('data-fancybox-type','iframe');}} if(height>0&&width>0){fb_options.height=height;fb_options.width=width;} if(padding>=0){fb_options.padding=padding;} else if(me.opt.fancyboxDefaultPadding>=0){fb_options.padding=me.opt.fancyboxDefaultPadding;} $this.fancybox(fb_options);});var fb_group=fb_links.filter('[rel],[data-fancybox-group]');var fb_group_options=(function($this){var height=parseInt($this.data('height'),10),width=parseInt($this.data('width'),10),padding=parseInt($this.attr('data-fancybox-padding'),10);var fb_default={helpers:{title:{type:'inside'}},afterShow:me.fancyboxAfterShow};if(height>0&&width>0){fb_default.height=height;fb_default.width=width;} if(padding>=0){fb_default.padding=padding;} else if(me.opt.fancyboxDefaultPadding>=0){fb_default.padding=me.opt.fancyboxDefaultPadding;} return fb_default;})(fb_group.eq(0));fb_group.fancybox(fb_group_options);var fb_thumb=context.find('.fancybox-thumb');var fb_thumb_options=(function($this){var height=parseInt($this.data('height'),10),width=parseInt($this.data('width'),10),padding=parseInt($this.attr('data-fancybox-padding'),10);var fb_default={helpers:{title:{type:'inside'},thumbs:{width:50,height:50,source:function(current){return $(current.element).attr('data-fancybox-thumb');}}},afterShow:me.fancyboxAfterShow};if(height>0&&width>0){fb_default.height=height;fb_default.width=width;} if(padding>=0){fb_default.padding=padding;} else if(me.opt.fancyboxDefaultPadding>=0){fb_default.padding=me.opt.fancyboxDefaultPadding;} return fb_default;})(fb_thumb.eq(0));fb_thumb.fancybox(fb_thumb_options);}};me.listeners=function(){if(me.opt.variants.header=='C'){me.opt.headc_chk=$('#header_c_nav_chk');$('.main-menu-handle').on('click',function(){var handle=$(this);var item=handle.closest('.main-menu-item');if(me.opt.mq.width<=768){item.toggleClass('open-mobile');}});$('a').on('click',me.smooth_scroll);} else if(me.opt.variants.navigation&&('ABC').indexOf(me.opt.variants.navigation)>-1){me.opt.menu_button.click(function(ev){ev.preventDefault();ev.stopPropagation();if(!me.opt.menu_animating){me.opt.menu_animating=true;setTimeout(function(){me.opt.menu_animating=false;},me.opt.menu_animation+100);me.opt.window.scrollTop(0);if(!me.opt.menu_open){me.opt.site.addClass('open open-delay');} else{me.opt.site.removeClass('open');setTimeout(function(){me.opt.site.removeClass('open-delay');},me.opt.menu_animation+100);} me.opt.menu_open=!me.opt.menu_open;}});$('a').not('.main-menu-link').on('click',me.smooth_scroll);me.menu_fade_cancel=$.noop;if(!me.opt.touch&&me.opt.mq.width>=960&&me.opt.nav_hover){me.opt.submenus=me.opt.main_menu_items.find('.sub-menu');me.menu_fade=function(){me.menu_fade_cancel();if(me.opt.menu_fade_delay>0){me.opt.menu_fade_timer=setTimeout(function(){me.opt.main_menu_items.removeClass('open');me.opt.submenus.removeClass('overlay').attr('style','');},me.opt.menu_fade_delay);} else{me.opt.main_menu_items.removeClass('open');me.opt.submenus.removeClass('overlay').attr('style','');}};me.menu_fade_cancel=function(){if(me.opt.menu_fade_timer){clearTimeout(me.opt.menu_fade_timer);}};me.opt.main_menu_items.on('mouseenter',me.menu_fade_cancel).not('.single').on('mouseenter',me.menu_click);me.opt.nav.find('.main-menu').on('mouseleave',me.menu_fade);me.opt.submenus.on('mouseenter',me.menu_fade_cancel);} else{me.opt.main_menu_items.on('click',me.menu_click);} me.opt.main_menu_items.find('.close').on('click',function(ev){ev.preventDefault();ev.stopPropagation();if(me.menu_fade_timer){clearTimeout(me.menu_fade_timer);} me.opt.main_menu_items.removeClass('open');$(ev.target).closest('.sub-menu').removeClass('overlay').attr('style','');});me.opt.body_scroll.on('click touchstart',function(ev){if(me.opt.mq.width>=960&&!$(ev.target).closest(me.opt.menu).length){me.opt.menu.find('.close').trigger('click');}});if(me.opt.touch&&typeof $.fn.swipe=='function'){me.opt.site.swipe({preventDefaultEvents:false,swipe:function(event,direction){if(me.opt.site.hasClass('open')&&direction==='right'){me.opt.menu_button.click();}}});}} me.opt.header.find('.widget-handle').click(function(ev){$(ev.target).closest('.nst15-widget').toggleClass('open');});me.opt.window.on('resize orientationchange',function(){me.opt.main_top=me.opt.main.length?me.opt.main.offset().top:0;var layout_prev=me.opt.mq.width;me.opt.mq.width=me.opt.mq.obj.width();if(layout_prev!==me.opt.mq.width){me.layout_change();}});me.opt.window.on('scroll touchmove',function(ev){me.opt.scroll=me.opt.window.scrollTop();me.scroll_event(ev);});me.id('site_anchor').click(function(){var scrollspeed=me.opt.smoothscroll?400:1;me.opt.body_scroll.animate({scrollTop:0},scrollspeed);});me.opt.header.find('.gallery-fullscreen').on('click',function(){me.opt.site.toggleClass('fullscreen');});if(me.opt.hash!==''){me.opt.window.on('load',function(){setTimeout(function(){me.smooth_scroll({'hash':me.opt.hash.replace(/^#+/,''),'banner_height':window['scrolledBannerHeight']||false});},300);});} else if(me.opt.site.data('autoscroll')){var scrollto=$(me.opt.site.data('autoscroll'));if(scrollto.length&&me.opt.scroll==0){me.opt.window.on('load',function(){setTimeout(function(){me.smooth_scroll({'scrollto':scrollto.eq(0),'banner_height':window['scrolledBannerHeight']||false});},300);});}}};me.custom_events=$.noop;me.menu_click=function(ev){ev.stopPropagation();var item,is_single,pos,overlay_css,overlay,link_container=$(this);if(ev.type==='mouseenter'&&link_container.hasClass('open')){me.menu_fade_cancel();return;} item=link_container.find('.main-menu-item-name');is_single=item.hasClass('single')||link_container.hasClass('single');if(me.opt.variants.navigation==='C'&&me.opt.mq.width>=960){ev.target=item.find('a')[0];me.smooth_scroll(ev);} else if(is_single){me.opt.main_menu_items.removeClass('open');ev.target=item.find('a')[0];me.smooth_scroll(ev);} else if(!$(ev.target).closest('.sub-menu').length){ev.preventDefault();overlay=link_container.find('.sub-menu');me.opt.main_menu_items.not(link_container).removeClass('open');if(me.opt.mq.width<960&&me.opt.main_menu_items.filter('.open-mobile').length===1){if(link_container.hasClass('open-mobile')){link_container.removeClass('open-mobile');} else{me.opt.main_menu_items.removeClass('open-mobile');link_container.toggleClass('open');}} else{link_container.toggleClass('open');} switch(me.opt.variants.navigation){case'A':pos=item.offset();overlay_css={top:pos.top-link_container.offset().top};if(overlay.width()+pos.left>me.opt.site.width()){overlay_css.right=0;overlay.addClass('rtl');} overlay.css(overlay_css).animate({opacity:(link_container.hasClass('open')?1:0)},'fast');break;case'B':pos=link_container.offset();if(overlay.width()+pos.left>me.opt.site.width()){overlay.addClass('rtl');} break;}}};me.smooth_scroll=function(ev){var scrollspeed=me.opt.smoothscroll?(parseInt(ev.speed,10)||400):1,boundingrect,target_hash,link,link_href,target,match,offset_px,banner_height=parseInt(ev['banner_height'],10)||window['scrolledBannerHeight']||me.opt.banner.outerHeight()||0;if(ev.hash){target_hash=me.id(ev.hash);if(target_hash.length){if(me.opt.menu_open){me.opt.menu_open=false;me.opt.site.removeClass('open open-delay');} document.location.hash='';offset_px=Math.round(target_hash.offset().top-banner_height);me.opt.body_scroll.animate({scrollTop:offset_px},scrollspeed);} return;} if(ev.scrollto&&ev.scrollto.length>0){if(me.opt.menu_open){me.opt.menu_open=false;me.opt.site.removeClass('open open-delay');} offset_px=Math.round(ev.scrollto.eq(0).offset().top-banner_height);me.opt.body_scroll.animate({scrollTop:offset_px},scrollspeed);return;} link=ev.target?$(ev.target):$(this);if(!link.is('a')){link=link.closest('a');} if(link.length===1){link_href=link.attr('href');if(!link_href||link.attr('target')||link.attr('onclick')||link.hasClass('fancybox')){return;} match=link_href.match(/^([^#]*)#+(.+)$/);if(match&&(!match[1]||match[1]===document.location.pathname||(document.location.pathname==='/'&&match[1]==='/'+me.opt.lang+'/'))){target=me.id(match[2]);if(target.length===0){target=$('[id="'+match[2]+'"],[name="'+match[2]+'"]')} if(target&&target.filter(':visible').length>0){ev.preventDefault();me.smooth_scroll_callback(ev,target);offset_px=Math.round(target.eq(0).offset().top-banner_height);if(me.opt.banner.css('position')=='fixed'){boundingrect=me.opt.banner.get(0).getBoundingClientRect();if(boundingrect&&boundingrect.top){offset_px-=boundingrect.top;}} me.opt.body_scroll.animate({scrollTop:offset_px},scrollspeed);}}}};me.smooth_scroll_callback=function(){if(me.opt.headc_chk&&me.opt.headc_chk.is(':checked')){me.opt.headc_chk.prop('checked',false);} else if(me.opt.menu_open){me.opt.menu_open=false;me.opt.site.removeClass('open open-delay');}};me.scroll_event=function(){me.opt.site.toggleClass('scrolled',me.opt.scroll_breakpoint());if((me.opt.already_scrolled==false)&&(me.opt.scroll_breakpoint()==true)){me.opt.noscript_afterload.each(function(){var i=$(this) me.opt.head.append(i.html());i.remove();});me.opt.already_scrolled=true;}};me.flex=function(container,layout,build,options){var params={w:0,h:0,quality:-1,max_w:2048,resp_img_bg:false,resp_img_src:false,container:container,layout:layout,build:build,options:(typeof options!=='object')?{}:options,default_options:{selector:'.slides > .slide',controlNav:false,directionNav:true,slideshow:true,slideshowSpeed:5000,animationSpeed:400,animationLoop:false,keyboard:false,prevText:"‹",nextText:"›"},flex_build:function(){params.container.flexslider(params.options);}},slides,existing_img,img;if(params.layout){params.container.data('layout',params.layout);} else if(params.container.data('layout')){params.layout=params.container.data('layout');} if(typeof me.opt.flex_layouts[params.layout]==='function'){((me.opt.flex_layouts[params.layout]).bind(params))();if(params.options.selector){params.options.selector=params.options.selector.replace('>','>');}} else{params.w=Math.min(params.max_w,me.opt.mq.width);params.h=params.w/(me.opt.gal_std_ratio>0?me.opt.gal_std_ratio:(16/9));} params.options=$.extend(params.default_options,params.options);if(!params.container.data('slides')){slides=params.container.find(params.options.selector);if(slides.length===0){return;} params.container.data('slides',slides);} if(params.resp_img_bg||params.resp_img_src){params.w=Math.round(params.w);params.h=Math.round(params.h);params.container.data('slides').each(function(i,el){var slide=$(el),media_id,media_url,url;media_id=slide.data('media');media_url=slide.data('media-url');if(media_id||media_url){if(!slide.data('img')){slide.data('img',slide.find('img'));} url=media_id?me.opt.std_domain+'/(cms)/media/resize/size='+params.w+'x'+params.h+',scale=crop/'+media_id:media_url+'/'+params.w+'x'+params.h+'s';if(params.resp_img_bg){slide.css('background-image',"url('"+url+"')");} if(params.resp_img_src){if(slide.data('img').length){slide.data('img').attr({'src':url,'width':params.w,'height':params.h});} else{existing_img=slide.find('img');if(existing_img.length>0){slide.data('img',existing_img.eq(0));} else{img=$('');slide.append(img).data('img',img);}}}}});} if(params.build){if(params.resp_img_bg||params.resp_img_src){me.opt.gals.push(params.container);} if(params.container.data('slides').length>1){if(params.resp_img_bg||params.resp_img_src){params.container.data('slides').eq(0).data('img').load(params.flex_build);} else{params.flex_build();}} else{params.container.data('slides').show();}}};me.layout_change=function(){$(me.opt.gals).map(function(i,el){me.flex(el);});};me.map_generate=function(container,coordinates,options){var form=container.closest('.grp-mem').find('form');var config=form.data('config');if(typeof config!='object'){config={}} var autobuild=config.Autobuild;if(config.Markers&&config.Markers.length){coordinates=[];$(config.Markers).map(function(i,el){coordinates.push([parseFloat(el.Latitude),parseFloat(el.Longitude),el.Name,el.Url]);if(el.MediaID>0){me.opt.gmaps_markers[i]={marker_1x:me.opt.std_domain+'/(cms)/media/resize/size=0x100/'+el.MediaID,marker_2x:me.opt.std_domain+'/(cms)/media/resize/size=0x200/'+el.MediaID}}});} else{if(!$.isArray(coordinates)){console.warn('Map Module: invalid coordinates',coordinates);return;} if(!$.isArray(coordinates[0])){coordinates=[coordinates];}} if(options===undefined){options={};} if(options.zoom){options.zoom=parseFloat(options.zoom);} if(options.resize){options.resize=Math.max(1,parseFloat(options.resize));} me.gmapsinit=function(){var mapOptions,currentMarker,currentPos,center_lat,center_long,boundaries,markers=[],searchBox,container_h=container.height(),$input=$('.nst15-map-input',form),$submit=$('.nst15-map-submit',form),$saddr=$('input[name="saddr"]',form),$daddr=$('input[name="daddr"]',form);if(options.resize&&!autobuild){container.height(container_h*options.resize).addClass('gmaps');me.opt.body_scroll.animate({scrollTop:me.opt.scroll+((options.resize-1)*container_h)});} else{container.height(container_h);} container.addClass('gmaps');if(config.UseCustomCenter&&$.isArray(config.CustomCenter)){center_lat=config.CustomCenter[0];center_long=config.CustomCenter[1];} else{currentPos=[coordinates[0][0],coordinates[0][1]];center_lat=currentPos[0];center_long=currentPos[1];if(!config.UseCustomCenter&&coordinates.length>1){boundaries={minLat:currentPos[0],maxLat:currentPos[0],minLong:currentPos[1],maxLong:currentPos[1]};$(coordinates).map(function(i,markerPos){boundaries.minLat=Math.min(boundaries.minLat,markerPos[0]);boundaries.maxLat=Math.max(boundaries.maxLat,markerPos[0]);boundaries.minLong=Math.min(boundaries.minLong,markerPos[1]);boundaries.maxLong=Math.max(boundaries.maxLong,markerPos[1]);});center_lat=(boundaries.minLat+boundaries.maxLat)/2;center_long=(boundaries.minLong+boundaries.maxLong)/2;}} mapOptions=$.extend({zoom:12,center:new google.maps.LatLng(center_lat,center_long),gestureHandling:'cooperative'},options);if(me.opt['gmaps_styles']!==undefined){mapOptions.styles=me.opt['gmaps_styles'];} me.opt.gmap=new google.maps.Map(container[0],mapOptions);form.on('submit',function(ev){ev.preventDefault();window.open(form.attr('action')+'?'+$.param($('input[type="hidden"]',form)));});$(coordinates).map(function(i,markerPos){var marker_pos=new google.maps.LatLng(markerPos[0],markerPos[1]);var marker_img=document.createElement('img');var marker_scale=1;var marker_srcs=me.opt.gmaps_markers[i]||me.opt.gmaps_markers[0];var marker_src=marker_srcs.marker_1x;if(window.devicePixelRatio>1){marker_scale=0.5;marker_src=marker_srcs.marker_2x;} $(marker_img).on('load',function(){var map_icon={url:this.src,scaledSize:new google.maps.Size(parseInt(this.width*marker_scale),parseInt(this.height*marker_scale))};var marker_options={position:marker_pos,map:me.opt.gmap,icon:map_icon};try{if(config.Markers[i].Name.length>0){marker_options.title=config.Markers[i].Name;}} catch(e){} var marker=new google.maps.Marker(marker_options);markers[i]=marker;marker.addListener('click',function(){currentMarker=marker;currentPos=[markerPos[0],markerPos[1]];me.opt.gmap.panTo(marker.getPosition());$daddr.val(currentPos.join(','));if(markerPos[3]){window.open(markerPos[3],'_blank');} else{$input.focus();}});if(!currentMarker){currentMarker=marker;$daddr.val(currentPos.join(','));}});marker_img.src=marker_src;});me.opt.gmap.controls[google.maps.ControlPosition.TOP_LEFT].push($input.get(0));me.opt.gmap.controls[google.maps.ControlPosition.TOP_LEFT].push($submit.get(0));searchBox=new google.maps.places.SearchBox($input.get(0));var rendererOptions={map:me.opt.gmap,suppressMarkers:true};var directionsService=new google.maps.DirectionsService;var directionsDisplay=new google.maps.DirectionsRenderer(rendererOptions);google.maps.event.addListener(searchBox,'places_changed',function(){var places=searchBox.getPlaces();if(places.length===0){return;} $input.val(places[0].formatted_address);$saddr.val(places[0].geometry.location.lat()+','+places[0].geometry.location.lng());$submit.addClass('visible');if(directionsDisplay!=null){directionsDisplay.setMap(null);directionsDisplay=new google.maps.DirectionsRenderer(rendererOptions);} directionsDisplay.setMap(me.opt.gmap);directionsService.route({origin:places[0].geometry.location,destination:currentMarker.position,travelMode:google.maps.TravelMode.DRIVING},function(response,status){if(status===google.maps.DirectionsStatus.OK){directionsDisplay.setDirections(response);}else{console.error('Directions request failed due to '+status);}});});};if(window.google!==undefined&&window.google.maps!==undefined){me.gmapsinit();} else{var apikey=options['apikey']?'&key='+options['apikey']:'';$.getScript('https://maps.googleapis.com/maps/api/js?libraries=places&callback=nst2015.gmapsinit'+apikey);}};me.gal_parallax=function(container){if(container&&!container.data('parallax')){container.data('parallax',true);container.data('slides',container.find('.slide'));me.opt.gal_parallax.push(container);if(!me.opt.gal_parallax_listening){me.opt.gal_parallax_listening=true;me.opt.window_h=me.opt.window.height();me.gal_parallax();me.opt.window.on('resize.nst_parallax orientationchange.nst_parallax',function(){me.opt.window_h=me.opt.window.height();me.gal_parallax();}).on('scroll.nst_parallax touchmove.nst_parallax',function(){me.gal_parallax();});}} else{$.map(me.opt.gal_parallax,function(el){var scroll_pos,pos=el.get(0).getBoundingClientRect();if(pos.height+pos.top>0&&me.opt.window_h-pos.top>0){scroll_pos=100*(pos.top+pos.height)/(me.opt.window_h+pos.height);el.data('slides').css({'background-position':'0 '+scroll_pos+'%'});}});}};me.left_pad=function(value,fill,return_length){fill=fill!==undefined?fill.toString():'0';return_length=return_length!==undefined?return_length:2;while(value.toString().length0){avail=false;while(!avail&&i=me.date_convert(avail_tf[i][0],'ymd','Date')&&date<=me.date_convert(avail_tf[i][1],'ymd','Date'));i++;}} return[avail,''];};me.setup();if(window['nst_manual_init']!==true){me.init();}}; /*! modernizr 3.6.0 (Custom Build) | MIT * * https://modernizr.com/download/?-cssgrid_cssgridlegacy-scrollsnappoints-touchevents-webp-setclasses !*/ !function(e,n,t){function o(e,n){return typeof e===n}function r(){var e,n,t,r,i,s,a;for(var l in _)if(_.hasOwnProperty(l)){if(e=[],n=_[l],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;tc;c++)if(p=e[c],m=R.style[p],A(p,"-")&&(p=f(p)),R.style[p]!==t){if(i||o(r,"undefined"))return s(),"pfx"==n?p:!0;try{R.style[p]=r}catch(v){}if(R.style[p]!=m)return s(),"pfx"==n?p:!0}return s(),!1}function v(e,n,t,r,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+E.join(s+" ")+s).split(" ");return o(n,"string")||o(n,"undefined")?h(a,n,r,i):(a=(e+" "+P.join(s+" ")+s).split(" "),d(a,n,t))}function y(e,n,o){return v(e,t,t,n,o)}var w=[],_=[],b={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){_.push({name:e,fn:n,options:t})},addAsyncTest:function(e){_.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=b,Modernizr=new Modernizr;var C=n.documentElement,S=b._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];b._prefixes=S;var B,T="svg"===C.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;B=o(e,"undefined")||o(e.call,"undefined")?function(e,n){return n in e&&o(e.constructor.prototype[n],"undefined")}:function(n,t){return e.call(n,t)}}(),b._l={},b.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},b._trigger=function(e,n){if(this._l[e]){var t=this._l[e];setTimeout(function(){var e,o;for(e=0;esml.body.width()){left=sml.link_area.right-sml.layer.outerWidth(true);}} if(left+sml.layer.outerWidth()>sml.body.width()){left=sml.body.width()-sml.layer.outerWidth();} if(left<0){if(sml.settings.position_y){left=sml.link_area.left;} else{left=sml.link_area.right;}} if(sml.settings.position_y){switch(sml.settings.position_y){case 1:top=sml.link_area.top-sml.layer.innerHeight();break;case 2:layer_posY='bottom';top=sml.link_area.bottom;break;}} if(!top){var half_height=sml.layer.outerHeight()/2;top=sml.link_area.top-half_height;if(top<0){layer_posY='bottom';top=sml.link_area.bottom;} if(sml.settings.position_x==0&&sml.link_area.topelement_offset.top){sml.link_area.top=element_offset.top-10;} if(!sml.link_area.right||sml.link_area.rightelement_offset.left){sml.link_area.left=element_offset.left-10;}});};sml.child_show_current=function(link){sml.layer.find('.social-media-source').hide().eq(jQuery('div.social-media-source-icon a',sml.body).index(link)).show();};jQuery(function(){window.setTimeout(function(){sml.init();},10);}); var cms_combine_fn='/(cms)/module/static/default/content/libs/js/jquery-slick-2/slick.min.js'; !function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('