/* all.min.js - Turtle skin scripts */ var VER='5.4.8',DEBUG=false; Texts={closeWindow:'Close window',okButton:'OK',warning:'Warning',error:'Error',today:'today',yesterday:'yesterday',daysAgo:'{0} days ago',monthsAgo:'{0} months ago',yearsAgo:'{0} years ago',play:'Play',pause:'Pause',stop:'Stop',mute:'Mute',unmute:'Unmute',fullScreen:'Full screen',restoreScreen:'Restore screen',repeat:'Repeat',repeatOff:'Repeat off',localFlashWarning:'Local Flash playback is possibly blocked by Flash security rules. Test videos in the uploaded album!',unsupportedMediaFormat:'Unsupported media formatYou might need to either update your browser or the Flash plugin or use another browser to play this media.',addCart:'Add to Cart',buyNow:'Buy Now',viewCart:'View Cart',items:'items',success:'Success',couponCode:'Coupon code',redeem:'Redeem',noSuch:'No such coupon exists!',expired:'The coupon code {0} has expired!',accepted:'The coupon code is accepted. You will get {0} discount the next time you add this item to the cart.',lowerThanCurrent:'This coupon offers lower discount than the current {0}.',higherThanPrice:'You can use this coupon only for items priced higher than {0}.',reclaimed:'This coupon has already been used!',shareOn:'Share on',checkOutThis:'Check this out',localWarning:'Can't share local albums. Please upload your album first!',searchBoxTip:'Search...',searchResultsFor:'Search results for',newImages:'New images',notFound:'Not found',foundNImages:'Found {0} item(s)',close:'Close',newItem:'NEW',help_title:'Using Gallery Controls',help_pressF1:'Press F1 any time to get help!',help_topNavigation:'Top navigation bar with Home button',help_upOneLevel:'Up one level',help_authorInfo:'Author or company information',help_shareAndLike:'Share and Like buttons for social networking',help_searchNew:'Search new images',help_search:'Search button',help_downloadZip:'Download album or current folder as ZIP file',help_startSlideshow:'Start slideshow Numpad *',help_previousPicture:'Previous picture Left arrowSwipe right',help_backToIndex:'Back to thumbnail page / up one level Esc',help_toggleFit:'Toggle fit to screen or 1:1 size Numpad +',help_toggleInfo:'Show/hide captions and other panels, like Metadata, Map, Shopping, etc. Numpad -',help_toggleThumbnails:'Show/hide thumbnail scroller Numpad -',help_toggleAutoPlay:'Start/stop slideshow Numpad *',help_nextPicture:'Next picture Right arrowSwipe left',help_toggleMeta:'Toggle photo data',help_toggleMap:'Toggle map',help_toggleShop:'Toggle shopping options panel',help_downloadImage:'Download high resolution file',help_shareAndLike:'Share and Like buttons for social networking',help_toggleComments:'Toggle Facebook comments',help_toggleFaces:'Toggle visibility of tagged people',startSlideshow:'Start slideshow',atFirstPage:'At first page',atLastPage:'At last page',atLastPageQuestion:'Where to go next?',startOver:'Start over',backToHome:'Back to home',stop:'Stop',upOneLevel:'Up one level',backToIndex:'Back to index page',previousPicture:'Previous picture',nextPicture:'Next picture',previousFolder:'Previous folder',nextFolder:'Next folder',changeSpeed:'Change speed',oneToOneSize:'1:1 size',fitToScreen:'Fit to screen',showInfo:'Show caption / info',hideInfo:'Hide caption / info',showThumbs:'Show thumbnails',hideThumbs:'Hide thumbnails',startAutoplay:'Start autoplay',stopAutoplay:'Stop autoplay',clickToOpen:'Click to open this document with the associated viewer',commentsBtn:'Comments',commentsLabel:'Add a comment, view other's comments',metaBtn:'Photo data',metaLabel:'Display photographic (Exif/Iptc) data',mapBtn:'Map',mapLabel:'Show the photo location on map',shopBtn:'Buy',shopLabel:'Show options to buy this item',shareBtn:'Share',shareLabel:'Share this photo over social sites',download:'Download',original:'Original',hiRes:'Hi res.',saveTip:'Use Right click + Save link as... to download',print:'print',printLabel:'Print out this photo on your printer',fotomotoBtn:'Buy / Share',fotomotoLabel:'Buy prints or digital files, share, send free eCards',mostphotosBtn:'Purchase',mostphotosLabel:'Download this image from mostphotos.com!',people:'People',sendFeedback:'Send feedback',message:'Message',subject:'Subject',comment:'Comment',yourEmail:'Your email address',send:'Send',messageSent:'Message sent',errorSending:'Error sending email!',tooLong:'Text is too long or too many items!',emailMissing:'Email is misssing or wrong format!',noItemsSelected:'No items selected',selectItemsHint:'Select the desired items first!',nonShoppableItems:'The selected items have no or have proprietary shopping options, or different discount rates.',buyNItems:'Buy {0} items',locationWarning:'Works only when uploaded',cookiePolicyText:'This album uses cookies to remember user preferences. By using it, you agree to our use of cookies.',cookiePolicyAgree:'Got it',cookiePolicyLearnMore:'Learn more'}; !function(t){var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=e.length;n;)t.event.fixHooks[e[--n]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],r,!1);else this.onmousewheel=r},teardown:function(){if(this.removeEventListener)for(var t=e.length;t;)this.removeEventListener(e[--t],r,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}});var r=function(e){var n=e||window.event,r=[].slice.call(arguments,1),i=0,o=0,s=0;return e=t.event.fix(n),e.type="mousewheel",n.wheelDelta?i=n.wheelDelta/120:n.detail&&(i=-n.detail/3),s=i,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(s=0,o=-1*i),void 0!==n.wheelDeltaY&&(s=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(o=-1*n.wheelDeltaX/120),r.unshift(e,i,o,s),(t.event.dispatch||t.event.handle).apply(this,r)}}(jQuery); !function(n){!function(){function e(e){function t(n){return n===!0?function(n){return n}:"string"==typeof n&&(n=c(n.split("")))||"function"==typeof n?function(e){return n(encodeURIComponent(e))}:encodeURIComponent}function c(e){var t=new RegExp(n.map(e,encodeURIComponent).join("|"),"ig");return function(n){return n.replace(t,decodeURIComponent)}}e=n.extend({unescape:!1},e||{}),o.encoder=t(e.unescape)}var t=!(navigator.userAgent.indexOf("Firefox")>=0&&parseInt(navigator.userAgent.match(/Firefox\/(\d*(\.\d*)*)/)[1])<41),o={put:function(n,e){(e||window).location.hash=this.encoder(n)},get:function(n){var e=(n||window).location.hash.replace(/^#/,"");try{return t?decodeURIComponent(e):e}catch(o){return e}},encoder:encodeURIComponent},c={};c.base={callback:void 0,type:void 0,check:function(){},load:function(){},init:function(n,t){e(t),a.callback=n,a._options=t,a._init()},_init:function(){},_options:{}},c.timer={_appState:void 0,_init:function(){var n=o.get();a._appState=n,a.callback(n),setInterval(a.check,100)},check:function(){var n=o.get();n!==a._appState&&(a._appState=n,a.callback(n))},load:function(n){n!==a._appState&&(o.put(n),a._appState=n,a.callback(n))}},c.hashchangeEvent={_init:function(){a.callback(o.get()),n(window).on("hashchange",a.check)},check:function(){a.callback(o.get())},load:function(n){o.put(n)}};var a=n.extend({},c.base);a.type="onhashchange"in window?"hashchangeEvent":"timer",n.extend(a,c[a.type]),n.history=a}()}(jQuery); var UNDEF="undefined",NOLINK="javascript:void(0)",LOCAL=0===location.protocol.indexOf("file:"),VEND=function(t){return t.indexOf("Trident")>0?"ms":t.indexOf("AppleWebKit")>0?"webkit":t.indexOf("Gecko")>0?"moz":t.indexOf("Presto")>0?"o":t.indexOf("Blink")>0?"webkit":""}(navigator.userAgent);String.wsp=[],String.wsp[9]=!0,String.wsp[10]=!0,String.wsp[11]=!0,String.wsp[12]=!0,String.wsp[13]=!0,String.wsp[32]=!0,String.wsp[133]=!0,String.wsp[160]=!0,String.wsp[5760]=!0,String.wsp[6158]=!0,String.wsp[8192]=!0,String.wsp[8193]=!0,String.wsp[8194]=!0,String.wsp[8195]=!0,String.wsp[8196]=!0,String.wsp[8197]=!0,String.wsp[8198]=!0,String.wsp[8199]=!0,String.wsp[8200]=!0,String.wsp[8201]=!0,String.wsp[8202]=!0,String.wsp[8203]=!0,String.wsp[8232]=!0,String.wsp[8233]=!0,String.wsp[8239]=!0,String.wsp[8287]=!0,String.wsp[12288]=!0,String.prototype.trim=function(){var t=this+"",n=t.length;if(n){var e=String.wsp,r=0;for(--n;n>=0&&e[t.charCodeAt(n)];)--n;for(++n;n>r&&e[t.charCodeAt(r)];)++r;t=t.substring(r,n)}return t},String.prototype.trunc=function(t){var n=this+"";if(n.length<=t)return n.toString();var e=n.substring(0,t-1),r=e.lastIndexOf(" ");return(r>6&&e.length-r<20?e.substring(0,r):e)+"..."},String.prototype.startsWith=function(t){return 0===(this+"").indexOf(t)},String.prototype.endsWith=function(t){return(this+"").substring(this.length-t.length)===t},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.unCamelCase=function(){return this.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},String.prototype.getExt=function(){var t=this+"",n=t.lastIndexOf(".");return 0>=n||n>=t.length-1?"":t.substring(n+1).toLowerCase()},String.prototype.hasExt=function(t){var n=this+"",e=n.lastIndexOf(".");return e>=0?(n=n.substring(e+1).toLowerCase(),(t+",").indexOf(n+",")>=0):!1},String.prototype.replaceExt=function(t){var n=this+"",e=n.lastIndexOf(".");return 0>=e?n:n.substring(0,e+1)+t},String.prototype.fixExtension=function(){return(this+"").replace(/.gif$/gi,".png").replace(/.tif+$/gi,".jpg")},String.prototype.getDir=function(){var t=(this+"").split("#")[0];return t.substring(0,t.lastIndexOf("/")+1)},String.prototype.getFile=function(){var t=(this+"").split("#")[0];return t.substring(t.lastIndexOf("/")+1)},String.prototype.getRelpath=function(t){var n=this+"",e=n.lastIndexOf("#");for(-1===e?e=n.length-1:e--;e>=0&&("/"!==n[e]||0!==t--);e--);return n.substring(e+1)},String.prototype.fixUrl=function(){for(var t,n,e=this+"";(t=e.indexOf("../"))>0;){if(1===t||-1===(n=e.lastIndexOf("/",t-2)))return e.substring(t+3);e=e.substring(0,n)+e.substring(t+2)}return e},String.prototype.fullUrl=function(){var t=this+"";return t.match(/^(http|ftp|file)/)||(t=window.location.href.getDir()+t),t.fixUrl()},String.prototype.cleanupHTML=function(){for(var t=[[/
/gi,"\n"],[/\&/gi,"&"],[/\</gi,"<"],[/\>/gi,">"],[/\&(m|n)dash;/gi,"-"],[/\'/gi,"'"],[/\"/gi,'"']],n=this+"",e=t.length-1;e>=0;e--)n=n.replace(t[e][0],t[e][1]);return n},String.prototype.stripHTML=function(t){var n=this+"";return t&&(n=n.cleanupHTML()),n.replace(/<\/?[^>]+>/gi,"")},String.prototype.stripQuote=function(){return(this+"").replace(/\"/gi,""")},String.prototype.appendSep=function(t,n){return(this.length?this+(n||" · "):"")+t},String.prototype.rgb2hex=function(){var t=this+"";if("#"===t.charAt(0)||"transparent"===t)return t;var n,e=t.match(/\d+/g),r="";if(e){for(var o=0;oo;o++)n=parseInt(e[o],10).toString(16),r+=(n.length<2?"0":"")+n;return"#"+r}return"transparent"},String.prototype.template=function(t){if(typeof t===UNDEF||!this)return this;$.isNumeric(t)&&(t+="");var n=this+"";if($.isArray(t))for(var e=0;en?t:n>e?e:n},String.prototype.objectify=function(){if(!this||!this.length)return this;var t=this+"";"?"===t.charAt(0)&&(t=t.substring(1));for(var n,e={},r=t.split("&"),o=0,i=r.length;i>o;o++)n=r[o].split("="),n.length>1&&(e[n[0]]=n[1]);return e},String.prototype.testIn=function(t){return"string"!=typeof t&&(t+=""),new RegExp(this,"i").test(t)};var getCoords=function(t){return t.touches&&t.touches.length>0?{x:Math.round(t.touches[0].clientX),y:Math.round(t.touches[0].clientY)}:null!==t.clientX?{x:Math.round(t.clientX),y:Math.round(t.clientY)}:null},noAction=function(t){return t.stopPropagation(),t.preventDefault(),!1},TOUCH_START="touchstart",TOUCH_MOVE="touchmove",TOUCH_END="touchend",scrollbarWidth=function(){var t=document.createElement("div");t.style.cssText="width:100px;height:100px;overflow:scroll !important;position:absolute;top:-9999px",document.body.appendChild(t);var n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n};!function(t,n){var e=function(){window.navigator.pointerEnabled?(TOUCH_START="pointerdown",TOUCH_MOVE="pointermove",TOUCH_END="pointerup"):(TOUCH_START="MSPointerDown",TOUCH_MOVE="MSPointerMove",TOUCH_END="MSPointerUp")};/Trident/.test(navigator.userAgent)?(n.touchMode="undefined"!=typeof navigator.maxTouchPoints&&navigator.maxTouchPoints,e()):/Edge/.test(navigator.userAgent)?(n.touchMode=0==scrollbarWidth(),e()):(TOUCH_START="touchstart",TOUCH_MOVE="touchmove",TOUCH_END="touchend",n.touchMode=/(Chrome|CriOS)/.test(navigator.userAgent)?/Mobile/.test(navigator.userAgent)||Object.prototype.hasOwnProperty.call(window,"ontouchstart"):"ontouchstart"in window);var r="moz"===VEND?"transform":"-"+VEND+"-transform";t.fn.translate=function(n,e,o){return this.each(function(){o&&t(this).addClass(o).data("tr_cls",o),this.style[r]="translate("+(n||0)+"px,"+(e||0)+"px)",t(this).data({tr_x:n,tr_y:e})})},t.fn.translateToPos=function(){return this.each(function(){var n=t(this),e=n.data("tr_x")||0,o=n.data("tr_y")||0;if(e||o){var i=n.position(),a=n.data("tr_cls");a&&n.removeClass(a),this.style[r]="translate(0,0)",n.removeData("tr_x tr_y").css({left:i.left,top:i.top})}})}}(jQuery,document),function(){function t(){n&&(o(t),jQuery.fx.tick())}for(var n,e=0,r=["webkit","moz"],o=window.requestAnimationFrame,i=window.cancelAnimationFrame;ee;e++)r[o[e]]=translate(o[e],n[o]);return r},getTranslations=function(t){var n,e={};for(n in t)e[n]="object"==typeof t[n]?getTranslations(t[n]):translate(n,t[n]);return e},printImage=function(t,n,e){if(t){var r=window.open("about:blank","print","location=no,status=no,titlebar=no");r.document.open(),r.document.write('\n\n\n\n'+(n||"Print")+'\n\n\n\n'+(e||"")+"\n"),r.document.close()}},xDecrypt=function(t){var n,e,r,o=[147,163,87,254,153,4,198,23],i=t.length,a=5*Math.ceil(i/8),s=new Array(a),u="",p=0;for(n=0;a>n;n++)s[n]=0;for(n=0;i>n;n++)(r=t.charCodeAt(n)-48)>9&&(r-=7),r<<=11-p%8,e=Math.floor(p/8),a>e&&(s[e]|=r>>8,++en;n++)s[n]^=o[n%8];for(a=s[0]|s[1]<<8,r=0,n=4;a>n;n++)u+=String.fromCharCode(s[n]),r+=s[n];return r!=(255&s[2]|s[3]<<8)&&(u=""),u},log=function(){};!function(t){var n,e,r=!1,o=1;log=function(i){DEBUG&&!r&&(n||(n=t('
').hover(function(){r=!0},function(){r=!1}).appendTo("body")),i===e?n.children(":first").empty().html(e+" ("+ ++o+")"):(t('
'+i+"
").prependTo(n),e=i,o=1))},t.fn.logEvents=function(n){if(DEBUG){var e=n||"mousedown mouseup mouseover mouseout mousewheel dragstart click blur focus load unload reset submit change abort cut copy paste selection drag drop orientationchange touchstart touchmove touchend touchcancel MSPointerDown MSPointerMove MSPointerUp gesturestart gesturechange gestureend";return this.each(function(){t(this).on(e,function(t){return typeof t===UNDEF?log("Undefined event"):t.target?"log"!==t.target.id&&log(t.type+' '+(t.target.nodeName?t.target.nodeName.toLowerCase():"???")+""+(t.target.id?":"+t.target.id:"")+""+(t.relatedTarget?' '+t.relatedTarget.nodeName.toLowerCase()+""+(t.relatedTarget.id?":"+t.relatedTarget.id:"")+"":"")):log("No event target!"),!0})})}},t.fn.logCss=function(n,e,r){if(DEBUG){r=r||20,e=e||2e3;var o=new Date;return this.each(function(){var i=t(this),a=function(t){var n=new Date-o;log(n+" :: "+t+" = "+i.css(t)),n>e&&clearInterval(s)},s=setInterval(function(){if(t.isArray(n))for(var e=0;e=730?(n=translate("yearsAgo"),e=Math.floor(t/365)):t>=60?(n=translate("monthsAgo"),e=Math.floor(t/30.5)):(n=translate("daysAgo"),e=t),n.replace("{0}",e)}; !function(e){var t=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},n=function(e){t()||(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&document.body.msRequestFullscreen())},o=function(){t()&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())};e.fn.fullScreen=function(e){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled?"undefined"==typeof e?t():(e?n(this[0]):o(),void 0):!1}}(jQuery); !function(e){e.event.special.dbltap={setup:function(){e(this).on("touchend.dbltap",e.event.special.dbltap.handler)},teardown:function(){e(this).off("touchend.dbltap")},handler:function(t){var n=[].slice.call(arguments,1),o=e(t.target),a=(new Date).getTime(),i=a-(o.data("lastTouch")||0);return i>5&&300>i?(t.preventDefault(),o.data("lastTouch",0),t=e.e.fix(t||window.event),t.type="dbltap",n.unshift(t),(e.e.dispatch||e.e.handle).apply(this,n)):(o.data("lastTouch",a),!0)}}}(jQuery); !function(e){LOCALSTORAGE=function(){try{return localStorage.setItem("_t",VER),localStorage.removeItem("_t"),!0}catch(e){return!1}}(),e.cookie=function(t,n,o){var a,i,s="; ",r=function(e){return/^(true|yes)$/.test(e)?!0:/^(false|no)$/.test(e)?!1:/^([\d.]+)$/.test(e)?parseFloat(e):e};if(arguments.length>1)return i=new Date,null===n?LOCALSTORAGE?localStorage.removeItem(t):document.cookie=encodeURIComponent(t)+"="+"; expires="+i.toGMTString()+"; path=/":/^(string|number|boolean)$/.test(typeof n)&&(i.setTime(i.getTime()+1e3*("number"!=typeof o?3600:o)),LOCALSTORAGE?localStorage.setItem(t,String(n)+s+String(i.getTime())):document.cookie=encodeURIComponent(t)+"="+String(n)+"; expires="+i.toGMTString()+"; path=/"),n;if(t)if(LOCALSTORAGE){if(a=localStorage.getItem(t)){if(a=a.split(s),!(e.isArray(a)&&a.length>1))return r(a);if(i=new Date,i.getTime()I||I+b>v)&&(u.pos[2]!==o?I=2*I+b>v?v-b:0:u.pos[3]===a?v>2*f.top+h&&(I=f.top+h+u.gap,y=s):u.pos[3]===s&&v<2*f.top+h&&(I=Math.max(0,f.top-b-u.gap),y=a),0>I&&(I=0),I+b>v&&d.css({overflow:"auto",maxHeight:v-I-(parseInt(d.css("paddingTop"),10)+parseInt(d.css("paddingBottom"),10))})),(0>x||x+j>g)&&(u.pos[3]!==n?x=2*x+j>g?g-j:0:u.pos[2]===e?g>2*f.left+c&&(x=f.left+c+u.gap,m=i):u.pos[2]===i&&g<2*f.left+c&&(x=Math.max(0,f.left-j-u.gap),m=e),0>x&&(x=0),x+j>g&&d.css({overflow:"auto",maxWidth:g-x-(parseInt(d.css("paddingLeft"),10)+parseInt(d.css("paddingRight"),10))})),d.css({position:"absolute",left:x,top:I}).removeClass(p).addClass("align-"+r[m]).addClass("valign-"+l[y])})}},t.fn.alignTo.defaults={gap:0,pos:[o,s,o,a]}}(jQuery); !function(e){e.fn.addTooltip=function(t,o){t&&"string"!=typeof t&&!t.jquery&&(o=t,t=null);var i={tooltip:"tooltip"},n=".tt";o=e.extend({},e.fn.addTooltip.defaults,o),e.fn.hideAllTooltips=function(){e("."+o.className).hide()};var a=function(t,n){var a;if(n)if("string"==typeof n)a=e("
",{html:n}).appendTo("body");else{if(!n.jquery)return null;a=e.contains(document.body,n[0])?n:n.appendTo("body")}else{if((n=t.data(i.tooltip))?("."===n.charAt(0)?n=t.find(n):"#"===n.charAt(0)&&(n=e(n)),n.jquery&&n.removeClass("hidden")):(n=t.attr("title"),t.removeAttr("title")),!n||!n.length)return null;a=e("
",{html:n}).appendTo("body")}return a.addClass(o.className).hide(),a.append(e("",{"class":o.nub})),a};return this.each(function(){var i,l,s,r,p=e(this),d=!1,c=!1,u=function(){s=clearTimeout(s),d=!0,i.finish().show()},h=function(){c||(clearTimeout(s),d=!1,s=setTimeout(b,100))},m=function(){l=clearTimeout(l),clearTimeout(s),d=!1,s=setTimeout(b,100)},f=function(){return m(),!0},b=function(){!d&&i&&i.stop(!0,!1).fadeOut(200,function(){i.hide()})},g=function(){clearTimeout(s),s=setTimeout(b,o.stay)},w=function(){return(i=a(p,t))?(document.touchMode||i.on("mouseover"+n,u).on("mouseout"+n,h),i.find("input, textarea").on("focus"+n,function(){c=!0,u()}).on("blur"+n,function(){c=!1}),!0):!1},v=function(){var e=p.offset();e.top===r.top&&e.left===r.left&&i.fadeIn(300).alignTo(p,{gap:10,pos:o.pos})},y=function(){if(i)i.stop(!0,!1),s=clearTimeout(s);else if(!w())return;r=p.offset(),clearTimeout(l),l=setTimeout(v,o.delay),document.touchMode?g():d=!0},k=function(e){if(e.preventDefault(),!i||i.is(":hidden"))y();else if(d=!1,m(),"A"===p[0].nodeName){var t=p.attr("href");t&&!t.startsWith("javascript:")?window.location.href=t:p.trigger("click")}return!1},T=function(e){e.preventDefault(),e.stopPropagation()};p.on("removeTooltip",m),document.touchMode?p.on("touchstart"+n+" pointerdown"+n+" MSPointerDown"+n,k).on("touchend"+n+" touchcancel"+n+" pointerup"+n+" MSPointerUp"+n,T).on("click"+n,T):p.on("focus"+n+" mouseenter"+n,y).on("blur"+n+" mouseleave"+n,m).on("click"+n,f)})},e.fn.addTooltip.defaults={delay:50,className:"hint",nub:"nub",stay:2e3,pos:[1,2,1,0]}}(jQuery); !function(e){e.fn.addModal=function(t,n,a){var o=e(this);if("string"==typeof t&&(t=e(t)),t instanceof e&&t.length){e.isArray(n)||(a=n,n=null),a=e.extend({},e.fn.addModal.defaults,a),a.savePosition=a.savePosition&&"uid"in a;var i=getTranslations(e.fn.addModal.text);a.defaultButton&&(a.defaultButton=translate(a.defaultButton,"OK"));var s,r,l,d,c,u,p,h,f,m={w:"_m_window",p:"_m_panel",h:"_m_head",c:"_m_cont",ci:"_m_cont_i",x:"close",r:"resize"},g=0;a.uid&&e("#"+a.uid).parents("."+m.w).remove(),s=e("
",{"class":m.w,role:"dialog","aria-hidden":!0,"aria-labelledby":m.h}).css({opacity:0}).appendTo(o),o.css({position:"relative"});var v=function(){p=o.width(),h=o.height()};v(),e(window).on("resize",v),a.darkenBackground&&s.addClass("darken"),r=e("
",{id:a.uid||"_mod_"+Math.floor(1e4*Math.random()),"class":m.p+" "+a.type}).css({width:a.width}).appendTo(s),l=e("
",{"class":m.h}).appendTo(r),l.append(e("
",{id:m.h,text:a.title||("error"===a.type||"warning"===a.type?i[a.type]:"")})),("error"===a.type||"warning"===a.type)&&l.append(e("",{"class":a.type,text:"!"}));var b=function(){return d.trigger("removeTooltip"),f=clearTimeout(f),s.animate({opacity:0},a.speed,function(){s.remove()}),!1};s.on("destroy",b),a.blocking&&a.closeOnClickOut&&s.on("click",function(t){return e(t.target).hasClass(m.w)?b(t):void 0}),d=e("",{"class":m.x,html:"×"}).appendTo(l),document.touchMode?d[0].addEventListener(TOUCH_END,b):(d.on("click",b),d.addTooltip(i.closeWindow));var w=function(t){t.preventDefault();var n=r.position().left,o=r.position().top,i=getCoords(t),s=p-r.width()-a.pad,d=h-r.height()-a.pad,c=l.css("cursor");l.css({cursor:"move"});var u=function(e){e.preventDefault();var t=getCoords(e);return r.css({left:Math.minMax(a.pad,n+t.x-i.x,s),top:Math.minMax(a.pad,o+t.y-i.y,d)}),!1},f=function(t){return t.preventDefault(),e(document).off({mousemove:u,mouseup:f}),l.css("cursor",c),a.savePosition&&E(),!1};return document.touchMode?(this.addEventListener(TOUCH_END,f),this.addEventListener(TOUCH_MOVE,u)):e(document).on({mousemove:u,mouseup:f}),!1};if(a.movable&&(document.touchMode?l[0].addEventListener(TOUCH_START,w):l.on("mousedown",w)),c=e("
",{"class":m.c}).appendTo(r),u=e("
",{"class":m.ci}).append(t).appendTo(c),!n&&a.defaultButton&&(n=[{t:a.defaultButton,h:b}]),n){var y,T,k,x=e("
",{"class":"buttons"}).appendTo(u),S=function(t){k.each(function(n){e(this).toggleClass("active",n===t)})},I=function(){e(document).off("keydown",M),b()},M=function(t){if(document.activeElement&&"input"===document.activeElement.nodeName||e.isFunction(a.enableKeyboard)&&!a.enableKeyboard())return!0;var n=t?t.keyCode:window.event.keyCode;if(27===n)return I(),!1;if(x){var o=x.find("a.active"),i=k.index(o);switch(n){case 13:case 10:e.isFunction(o[0].handler)&&o[0].handler.call(s)!==!1&&I();break;case 39:S((i+1)%k.length);break;case 37:S(i?i-1:k.length-1);break;default:return!0}return!1}return!0},C=function(t){t.preventDefault();var n=t.target;return e.isFunction(n.handler)&&n.handler.call(s,r)!==!1&&I(),!1};for(y=0;y",{html:n[y].t}).on("click",C).appendTo(x),e.isFunction(n[y].h)&&(T[0].handler=n[y].h);k=x.children("a"),k.last().addClass("active"),(e.isFunction(a.enableKeyboard)||a.enableKeyboard)&&e(document).on("keydown",M)}if(a.resizable){var O=function(e){e.preventDefault();var t=[r.position().left,r.position().top,r.width(),r.height()],n=[a.pad,a.pad,p-2*a.pad,h-2*a.pad],o=function(e){r.css({left:Math.minMax(a.gap,e[0],p-e[2]-a.gap),top:Math.minMax(a.gap,e[1],h-e[3]-a.gap),width:e[2],height:e[3]}),u.css({height:e[3]-g})};return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]?o(r.data("wpos")):(o(n),r.data("wpos",t)),a.savePosition&&E(),!1};l.on(document.touchMode?"dbltap":"dblclick",O);var F=e("",{"class":m.r}).appendTo(r),P=function(t){t.preventDefault();var n=r.width(),o=r.height(),i=getCoords(t),l=s.width(),d=h-a.pad-r.position().top-g,l=p-a.pad-r.position().left,c=function(e){e.preventDefault();var t=getCoords(e),a=Math.min(Math.max(o+t.y-i.y-g,20),d);return r.css({width:Math.min(Math.max(n+t.x-i.x,60),l),height:a+g}),u.css({height:a}),!1},f=function(t){return t.preventDefault(),e(document).off({mousemove:c,mouseup:f}),a.savePosition&&E(),!1};return document.touchMode?(this.addEventListener(TOUCH_MOVE,c),this.addEventListener(TOUCH_END,f)):e(document).on({mousemove:c,mouseup:f}),!1};document.touchMode?F[0].addEventListener(TOUCH_START,P):F.on("mousedown",P)}var D=function(){var e=r.width(),t=r.height();g=t-u.height(),e&&t&&p&&h&&(e+2*a.pad>p&&r.css({width:e=p-2*a.pad}),t+2*a.pad>h&&(r.css({height:t=h-2*a.pad}),u.css({height:h-2*a.pad-g})),r.css({left:Math.max(Math.round((p-e)*a.pos[0]/2),a.pad),top:Math.max(Math.round((h-t)*a.pos[1]/2),a.pad)}))},L=function(e){var t,n=Math.minMax(a.pad,parseInt(e[0],10),p-a.pad-60),o=Math.minMax(a.pad,parseInt(e[1],10),h-a.pad-60),i=Math.minMax(120,parseInt(e[2],10),p-n-a.pad);(isNaN(n)||isNaN(o)||isNaN(i))&&D(),g=l.outerHeight()+parseInt(c.css("padding-top"),10)+parseInt(c.css("padding-bottom"),10)+parseInt(u.css("padding-top"),10)+parseInt(u.css("padding-bottom"),10)+parseInt(c.css("border-top-width"),10),r.css({position:"absolute",left:n,top:o,width:i}),r.height()>(t=h-o-a.pad)&&(r.css({height:t}),u.css({height:t-g}))},E=function(){e.cookie("modalPosition"+a.uid,r.position().left+","+r.position().top+","+r.width()+","+r.height())},N=function(t){s.css({opacity:0}).show(),setTimeout(function(){t&&(t=t.split(","))&&e.isArray(t)&&t.length>3?L(t):D(),a.blocking||s.css({width:0,height:0,right:"auto",bottom:"auto",overflow:"visible"}),s.animate({opacity:1},a.speed),a.savePosition&&E(),a.autoFade&&(f=setTimeout(b,a.autoFade)),a.scrollIntoView&&setTimeout(function(){var e=u.children(":not(.buttons)").find(".active:first");e&&e.length&&u.scrollTop(Math.max(Math.floor(e.position().top)-50,0))},200),s.attr({tabindex:0,"aria-hidden":!1}),s.focus()},40)};return N(a.savePosition?e.cookie("modalPosition"+a.uid):null),this}},e.fn.addModal.defaults={speed:300,autoFade:0,width:400,resizable:!1,movable:!0,blocking:!0,enableKeyboard:!0,closeOnClickOut:!0,darkenBackground:!0,savePosition:!1,scrollIntoView:!1,defaultButton:"okButton",pad:6,pos:[1,1],type:"normal"},e.fn.addModal.text={closeWindow:"Close window",error:"error",warning:"warning"}}(jQuery); !function(e){e.fn.loadImages=function(t){return t=e.extend({},e.fn.loadImages.defaults,t),this.each(function(){var n=e(this),o=n.find(t.selector).eq(0)||n.children().eq(0);if(o.length&&n.is(":visible")&&o.is(":visible")){var i=o.find("img."+t.loadClass);if(i.length){var a,r,s,l,d,c,u="absolute"===o.css("position"),p=-("left"in t?t.left:o.position().left-(u?0:n.scrollLeft()))-t.d,h=-("top"in t?t.top:o.position().top-(u?0:n.scrollTop()))-t.d,f=o.offset().left,g=o.offset().top,m=(u?n.width():e(window).width())+2*t.d,v=(u?n.height():e(window).height())+2*t.d,w=0;i.each(function(){r=e(this),a=r.parent(),(d=r.data("src"))&&(l=a.offset().left-f,s=a.offset().top-g,h+v>s&&p+m>l&&s+a.outerHeight()>h&&l+a.outerWidth()>p&&(c=e("",{"class":t.wait}).appendTo(a),r.hide().on("load",function(){e(this).fadeIn().siblings("."+t.wait).remove()}).attr({src:d}).removeClass(t.loadClass),w++))})}}})},e.fn.loadImages.defaults={selector:".load",loadClass:"toload",wait:"wait",d:80}}(jQuery); !function(e){e.fn.addScroll=function(t){return t=e.extend({},e.fn.addScroll.defaults,t),this.each(function(){var n,o,a,i,r,s,c,u,d,l,h,p,f,m,v,g,M=e(this),T=M.parent(),b=0;M.css({position:"absolute",width:T.width-20}),T.css({overflow:"hidden"}),"absolute"!==T.css("position")&&T.css({position:"relative"}),o=e("
",{"class":t.upbtn}).appendTo(T),a=e("
",{"class":t.dnbtn}).appendTo(T),i=e("
",{"class":t.scbar}).appendTo(T),r=e("
").appendTo(i),s=o.add(a).add(i),s.hide();var y=function(){c=M.height(),u=T.height()},w=function(){return M.position().top},O=function(e){return Math.round((i.height()-6)*-(null==e?w():e)/c)+3},D=function(){return Math.max(Math.round((i.height()-6)*u/c),t.dragMinSize)},I=function(e){null==e&&(e=w()),o.css({opacity:e?1:t.disabledOpacity}),a.css({opacity:e===u-c?t.disabledOpacity:1})},E=function(){return!1},C=function(){var e=c,t=u;y(),T.scrollTop()&&(M.css({top:-T.scrollTop()}),T.scrollTop(0)),(e!==c||t!==u)&&(u>=c?(M.css({top:0}).off("selectstart",E),s.hide()):(M.position().top=c||(e=Math.minMax(u-c,Math.round(e),0),r.stop(!0,!1).animate({top:O(e)},t.speed,t.effect),M.stop(!0,!1).animate({top:e},t.speed,t.effect,function(){I(e)}),T.loadImages({top:e}))};o.on("click",function(){return U(w()+u),!1}),a.on("click",function(){return U(w()-u),!1}),i.on("click",function(e){return e.pageYr.offset().top+r.height()&&U(w()-u),!1}),t.enableMouseWheel&&M.on("mousewheel",function(e,n){return n&&(clearTimeout(d),r.stop(!0,!0),M.stop(!0,!0),U(w()+t.wheelIncr*(0>n?-1:1))),!1});var k=function(e){return e.preventDefault(),r.css({top:Math.minMax(2,Math.round(e.pageY-r.data("my")),i.height()-r.height()-2)}),H(),!1},x=function(t){return t.preventDefault(),e(document).off("mousemove",k).off("mouseup",x),!1};r.on("mousedown",function(t){return t.preventDefault(),e(this).data("my",Math.round(t.pageY)-e(this).position().top),e(document).on({mousemove:k,mouseup:x}),!1});var N=function(e){return b=e.touches&&e.touches.length>0?e.touches[0].clientY:e.clientY?e.clientY:b},S=function(){v+=Math.round(m/20);var e=f+v;return e>0||g>e?(clearInterval(d),void T.loadImages()):(M.css({top:e}),r.css({top:O(),height:D()}),m*=.8,void(Math.abs(m)<10&&(m=0,clearInterval(d),T.loadImages())))},Y=function(e){if(e.preventDefault(),h){var t=N(e)-h;t&&(M.data("dragOn",!0),M.css({top:Math.minMax(g,l+t,0)}),r.css({top:O(),height:D()}))}else h=N(e);return!1},L=function(t){t.preventDefault(),f=w();var n=N(t)-h,o=(new Date).getTime()-p;return m=1e3*n/o,d=setInterval(S,50),document.touchMode?(this.removeEventListener(TOUCH_MOVE,Y),this.removeEventListener(TOUCH_END,L)):e(document).off({mousemove:Y,mouseup:L}),setTimeout(function(){M.data("dragOn",!1)},20),T.loadImages(),Math.abs(n)<4&&300>o},A=function(n){var o=n.target.nodeName;return"INPUT"===o||"TEXTAREA"===o||"BUTTON"===o||"SELECT"===o?!0:(n.preventDefault(),M.data("dragOn")?(L(n),!0):n.target.scrollHeight-1>n.target.clientHeight?!0:t.dontDrag&&(e(n.target).is(t.dontDrag).length||e(n.target).parents(t.dontDrag).length)?!0:u>=c||("touchstart"===n.type||"touchmove"===n.type)&&(!n.touches||n.touches.length>1||M.is(":animated"))?!0:(r.stop(!0,!0),M.stop(!0,!0),clearInterval(d),l=w(),h=N(n),p=(new Date).getTime(),v=0,g=u-c,document.touchMode?(e(n.target).closest("a").focus(),this.addEventListener(TOUCH_MOVE,Y),this.addEventListener(TOUCH_END,L),!0):(e(document).on({mousemove:Y,mouseup:L}),!1)))};document.touchMode?M[0].addEventListener(TOUCH_START,A):M.on("mousedown",A),e(window).on("resize",function(){clearTimeout(n),n=setTimeout(C,50)}),n=setTimeout(C,10),t.refresh&&setInterval(function(){e("[role=gallery]").is(":visible")||C()},t.refresh),M.attr("role","scroll").data("dragOn",!1).on("adjust",C),s.on("selectstart",E);var K=function(){if(!M.data("dragOn")){var t=e(this).parent()===M?e(this):e(this).parent(),n=t.position().top,o=t.outerHeight(!0),a=M.position().top,i=T.height();if(!(i>M.height())){if(n+o>i-a)a=Math.max(i-o-n,i-M.height());else{if(!(-a>n))return;a=-n}U(a)}}};t.focusActive&&M.find("a").on("setactive",K);var _=function(e){return M.data("dragOn")?(e.preventDefault(),!1):!0};M.find("a").on("click",_),(e.isFunction(t.enableKeyboard)||t.enableKeyboard)&&e(document).on("keydown",function(n){if(document.activeElement&&"INPUT"===document.activeElement.nodeName||e.isFunction(t.enableKeyboard)&&!t.enableKeyboard())return!0;var o=n?n.keyCode:window.event.keyCode;switch(o){case 33:return n.preventDefault(),U(w()+u),!1;case 34:return n.preventDefault(),U(w()-u),!1}return!0})})},e.fn.addScroll.defaults={upbtn:"scrup",dnbtn:"scrdn",scbar:"scrbar",dragMinSize:10,speed:300,effect:"swing",disabledOpacity:.3,wheelIncr:50,enableKeyboard:!0,enableMouseWheel:!0,focusActive:!0,refresh:0}}(jQuery); !function(e){e.extend(jQuery.easing,{easeOutBack:function(e,t,n,a,o,i){return null==i&&(i=1.70158),a*((t=t/o-1)*t*((i+1)*t+i)+1)+n}}),e.fn.scrollThumbs=function(t){return t=e.extend({},e.fn.scrollThumbs.defaults,t),this.each(function(){var n,a,o,i,s,r,l,d,c,u=e(this),p=u.parent(),h=0,f=e("
",{"class":t.scleft}).insertAfter(p),m=e("
",{"class":t.scright}).insertAfter(p),g=function(e){e=null==e?u.position().left:e,f.css({opacity:0>e?1:t.disabledOpacity}),m.css({opacity:p.width()=o)&&e.isNumeric(n)&&(n>0?n=0:a-o>n&&(n=a-o),g(n),u.stop(!0,!1),clearInterval(d),u.animate({left:n},t.speed,t.effect),p.loadImages({left:n}))},b=function(e){return e.preventDefault(),y(),v(u.position().left+p.width()),!1},w=function(e){return e.preventDefault(),y(),v(u.position().left-p.width()),!1};f.on("click",b),m.on("click",w);var y=function(e){"number"==typeof c&&clearTimeout(c),c="undefined"!=typeof e?e:setTimeout(function(){c=!1},t.seekStay)},T=function(){if(!u.data("dragOn")&&!c){var e=u.find(t.active).closest("li");if(e.length){var n=e.position().left,a=e.outerWidth(!0),o=Math.round(a*t.headRoom),i=u.position().left,s=p.width();if(s>u.width())return;if(n>s-a-o-i)i=Math.max(s-a-o-n,s-u.width());else{if(!(-i+o>n))return;i=-n+o}v(i)}}};u.on("setactive",T);var k=function(e,t){return e.preventDefault(),t&&(u.stop(!0,!1),clearInterval(d),y(),v(u.position().left+p.width()*(0>t?-1:1))),!1};t.enableMouseWheel&&u.on("mousewheel",k),g();var x=function(e){return h=e.touches&&e.touches.length>0?e.touches[0].clientX:e.clientX?e.clientX:h},S=function(){r+=Math.round(s/20);var e=i+r;return e>0||l>e?(clearInterval(d),void 0):(u.css({left:e}),s*=.8,Math.abs(s)<10&&(s=0,clearInterval(d)),void 0)},I=function(e){if(e.preventDefault(),a){var t=x(e)-a;t&&(u.data("dragOn",!0),u.css({left:Math.minMax(l,n+t,0)}))}else a=x(e);return!1},M=function(t){t.preventDefault(),i=u.position().left;var n=x(t)-a,r=(new Date).getTime()-o;return s=1e3*n/r,d=setInterval(S,50),y(),document.touchMode?(u[0].removeEventListener(TOUCH_MOVE,I),u[0].removeEventListener(TOUCH_END,M),Math.abs(n)<10&&e(t.target).parents("a").trigger("click")):e(document).off({mousemove:I,mouseup:M}),setTimeout(function(){u.data("dragOn",!1)},20),p.loadImages(),Math.abs(n)<4&&300>r},C=function(t){return t.preventDefault(),"touchstart"!==t.type&&"touchmove"!==t.type||!(!t.touches||t.touches.length>1||u.is(":animated"))?(u.stop(!0,!1),clearInterval(d),y(!0),n=u.position().left,a=x(t),o=(new Date).getTime(),r=0,l=p.width()-u.width(),l>=0?!0:(document.touchMode?(e(t.target).closest("a").focus(),u[0].addEventListener(TOUCH_MOVE,I),u[0].addEventListener(TOUCH_END,M)):e(document).on({mousemove:I,mouseup:M}),!1)):!0};document.touchMode?u[0].addEventListener(TOUCH_START,C):u.on("mousedown",C),u.attr("role","scroll").data("dragOn",!1),u.add(f).add(m).on("selectstart",noAction),p.loadImages()})},e.fn.scrollThumbs.defaults={active:".active",scleft:"scleft",scright:"scright",seekStay:3e3,speed:1500,incr:100,effect:"easeOutBack",headRoom:.67,disabledOpacity:.3,enableMouseWheel:!0}}(jQuery); !function(e){e.extend(jQuery.easing,{easeOutCubic:function(e,t,n,i,o){return i*((t=t/o-1)*t*t+1)+n}}),e.fn.addSwipe=function(t,n,i){return i=e.extend({},e.fn.addSwipe.defaults,i),this.each(function(){var o,r,u,a,d,s,c,l,f=e(this),h=f.parent(),v=this,g=0,m=0,p=h.outerWidth(),w=h.outerHeight(),T=f.outerWidth(),O=f.outerHeight(),E=function(){p=h.outerWidth(),w=h.outerHeight()};e(window).on("resize.addswipe",function(){clearTimeout(r),r=setTimeout(E,50)});var H=function(e){return v.dragOn?!1:void e.target.trigger("click",e)},C=function(e){l?(s=(e.touches&&e.touches.length>0?e.touches[0].clientX:e.clientX)-a,f.translate(g+s,0)):(e.touches&&e.touches.length>0?(s=e.touches[0].clientX-a,c=e.touches[0].clientY-d):null!==e.clientX&&(s=e.clientX-a,c=e.clientY-d),f.translate(g+s,m+c))},_=function(){return Y(),v.removeEventListener(TOUCH_MOVE,L),v.removeEventListener(TOUCH_END,_),!1},D=function(t){return t.preventDefault(),Y(),e(document).off("mousemove.addswipe mouseup.addswipe"),!1},L=function(e){return e.preventDefault(),C(e),!1},U=function(e){return e.preventDefault(),C(e.originalEvent),!1},X=function(e){if(e.touches){if(e.touches.length>1)return!0;a=e.touches[0].clientX,d=e.touches[0].clientY}else a=e.clientX,d=e.clientY;return W(),v.addEventListener(TOUCH_MOVE,L),v.addEventListener(TOUCH_END,_),!0},M=function(e){a=e.originalEvent.clientX,d=e.originalEvent.clientY},S=function(t){return t.preventDefault(),M(t),W(),f.on("click.addswipe",H),e(document).on({"mousemove.addswipe":U,"mouseup.addswipe":D}),!1},W=function(){f.removeClass("smooth"),v.dragOn=!0,u=(new Date).getTime(),p=p||h.outerWidth(),T=f.outerWidth(),O=f.outerHeight(),l=w>=O,g=f.data("tr_x")||0,m=l?0:f.data("tr_y")||0,s=c=0,o=T>p?Math.round((T-p*(1-i.oversizeTreshold))/2):0},Y=function(){if(l&&!o&&Math.abs(s)a?e.isFunction(t)&&t.call(v):a>o&&e.isFunction(n)&&n.call(v)}return setTimeout(function(){v.dragOn=null},100),!1};f.attr("draggable","true"),document.touchMode?v.addEventListener(TOUCH_START,X):f.on({"dragstart.addswipe":S,"mousedown.addswipe":M});var b=function(){return setTimeout(function(){v.dragOn=null},20),f.translate(0,0,"smooth"),!1};f.on("dragcancel.addswipe",b);var A=function(){setTimeout(function(){v.dragOn=null},20),f.removeAttr("draggable"),document.touchMode?(v.removeEventListener(TOUCH_MOVE,L),v.removeEventListener(TOUCH_END,_),v.removeEventListener(TOUCH_START,X)):(f.off(".addswipe"),e(document).off(".addswipe"))};f.on("unswipe.addswipe",A),f.on("selectstart.addswipe",noAction)})},e.fn.addSwipe.defaults={treshold:40,oversizeTreshold:.25,margin:15}}(jQuery); !function(e){e.fn.addPlayer=function(a){if("undefined"!=typeof e.fn.jPlayer){a=e.extend({},e.fn.addPlayer.defaults,a);var t=getTranslations(e.fn.addPlayer.text),i=navigator.userAgent.indexOf("Firefox")>=0&&navigator.platform.indexOf("Mac")>=0,n={cont:"jp-cont",mini:"jp-mini",audio:"jp-audio",video:"jp-video",playerType:"jp-type-single",player:"jp-jplayer",title:"jp-title",progress:"jp-progress",controls:"jp-controls-holder",startStop:"jp-startstop",volume:"jp-volume",times:"jp-times",toggles:"jp-toggles",warning:"jp-warning",videoPlay:"jp-video-play",play:"jp-play",pause:"jp-pause",stop:"jp-stop",seekBar:"jp-seek-bar",playBar:"jp-play-bar",mute:"jp-mute",unmute:"jp-unmute",volumeBar:"jp-volume-bar",volumeBarValue:"jp-volume-bar-value",volumeMax:"jp-volume-max",currentTime:"jp-current-time",duration:"jp-duration",fullScreen:"jp-full-screen",restoreScreen:"jp-restore-screen",repeat:"jp-repeat",repeatOff:"jp-repeat-off",gui:"jp-gui",noSolution:"jp-no-solution",playing:"playing"},o=function(e){var a,i=function(e){return''+t[e]+""};return a='
',a+='
',a+='
'+i("play")+i("pause")+i("stop")+"
",a+='
'+i("mute")+i("unmute")+'
',a+='
',a+='
'+(e?"":i("fullScreen")+i("restoreScreen"))+i("repeat")+i("repeatOff")+"
",a+="
"},r=function(e){var a=e.css("paddingTop"),t=e.css("paddingLeft"),i=e.css("paddingRight"),o=e.css("paddingBottom");e.find("."+n.gui).css({bottom:o,left:t,right:i}),e.find("."+n.title).css({top:a,left:t,right:i})},s=function(a,i,s){"absolute"!==a.css("position")&&"fixed"!==a.css("position")&&a.css({position:"relative"}),a.css({overflow:"hidden"});var l,d=e('
').appendTo(a);return d=e('
').appendTo(d),l=e('
').appendTo(d),d.append('"),i&&d.append('
  • '+i+"
"),d.append('
'+o(s)+"
"),!document.touchMode&&a.hasClass(n.fullScreen)&&d.find("."+n.gui).hide(),a.append('
'+t.unsupportedMediaFormat+"
"),r(a),l},l=function(){var a;return(a=e(this).data("media"))&&a.jPlayer("pause"),!1},d=function(){var a;return(a=e(this).data("media"))&&a.jPlayer("destroy"),e(window).off("keydown",f),!1},p=function(){var a;return(a=e(this).data("media"))&&a.jPlayer("stop"),!1},u=function(){var a;return(a=e(this).data("media"))&&a.jPlayer("play"),!1},c=e(this).eq(0),f=function(e){if(document.activeElement&&("INPUT"===document.activeElement.nodeName||"TEXTAREA"===document.activeElement.nodeName))return!0;var a=e?e.keyCode:window.event.keyCode;return 32===a?(c.find("."+n.player).jPlayer(c.data(n.playing)?"pause":"play"),!1):!0},v=function(e){return a.hasOwnProperty("audio")?a.audio:".mp3.m4a.f4a.rtmpa".indexOf(e.getExt())>0},m=function(){return e("."+n.cont).each(function(){return e(this).data(n.playing)?!0:void 0}),!1},y=function(e){var a,t=v(e)?"a":"v";switch(e.getExt()){case"mp3":a="mp3";break;case"mp4":a="m4"+t;break;case"ogg":a="og"+t;break;case"webm":a="webm"+t;break;case"flv":case"f4a":case"f4v":a="fl"+t;break;case"rtmp":a="rtmp"+t;break;default:a=null}return a};return this.each(function(){var o,r,c,h,g,j,w,P,b,k,S=e(this),T=a.folder||"",x=0;if(a.elem){b=e(this).find(a.elem),w=b.attr("title");var F=b.find("img:first");F.length?(j=F.data("link"),P=F.data("poster")||F.attr("src"),w||(w=F.attr("alt"))):(j=b.attr("href"),P=w="")}else j=a.src,w=a.title||"",P=a.poster||"",b=e('"+(P?'':"")+"").appendTo(e(this));if(LOCAL){var O=e('
'+t.localFlashWarning+"
").appendTo(b);b.css("position","relative"),O.hide(),setTimeout(function(){O.fadeIn()},2e3)}if(j){c=a.auto&&!a.lowPriority&&!m(),j.indexOf("::")>0?(j=j.split("::"),o=v(j[0]),r=y(j[0])):(o=v(j),r=y(j)),this.id||(this.id=a.id+e.fn.addPlayer.id++),g="#"+this.id,e(S).addClass(n.cont),a.mini&&e(S).addClass(n.mini),k=s(S,a.showTitle?w:"",o);var I=function(){var t,i,n={},o=a.relativeUrl?"":location.href.substring(0,location.href.lastIndexOf("/")+1);return e.isArray(j)?(x>=j.length&&(x=0),t=j[x]):(t=j,P&&(n.poster=(o+T+P).fixUrl())),i=y(t),n[i]=(o+T+t).fixUrl(),n},M=function(){if(e.cookie){var a=S.find("."+n.currentTime).text().split(":");a=a.length>2?60*(60*parseInt(a[0],10)+parseInt(a[1],10))+parseInt(a[2],10):60*parseInt(a[0],10)+parseInt(a[1],10),e.cookie("jp_"+S[0].id,(S.data(n.playing)?"1":"0")+"::"+a+"::"+k.jPlayer("option","volume").toString().substring(0,5)+(x?"::"+x:""))}},B=function(a){if(e.cookie){var t=e.cookie("jp_"+a[0].id);if(t)return t=t.split("::"),{playing:"1"===t[0],time:parseInt(t[1]||0,10),volume:parseFloat(t[2]||.8),curr:parseInt(t[3]||0,10)}}return null};h=!o&&!i,S.on("setEndedFn",function(t,i){a.ended=i&&e.isFunction(i)?i:null}),k.jPlayer({cssSelectorAncestor:g,backgroundColor:a.backgroundColor,supplied:r,swfPath:a.resPath+"/"+a.swf,solution:a.solution,size:{width:"100%",height:"100%"},fullWindow:!o&&a.fullScreen,preload:"auto",loop:a.loop,volume:a.volume,autohide:{restored:h,full:h},ready:function(){var t=e(this),i=a.saveStatus?B(S):null;S.data("media",t),a.saveStatus&&(e(window).on("unload",M),i&&(x=i.curr));var n=I();b&&b.hide(),t.jPlayer("setMedia",n),S.on({play:u,pause:l,stop:p,destroy:d}),a.saveStatus&&i?(t.jPlayer("volume",i.volume),t.jPlayer(i.playing?"play":"pause",i.time)):a.auto&&!document.touchMode&&t.jPlayer("play"),a.lowPriority||e(window).on("keydown",f)},play:function(){e(this).jPlayer("pauseOthers"),S.data(n.playing,!0),document.touchMode&&settimeout(function(){S.find("."+n.title).fadeOut(1e3)},600),e.isFunction(a.play)&&a.play.call()},pause:function(){S.data(n.playing,!1),e.isFunction(a.pause)&&a.pause.call()},stop:function(){S.data(n.playing,!1),document.touchMode&&S.find("."+n.title).fadeIn(300),e.isFunction(a.stop)&&a.stop.call()},ended:function(){e.isArray(j)&&(x+1Unsupported media formatYou might need to either update your browser or the Flash plugin or use another browser to play this media.'}}(jQuery); !function(e){e.getLatLng=function(e){return"undefined"==typeof google||null==e?null:"string"==typeof e?(e=e.split(","),new google.maps.LatLng(parseFloat(e[0])||0,parseFloat(e[e.length-1])||0)):new google.maps.LatLng(e[0],e[1])},e.fn.addMap=function(t){if("undefined"==typeof google||!google.maps)return this;t=e.extend({},e.fn.addMap.defaults,t);var n=t.resPath+"/marker-curr.png",o=t.resPath+"/marker.png",i=new google.maps.MarkerImage(n,new google.maps.Size(17,24),new google.maps.Point(0,0),new google.maps.Point(8,24)),a=new google.maps.MarkerImage(o,new google.maps.Size(17,24),new google.maps.Point(0,0),new google.maps.Point(8,24)),r=new google.maps.MarkerImage(t.resPath+"/marker-shadow.png",new google.maps.Size(24,24),new google.maps.Point(0,0),new google.maps.Point(8,24));return this.each(function(){var s,l,d,c,u,p,h,f=e(this),g=[];f.readData(t,"type,zoom,map,label,resPath,markers");var m=function(){f&&f.data("fresh")&&(d&&f.is(":visible")&&!f.parents(":hidden").length&&f.width()&&f.height()?(clearTimeout(u),f.width(f.parent().width()),google.maps.event.trigger(d,"resize"),d.setCenter(s),f.data("fresh",!1)):u=setTimeout(m,200))};if(c&&c.length&&c.remove(),c=e("
").css({position:"absolute",top:"-9000px",width:f.width(),height:f.height()}).appendTo("body"),f.data("fresh",!0).on({adjust:m,destroy:function(){d.getParentNode().removeChild(d),e(window).off("resize",m)}}),t.markers&&t.markers.length&&null!=t.curr)s=t.markers[t.curr].map;else{if(!t.map)return;s=e.getLatLng(t.map),l=t.label}null!==(p=e.cookie("mapType"))&&(t.type=p),null!==(p=e.cookie("mapZoom"))&&(t.zoom=parseInt(p,10)||t.zoom),setTimeout(function(){var u,p=new google.maps.Map(c[0],{zoom:t.zoom,center:s,scrollwheel:!1,mapTypeId:t.type.toLowerCase()});if(google.maps.event.addListener(p,"maptypeid_changed",function(){e.cookie("mapType",e.fn.addMap.defaults.type=p.getMapTypeId(),3600)}),google.maps.event.addListener(p,"zoom_changed",function(){e.cookie("mapZoom",e.fn.addMap.defaults.zoom=p.getZoom(),3600)}),t.markers&&t.markers.length>1){var m,v,w,b=Math.max(t.curr-t.range,0),y=Math.min(t.curr+t.range,t.markers.length),T=function(){t.click.call(this)};for(m=b;y>m;m++)w=t.markers[m],v={position:w.map,map:p,title:w.label,icon:m===t.curr?i:a,shadow:r,zIndex:m===t.curr?999:m},u=new google.maps.Marker(v),e.isFunction(t.click)&&w.link&&(u.link=w.link,google.maps.event.addListener(u,"click",T)),g.push(u)}else u=new google.maps.Marker(e.extend({position:s,map:p,title:l},n));c.css({top:0}).appendTo(f),d=p,h=t.curr,f.on("setactive",function(t,i){e.isArray(g)&&g.length&&(h>=b&&(g[h].setIcon(o),g[h].setZIndex(h)),"undefined"!=typeof i&&i>=b&&i1?e.fn.addShop.st.targetCart:e.fn.addShop.st.target,b=function(e){var t,n,o,i,a=e.split("::"),r=[];for(t=0;t1){if(i={},i.label=n[0],o=n[1].split("+"),null==(i.price=parseFloat(o[0])))continue;i.shipping=o.length>1?parseFloat(o[1]):0,i.shipping2=o.length>2?parseFloat(o[2]):i.shipping,i.text=n[0]+" = "+m+" "+i.price.toFixed(2)+(o.length>1?"+"+i.shipping.toFixed(2):""),r.push(i)}return r},v=function(t,n){var o,i=e("",{type:i||"text"}).appendTo(t);return r.prop("name",n),o&&r.val("string"==typeof o?o.stripQuote():o),a&&r.prop(a,!0),r},w=function(e){return typeof e===s?x(g>1?c.discountRateCart:c.discountRate):void(g>1?x(c.discountRateCart,e):(x(c.discountRate,e),x(c.discountRate+"2",e)))},C=function(e){return typeof e===s?x(g>1?c.discountAmountCart:c.discountAmount):void x(g>1?c.discountAmountCart:c.discountAmount,e)},S=function(e,t){var n=i.children("[name="+c.option+"]");if(n&&n.length){var o=n.val().replace(/(\s\(CC\:.+\))$/,"");n.val(o+" (CC:"+e+(typeof t!==s?"="+t:"")+")")}},x=function(e,t){var n=i.children("[name="+e+"]");return typeof t===s?n&&n.length?parseFloat(n.val()):null:void(null==t?n.remove():n&&n.length?n.val(t):_(i,e,t,"hidden"))},T=function(){var e=o.children("select").eq(0);return e&&e.length?e.prop("selectedIndex"):0},R=function(){var t=T(),n=o.children(".discount").eq(0),i=o.children(".total").eq(0),a=o.children("[name=copies]").val()||1,r=p[t].price,d=p[t].shipping+(a-1)*p[t].shipping2,s=C(),c=w();n.length||(n=e("",{"class":"discount"}).insertAfter(o.children("select"))),s&&s>0?(n.show().html("- "+m+" "+s.toFixed(2)),i.html(m+" "+(g*(a*r+d)-s).toFixed(2)+"")):c&&c>0?(n.show().text("-"+c+"%"),i.html(m+" "+(g*(a*r*(100-c)/100+d)).toFixed(2)+"")):(n.hide(),i.html(m+" "+(g*(a*r+d)).toFixed(2)+""))},F=function(){var e=T(),t=o.children("[name=copies]").val()||1,i=p[e].price,a=p[e].shipping,r=p[e].shipping2;if(n.quantityCap&&t>n.quantityCap&&o.children("[name=copies]").val(t=n.quantityCap),g>1)for(var d=1;g>=d;d++)x(c.price+"_"+d,i),x(c.copies+"_"+d,t),x(c.shipping+"_"+d,a?a:null),x(c.shipping2+"_"+d,r?r:null);else x(c.price,i),x(c.copies,t),x(c.shipping,a?a:null),x(c.shipping2,r?r:null);x(c.option,p[e].text),R()},U=function(t){var i,a,d=new Date,s=t===!0;if(n.coupons&&(i=o.children("[name=coupon]"))&&(a=i.val().trim()).length){var c,u,h,f=xDecrypt(n.coupons).split("::");for(c=0;c1){if(h=parseFloat(u[1]),.01>h)continue;if(u.length>2){var y,b=u[2].split(/-|:|\//);if(b.length<2&&(b[1]=1),b.length<3&&(b[2]=1),y=new Date(parseInt(b[0]),parseInt(b[1]),parseInt(b[2])),d>y)return e("body").addModal(e("
",{html:l.expired.replace("{0}",a)}),{type:"error"}),!1}if("%"===u[1].charAt(u[1].length-1)){if(h>99||1>h)continue;var v=w();v>h?s&&e("body").addModal(e("
",{html:l.lowerThanCurrent.replace("{0}",v+"%")}),{type:"warning"}):(s&&e("body").addModal(e("
",{html:l.accepted.replace("{0}",h+"%")}),{title:l.success}),w(h),S(a,h+"%"),e.cookie("discountRate",a,86400))}else if(e.cookie("discount_"+a))s&&e("body").addModal(e("
",{html:l.reclaimed}),{type:"warning"}),C(null),r&&(w(r),S(a,r+"%"));else{var v=w(),_=p[T()].price,x=C()||(v>0?g*_*v/100:0);h>_*g?s&&e("body").addModal(e("
",{html:l.higherThanPrice.replace("{0}",m+" "+h)}),{type:"warning"}):x>h?s&&e("body").addModal(e("
",{html:l.lowerThanCurrent.replace("{0}",m+" "+x.toFixed(2))}),{type:"warning"}):(s?e("body").addModal(e("
",{html:l.accepted.replace("{0}",m+" "+h)}),{title:l.success}):(e.cookie("discount_"+a,h,86400),r=w(),w(null)),C(h),S(a,n.currency+" "+h))}return R(),!0}return e("body").addModal(e("
",{html:l.noSuch}),{type:"error"}),!1}return!0};if(p=b(n.options),p.length){if(o=e("
",{name:"shopping",method:"post"}).appendTo(f),g>1&&o.append(e("",{"class":"count",html:""+g+" ×"})),d=v(o,p),d.on("change",F),n.hasOwnProperty("discount")||(n.discount=e.fn.addShop.defaults.discount||0),"-"===n.discount&&(n.discount=0),1!==n.quantityCap&&(o.append("×"),d=_(o,"copies",1),d.addClass("copies").on("change",F)),o.append("="),o.append(e("",{"class":"total"})),n.coupons){o.append(e("",{type:"text",name:"coupon","class":"coupon",placeholder:l.couponCode}));var q=e("",{html:" ","class":"redeem"}).on("click",function(e){return e.preventDefault(),U(!0),!1});document.touchMode||q.addTooltip(l.redeem),o.append(q)}if(i=e("",{name:c.form,target:y,action:h+"cgi-bin/webscr/",method:"post"}).appendTo(f),x("cmd","_cart"),x("charset","utf-8"),x("lc",n.locale),x(c.seller,u),x(c.currency,n.currency),x(c.shopUrl,n.continueUrl||decodeURIComponent(window.location.href)),null!=n.handling&&e.isNumeric(n.handling)&&x(c.handlingCart,n.handling),x(c.option,p[0].label),n.discount&&n.discount<100&&w(n.discount),g>1){x("upload",1),x(c.name,g+" "+l.items);var A;t.each(function(t){d=e(this).find("img:first"),A=d.data("src")||d.attr("src")||"",x(c.name+"_"+(t+1),decodeURIComponent(A.getFile()+" ["+n.path+A.getDir().replace("thumbs/","")+"]"))})}else x("add",1),d=t.eq(0).find("img:first"),x(c.name,decodeURIComponent((d.data("src")||d.attr("src")||"").getFile()+" ["+n.path+"]"));if(F(),i.append(e("