if(typeof FlixjQ=='undefined'){(function(e,t){function _(e){var t=M[e]={};v.each(e.split(y),function(e,n){t[n]=true});return t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r==="string"){try{r=r==="true"?true:r==="false"?false:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else{r=t}}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t])){continue}if(t!=="toJSON"){return false}}return true}function et(){return false}function tt(){return true}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do{e=e[t]}while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t)){return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n})}else if(t.nodeType){return v.grep(e,function(e,r){return e===t===n})}else if(typeof t==="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t)){return v.filter(t,r,!n)}else{t=v.filter(t,r)}}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement){while(t.length){n.createElement(t.pop())}}return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e)){return}var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle;o.events={};for(n in u){for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement){Ht=(Pt.contentWindow||Pt.contentDocument).document;Ht.write("");Ht.close()}t=Ht.body.appendChild(Ht.createElement(e));n=Dt(t,"display");i.body.removeChild(Pt)}Wt[e]=n;return n}function fn(e,t,n,r){var i;if(v.isArray(t)){v.each(t,function(t,i){if(n||sn.test(e)){r(e,i)}else{fn(e+"["+(typeof i==="object"?t:"")+"]",i,n,r)}})}else if(!n&&v.type(t)==="object"){for(i in t){fn(e+"["+i+"]",t[i],n,r)}}else{r(e,t)}}function Cn(e){return function(t,n){if(typeof t!=="string"){n=t;t="*"}var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n)){for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){if(i.addEventListener){i.removeEventListener("DOMContentLoaded",A,false);v.ready()}else if(i.readyState==="complete"){i.detachEvent("onreadystatechange",A);v.ready()}},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e){return this}if(e.nodeType){this.context=this[0]=e;this.length=1;return this}if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){s=[null,e,null]}else{s=w.exec(e)}if(s&&(s[1]||!n)){if(s[1]){n=n instanceof v?n[0]:n;a=n&&n.nodeType?n.ownerDocument||n:i;e=v.parseHTML(s[1],a,true);if(E.test(s[1])&&v.isPlainObject(n)){this.attr.call(e,n,true)}return v.merge(this,e)}else{o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2]){return r.find(e)}this.length=1;this[0]=o}this.context=i;this.selector=e;return this}}else if(!n||n.FlixjQ){return(n||r).find(e)}else{return this.constructor(n).find(e)}}else if(v.isFunction(e)){return r.ready(e)}if(e.selector!==t){this.selector=e.selector;this.context=e.context}return v.makeArray(e,this)},selector:"",FlixjQ:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);r.prevObject=this;r.context=this.context;if(t==="find"){r.selector=this.selector+(this.selector?" ":"")+n}else if(t){r.selector=this.selector+"."+t+"("+n+")"}return r},each:function(e,t){return v.each(this,e,t)},ready:function(e){v.ready.promise().done(e);return this},eq:function(e){e=+e;return e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice};v.fn.init.prototype=v.fn;v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=false;if(typeof u==="boolean"){l=u;u=arguments[1]||{};a=2}if(typeof u!=="object"&&!v.isFunction(u)){u={}}if(f===a){u=this;--a}for(;a0){return}r.resolveWith(i,[v]);if(v.fn.trigger){v(i).trigger("ready").off("ready")}},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e)){return false}try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf")){return false}}catch(n){return false}var r;for(r in e){}return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e){return false}return true},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;if(!e||typeof e!=="string"){return null}if(typeof t==="boolean"){n=t;t=0}t=t||i;if(r=E.exec(e)){return[t.createElement(r[1])]}r=v.buildFragment([e],t,n?null:[]);return v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)},parseJSON:function(t){if(!t||typeof t!=="string"){return null}t=v.trim(t);if(e.JSON&&e.JSON.parse){return e.JSON.parse(t)}if(S.test(t.replace(T,"@").replace(N,"]").replace(x,""))){return(new Function("return "+t))()}v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!=="string"){return null}try{if(e.DOMParser){i=new DOMParser;r=i.parseFromString(n,"text/xml")}else{r=new ActiveXObject("Microsoft.XMLDOM");r.async="false";r.loadXML(n)}}catch(s){r=t}if(!r||!r.documentElement||r.getElementsByTagName("parsererror").length){v.error("Invalid XML: "+n)}return r},noop:function(){},globalEval:function(t){if(t&&g.test(t)){(e.execScript||function(t){e["eval"].call(e,t)})(t)}},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e){if(n.apply(e[i],r)===false){break}}}else{for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f){for(;u-1){a.splice(n,1);if(i){if(n<=o){o--}if(n<=u){u--}}}})}return this},has:function(e){return v.inArray(e,a)>-1},empty:function(){a=[];return this},disable:function(){a=f=n=t;return this},disabled:function(){return!a},lock:function(){f=t;if(!n){c.disable()}return this},locked:function(){return!f},fireWith:function(e,t){t=t||[];t=[e,t.slice?t.slice():t];if(a&&(!r||f)){if(i){f.push(t)}else{l(t)}}return this},fire:function(){c.fireWith(this,arguments);return this},fired:function(){return!!r}};return c};v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){i.done(arguments).fail(arguments);return this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);if(e&&v.isFunction(e.promise)){e.promise().done(n.resolve).fail(n.reject).progress(n.notify)}else{n[s+"With"](this===i?n:this,[e])}}:n[s])});e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};r.pipe=r.then;v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add;if(u){o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock)}i[s[0]]=o.fire;i[s[0]+"With"]=o.fireWith});r.promise(i);if(e){e.call(i,i)}return i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this;n[e]=arguments.length>1?l.call(arguments):r;if(n===u){s.notifyWith(t,n)}else if(!--i){s.resolveWith(t,n)}}},u,a,f;if(r>1){u=new Array(r);a=new Array(r);f=new Array(r);for(;t
a";n=p.getElementsByTagName("*");r=p.getElementsByTagName("a")[0];r.style.cssText="top:1px;float:left;opacity:.5";if(!n||!n.length){return{}}s=i.createElement("select");o=s.appendChild(i.createElement("option"));u=p.getElementsByTagName("input")[0];t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};u.checked=true;t.noCloneChecked=u.cloneNode(true).checked;s.disabled=true;t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=false}if(!p.addEventListener&&p.attachEvent&&p.fireEvent){p.attachEvent("onclick",h=function(){t.noCloneEvent=false});p.cloneNode(true).fireEvent("onclick");p.detachEvent("onclick",h)}u=i.createElement("input");u.value="t";u.setAttribute("type","radio");t.radioValue=u.value==="t";u.setAttribute("checked","checked");u.setAttribute("name","t");p.appendChild(u);a=i.createDocumentFragment();a.appendChild(p.lastChild);t.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;t.appendChecked=u.checked;a.removeChild(u);a.appendChild(p);if(p.attachEvent){for(l in{submit:true,change:true,focusin:true}){f="on"+l;c=f in p;if(!c){p.setAttribute(f,"return;");c=typeof p[f]==="function"}t[l+"Bubbles"]=c}}v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a){return}n=i.createElement("div");n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";a.insertBefore(n,a.firstChild);r=i.createElement("div");n.appendChild(r);r.innerHTML="
t
";s=r.getElementsByTagName("td");s[0].style.cssText="padding:0;margin:0;border:0;display:none";c=s[0].offsetHeight===0;s[0].style.display="";s[1].style.display="none";t.reliableHiddenOffsets=c&&s[0].offsetHeight===0;r.innerHTML="";r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";t.boxSizing=r.offsetWidth===4;t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1;if(e.getComputedStyle){t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%";t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px";o=i.createElement("div");o.style.cssText=r.style.cssText=u;o.style.marginRight=o.style.width="0";r.style.width="1px";r.appendChild(o);t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)}if(typeof r.style.zoom!=="undefined"){r.innerHTML="";r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1";t.inlineBlockNeedsLayout=r.offsetWidth===3;r.style.display="block";r.style.overflow="visible";r.innerHTML="
";r.firstChild.style.width="5px";t.shrinkWrapBlocks=r.offsetWidth!==3;n.style.zoom=1}a.removeChild(n);n=r=s=o=null});a.removeChild(p);n=r=s=o=u=a=p=null;return t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"FlixjQ"+(v.fn.FlixjQ+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?v.cache[e[v.expando]]:e[v.expando];return!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e)){return}var s,o,u=v.expando,a=typeof n==="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t){return}if(!c){if(f){e[u]=c=v.deletedIds.pop()||v.guid++}else{c=u}}if(!l[c]){l[c]={};if(!f){l[c].toJSON=v.noop}}if(typeof n==="object"||typeof n==="function"){if(i){l[c]=v.extend(l[c],n)}else{l[c].data=v.extend(l[c].data,n)}}s=l[c];if(!i){if(!s.data){s.data={}}s=s.data}if(r!==t){s[v.camelCase(n)]=r}if(a){o=s[n];if(o==null){o=s[v.camelCase(n)]}}else{o=s}return o},removeData:function(e,t,n){if(!v.acceptData(e)){return}var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a]){return}if(t){r=n?u[a]:u[a].data;if(r){if(!v.isArray(t)){if(t in r){t=[t]}else{t=v.camelCase(t);if(t in r){t=[t]}else{t=t.split(" ")}}}for(i=0,s=t.length;i1,null,false)},removeData:function(e){return this.each(function(){v.removeData(this,e)})}});v.extend({queue:function(e,t,n){var r;if(e){t=(t||"fx")+"queue";r=v._data(e,t);if(n){if(!r||v.isArray(n)){r=v._data(e,t,v.makeArray(n))}else{r.push(n)}}return r||[]}},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};if(i==="inprogress"){i=n.shift();r--}if(i){if(t==="fx"){n.unshift("inprogress")}delete s.stop;i.call(e,o,s)}if(!r&&s){s.empty.fire()}},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",true);v.removeData(e,n,true)})})}});v.fn.extend({queue:function(e,n){var r=2;if(typeof e!=="string"){n=e;e="fx";r--}if(arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){e=v.propFix[e]||e;return this.each(function(){try{this[e]=t;delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e)){return this.each(function(t){v(this).addClass(e.call(this,t,this.className))})}if(e&&typeof e==="string"){t=e.split(y);for(n=0,r=this.length;n=0){r=r.replace(" "+n[s]+" "," ")}}i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t==="boolean";if(v.isFunction(e)){return this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)})}return this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++]){u=r?u:!o.hasClass(i);o[u?"addClass":"removeClass"](i)}}else if(n==="undefined"||n==="boolean"){if(this.className){v._data(this,"__className__",this.className)}this.className=this.className||e===false?"":v._data(this,"__className__")||""}})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0){return true}}return false},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s){n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()];if(n&&"get"in n&&(r=n.get(s,"value"))!==t){return r}r=s.value;return typeof r==="string"?r.replace(R,""):r==null?"":r}return}i=v.isFunction(e);return this.each(function(r){var s,o=v(this);if(this.nodeType!==1){return}if(i){s=e.call(this,r,o.val())}else{s=e}if(s==null){s=""}else if(typeof s==="number"){s+=""}else if(v.isArray(s)){s=v.map(s,function(e){return e==null?"":e+""})}n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t){this.value=s}})}});v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,s=e.selectedIndex,o=[],u=e.options,a=e.type==="select-one";if(s<0){return null}n=a?s:0;r=a?s+1:u.length;for(;n=0});if(!n.length){e.selectedIndex=-1}return n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2){return}if(i&&v.isFunction(v.fn[n])){return v(e)[n](r)}if(typeof e.getAttribute==="undefined"){return v.prop(e,n,r)}u=a!==1||!v.isXMLDoc(e);if(u){n=n.toLowerCase();o=v.attrHooks[n]||(X.test(n)?F:j)}if(r!==t){if(r===null){v.removeAttr(e,n);return}else if(o&&"set"in o&&u&&(s=o.set(e,r,n))!==t){return s}else{e.setAttribute(n,r+"");return r}}else if(o&&"get"in o&&u&&(s=o.get(e,n))!==null){return s}else{s=e.getAttribute(n);return s===null?t:s}},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e))){return}if(r.handler){d=r;r=d.handler;s=d.selector}if(!r.guid){r.guid=v.guid++}a=o.events;if(!a){o.events=a={}}u=o.handle;if(!u){o.handle=u=function(e){return typeof v!=="undefined"&&(!e||v.event.triggered!==e.type)?v.event.dispatch.apply(u.elem,arguments):t};u.elem=e}n=v.trim(Z(n)).split(" ");for(f=0;f=0){y=y.slice(0,-1);a=true}if(y.indexOf(".")>=0){b=y.split(".");y=b.shift();b.sort()}if((!s||v.event.customEvent[y])&&!v.event.global[y]){return}n=typeof n==="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y);n.type=y;n.isTrigger=true;n.exclusive=a;n.namespace=b.join(".");n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u){if(u[f].events&&u[f].events[y]){v.event.trigger(n,r,u[f].handle.elem,true)}}return}n.result=t;if(!n.target){n.target=s}r=r!=null?v.makeArray(r):[];r.unshift(n);p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===false){return}m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y;l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode){m.push([l,g]);c=l}if(c===(s.ownerDocument||i)){m.push([c.defaultView||c.parentWindow||e,g])}}for(f=0;f=0:v.find(h,this,null,[s]).length}if(u[h]){f.push(c)}}if(f.length){w.push({elem:s,matches:f})}}}}if(d.length>m){w.push({elem:this,matches:d.slice(m)})}for(r=0;r0?this.on(t,null,e,n):this.trigger(t)};if(Q.test(t)){v.event.fixHooks[t]=v.event.keyHooks}if(G.test(t)){v.event.fixHooks[t]=v.event.mouseHooks}});(function(e,t){function nt(e,t,n,r){n=n||[];t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!=="string"){return n}if(l!==1&&l!==9){return[]}a=o(t);if(!a&&!r){if(i=R.exec(e)){if(f=i[1]){if(l===9){s=t.getElementById(f);if(s&&s.parentNode){if(s.id===f){n.push(s);return n}}else{return n}}else{if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f){n.push(s);return n}}}else if(i[2]){S.apply(n,x.call(t.getElementsByTagName(e),0));return n}else if((f=i[3])&&Z&&t.getElementsByClassName){S.apply(n,x.call(t.getElementsByClassName(f),0));return n}}}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){t=+t;return N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--){if(n[i=s[o]]){n[i]=!(r[i]=n[i])}}})})}function ot(e,t,n){if(e===t){return n}var r=e.nextSibling;while(r){if(r===t){return-1}r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e];if(l){return t?0:l.slice(0)}u=e;a=[];f=i.preFilter;while(u){if(!n||(r=F.exec(u))){if(r){u=u.slice(r[0].length)}a.push(s=[])}n=false;if(r=I.exec(u)){s.push(n=new m(r.shift()));u=u.slice(n.length);n.type=r[0].replace(j," ")}for(o in i.filter){if((r=J[o].exec(u))&&(!f[o]||(r=f[o](r,g,true)))){s.push(n=new m(r.shift()));u=u.slice(n.length);n.type=o;n.matches=r}}if(!n){break}}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i]){if(s||t.nodeType===1){return e(t,n,r)}}}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i]){if(s||t.nodeType===1){if((a=t[d])===l){return t.sizset}else if(typeof a==="string"&&a.indexOf(f)===0){if(t.sizset){return t}}else{t[d]=l;if(e(t,r,u)){t.sizset=true;return t}t.sizset=false}}}}else{while(t=t[i]){if(s||t.nodeType===1){if(e(t,r,u)){return t}}}}}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--){if(!e[i](t,n,r)){return false}}return true}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1},u,true),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find["TAG"]("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;if(T){c=a!==g&&a;n=o.el}for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++){if(v(p,a,f)){l.push(p);break}}if(T){b=k;n=++o.el}}if(r){if(p=!v&&p){y--}if(u){x.push(p)}}}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++){v(x,m,a,f)}if(u){if(y>0){while(w--){if(!(x[w]||m[w])){m[w]=E.call(l)}}}m=lt(m)}S.apply(l,m);if(T&&!u&&m.length>0&&y+t.length>1){nt.uniqueSort(l)}}if(T){b=k;c=N}return x};o.el=0;return r?N(o):o}function dt(e,t,n,r){var i=0,s=t.length;for(;i2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find["ID"](f.matches[0].replace($,""),t,s)[0];if(!t){return n}e=e.slice(u.shift().length)}for(o=J["POS"].test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type]){break}if(c=i.find[l]){if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1);e=r.length&&u.join("");if(!e){S.apply(n,x.call(r,0));return n}break}}}}}a(e,h)(r,t,s,n,z.test(e));return n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=true,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength){delete e[t.shift()]}return e[n]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return false}finally{t=null}},Q=K(function(e){e.appendChild(g.createComment(""));return!e.getElementsByTagName("*").length}),G=K(function(e){e.innerHTML="";return e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){e.innerHTML="";if(!e.getElementsByClassName||!e.getElementsByClassName("e").length){return false}e.lastChild.className="e";return e.getElementsByClassName("e").length===2}),et=K(function(e){e.id=d+0;e.innerHTML="
";y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;r=!g.getElementById(d);y.removeChild(e);return t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++){n.push(t)}return n}}nt.matches=function(e,t){return nt(e,null,null,t)};nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0};s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent==="string"){return e.textContent}else{for(e=e.firstChild;e;e=e.nextSibling){n+=s(e)}}}else if(i===3||i===4){return e.nodeValue}}else{for(;t=e[r];r++){n+=s(t)}}return n};o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":false};u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode){if(t===e){return true}}return false};nt.attr=function(e,t){var n,r=o(e);if(!r){t=t.toLowerCase()}if(n=i.attrHandle[t]){return n(e)}if(r||Y){return e.getAttribute(t)}n=e.getAttributeNode(t);return n?typeof e[t]==="boolean"?e[t]?t:null:n.specified?n.value:null:null};i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p){return t.getElementsByTagName(e)}}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++){if(r.nodeType===1){i.push(r)}}return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p){return t.getElementsByName(name)}},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n){return t.getElementsByClassName(e)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace($,"");e[3]=(e[4]||e[5]||"").replace($,"");if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1]==="nth"){if(!e[2]){nt.error(e[0])}e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd"));e[4]=+(e[6]+e[7]||e[2]==="odd")}else if(e[2]){nt.error(e[0])}return e},PSEUDO:function(e){var t,n;if(J["CHILD"].test(e[0])){return null}if(e[3]){e[2]=e[3]}else if(t=e[4]){if(q.test(t)&&(n=ut(t,true))&&(n=t.indexOf(")",t.length-n)-t.length)){t=t.slice(0,n);e[0]=e[0].slice(0,n)}e[2]=t}return e.slice(0,3)}},filter:{ID:r?function(e){e=e.replace($,"");return function(t){return t.getAttribute("id")===e}}:function(e){e=e.replace($,"");return function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){if(e==="*"){return function(){return true}}e=e.replace($,"").toLowerCase();return function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(e){var t=k[d][e];if(!t){t=k(e,new RegExp("(^|"+O+")"+e+"("+O+"|$)"))}return function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")}},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);if(s==null){return t==="!="}if(!t){return true}s+="";return t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":false}},CHILD:function(e,t,n,r){if(e==="nth"){return function(e){var t,i,s=e.parentNode;if(n===1&&r===0){return true}if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling){if(t.nodeType===1){i++;if(e===t){break}}}}i-=r;return i===n||i%n===0&&i/n>=0}}return function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling){if(n.nodeType===1){return false}}if(e==="first"){return true}n=t;case"last":while(n=n.nextSibling){if(n.nodeType===1){return false}}return true}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);if(r[d]){return r(t)}if(r.length>1){n=[e,e,"",t];return i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--){i=T.call(e,s[o]);e[i]=!(n[i]=s[o])}}):function(e){return r(e,0,n)}}return r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--){if(s=o[u]){e[u]=!(t[u]=s)}}}):function(e,i,s){t[0]=e;r(t,null,s,n);return!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return!i.pseudos["empty"](e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4){return false}e=e.nextSibling}return true},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(e,t,n){return[0]}),last:st(function(e,t,n){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t,n){for(var r=0;r=0;){e.push(r)}return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r";if(!e.querySelectorAll("[selected]").length){i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!e.querySelectorAll(":checked").length){i.push(":checked")}});K(function(e){e.innerHTML="

";if(e.querySelectorAll("[test^='']").length){i.push("[*^$]="+O+"*(?:\"\"|'')")}e.innerHTML="";if(!e.querySelectorAll(":enabled").length){i.push(":enabled",":disabled")}});i=new RegExp(i.join("|"));vt=function(e,r,s,o,u){if(!o&&!u&&(!i||!i.test(e))){var a,f,l=true,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e);if(l=r.getAttribute("id")){c=l.replace(n,"\\$&")}else{r.setAttribute("id",c)}c="[id='"+c+"'] ";f=a.length;while(f--){a[f]=c+a[f].join("")}h=z.test(e)&&r.parentNode||r;p=a.join(",")}if(p){try{S.apply(s,x.call(h.querySelectorAll(p),0));return s}catch(v){}finally{if(!l){r.removeAttribute("id")}}}}return t(e,r,s,o,u)};if(u){K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle");s.push("!=",H)}catch(n){}});s=new RegExp(s.join("|"));nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&(!i||!i.test(n))){try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11){return a}}catch(f){}}return nt(n,null,null,[t]).length>0}}})()}i.pseudos["nth"]=i.pseudos["eq"];i.filters=mt.prototype=i.pseudos;i.setFilters=new mt;nt.attr=v.attr;v.find=nt;v.expr=nt.selectors;v.expr[":"]=v.expr.pseudos;v.unique=nt.uniqueSort;v.text=nt.getText;v.isXMLDoc=nt.isXML;v.contains=nt.contains})(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:true,contents:true,next:true,prev:true};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!=="string"){return v(e).filter(function(){for(t=0,n=u.length;t0){for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!=="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}s=s.length>1?v.unique(s):s;return this.pushStack(s,"closest",e)},index:function(e){if(!e){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof e==="string"){return v.inArray(this[0],v(e))}return v.inArray(e.FlixjQ?e[0]:e,this)},add:function(e,t){var n=typeof e==="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});v.fn.andSelf=v.fn.addBack;v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);if(!nt.test(e)){r=n}if(r&&typeof r==="string"){i=v.filter(r,i)}i=this.length>1&&!ot[e]?v.unique(i):i;if(this.length>1&&rt.test(e)){i=i.reverse()}return this.pushStack(i,e,l.call(arguments).join(","))}});v.extend({filter:function(e,t,n){if(n){e=":not("+e+")"}return t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r))){if(s.nodeType===1){i.push(s)}s=s[n]}return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling){if(e.nodeType===1&&e!==t){n.push(e)}}return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ FlixjQ\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option;Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead;Nt.th=Nt.td;if(!v.support.htmlSerialize){Nt._default=[1,"X
","
"]}v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e)){return this.each(function(t){v(this).wrapAll(e.call(this,t))})}if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1){e=e.firstChild}return e}).append(this)}return this},wrapInner:function(e){if(v.isFunction(e)){return this.each(function(t){v(this).wrapInner(e.call(this,t))})}return this.each(function(){var t=v(this),n=t.contents();if(n.length){n.wrapAll(e)}else{t.append(e)}})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){if(!v.nodeName(this,"body")){v(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11){this.insertBefore(e,this.firstChild)}})},before:function(){if(!ut(this[0])){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)})}if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0])){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)})}if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++){if(!e||v.filter(e,[n]).length){if(!t&&n.nodeType===1){v.cleanData(n.getElementsByTagName("*"));v.cleanData([n])}if(n.parentNode){n.parentNode.removeChild(n)}}}return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){if(e.nodeType===1){v.cleanData(e.getElementsByTagName("*"))}while(e.firstChild){e.removeChild(e.firstChild)}}return this},clone:function(e,t){e=e==null?false:e;t=t==null?e:t;return this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t){return n.nodeType===1?n.innerHTML.replace(ht,""):t}if(typeof e==="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f==="string"&&St.test(f)){return this.each(function(){v(this).domManip(e,n,r)})}if(v.isFunction(f)){return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t);s.domManip(e,n,r)})}if(this[0]){i=v.buildFragment(e,this,l);o=i.fragment;s=o.firstChild;if(o.childNodes.length===1){o=s}if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(true):this).get();v(o[i])[t](r);s=s.concat(r)}return this.pushStack(s,e,o.selector)}}});v.extend({clone:function(e,t,n){var r,i,s,o;if(v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")){o=e.cloneNode(true)}else{kt.innerHTML=e.outerHTML;kt.removeChild(o=kt.firstChild)}if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o);r=Mt(e);i=Mt(o);for(s=0;r[s];++s){if(i[s]){Ot(r[s],i[s])}}}if(t){At(e,o);if(n){r=Mt(e);i=Mt(o);for(s=0;r[s];++s){At(r[s],i[s])}}}r=i=null;return o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment==="undefined"){t=i}for(s=0;(u=e[s])!=null;s++){if(typeof u==="number"){u+=""}if(!u){continue}if(typeof u==="string"){if(!gt.test(u)){u=t.createTextNode(u)}else{y=y||lt(t);c=t.createElement("div");y.appendChild(c);u=u.replace(dt,"<$1>");a=(vt.exec(u)||["",""])[1].toLowerCase();f=Nt[a]||Nt._default;l=f[0];c.innerHTML=f[1]+u+f[2];while(l--){c=c.lastChild}if(!v.support.tbody){h=mt.test(u);p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o){if(v.nodeName(p[o],"tbody")&&!p[o].childNodes.length){p[o].parentNode.removeChild(p[o])}}}if(!v.support.leadingWhitespace&&pt.test(u)){c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild)}u=c.childNodes;c.parentNode.removeChild(c)}}if(u.nodeType){b.push(u)}else{v.merge(b,u)}}if(c){u=c=y=null}if(!v.support.appendChecked){for(s=0;(u=b[s])!=null;s++){if(v.nodeName(u,"input")){_t(u)}else if(typeof u.getElementsByTagName!=="undefined"){v.grep(u.getElementsByTagName("input"),_t)}}}if(n){m=function(e){if(!e.type||xt.test(e.type)){return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)}};for(s=0;(u=b[s])!=null;s++){if(!(v.nodeName(u,"script")&&m(u))){n.appendChild(u);if(typeof u.getElementsByTagName!=="undefined"){g=v.grep(v.merge([],u.getElementsByTagName("script")),m);b.splice.apply(b,[s+1,0].concat(g));s+=g.length}}}}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++){if(t||v.acceptData(i)){r=i[u];n=r&&a[r];if(n){if(n.events){for(s in n.events){if(l[s]){v.event.remove(i,s)}else{v.removeEvent(i,s,n.handle)}}}if(a[r]){delete a[r];if(f){delete i[u]}else if(i.removeAttribute){i.removeAttribute(u)}else{i[u]=null}v.deletedIds.push(r)}}}}}});(function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}};e=v.uaMatch(o.userAgent);t={};if(e.browser){t[e.browser]=true;t.version=e.version}if(t.chrome){t.webkit=true}else if(t.webkit){t.safari=true}v.browser=t;v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(true,e,this);e.superclass=this;e.fn=e.prototype=this();e.fn.constructor=e;e.sub=this.sub;e.fn.init=function(r,i){if(i&&i instanceof v&&!(i instanceof e)){i=e(i)}return v.fn.init.call(this,r,i,t)};e.fn.init.prototype=e.fn;var t=e(i);return e}})();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,true)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e==="boolean";if(v.isFunction(e)&&v.isFunction(t)){return Kt.apply(this,arguments)}return this.each(function(){if(n?e:Gt(this)){v(this).show()}else{v(this).hide()}})}});v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style){return}var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a));u=v.cssHooks[n]||v.cssHooks[a];if(r!==t){o=typeof r;if(o==="string"&&(s=zt.exec(r))){r=(s[1]+1)*s[2]+parseFloat(v.css(e,n));o="number"}if(r==null||o==="number"&&isNaN(r)){return}if(o==="number"&&!v.cssNumber[a]){r+="px"}if(!u||!("set"in u)||(r=u.set(e,r,i))!==t){try{f[n]=r}catch(l){}}}else{if(u&&"get"in u&&(s=u.get(e,false,i))!==t){return s}return f[n]}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a));u=v.cssHooks[n]||v.cssHooks[a];if(u&&"get"in u){s=u.get(e,true,i)}if(s===t){s=Dt(e,n)}if(s==="normal"&&n in Vt){s=Vt[n]}if(r||i!==t){o=parseFloat(s);return r||v.isNumeric(o)?o||0:s}return s},swap:function(e,t,n){var r,i,s={};for(i in t){s[i]=e.style[i];e.style[i]=t[i]}r=n.call(e);for(i in t){e.style[i]=s[i]}return r}});if(e.getComputedStyle){Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;if(u){r=u[n];if(r===""&&!v.contains(t.ownerDocument,t)){r=v.style(t,n)}if(Ut.test(r)&&qt.test(n)){i=a.width;s=a.minWidth;o=a.maxWidth;a.minWidth=a.maxWidth=a.width=r;r=u.width;a.width=i;a.minWidth=s;a.maxWidth=o}}return r}}else if(i.documentElement.currentStyle){Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;if(i==null&&s&&s[t]){i=s[t]}if(Ut.test(i)&&!Ft.test(t)){n=s.left;r=e.runtimeStyle&&e.runtimeStyle.left;if(r){e.runtimeStyle.left=e.currentStyle.left}s.left=t==="fontSize"?"1em":i;i=s.pixelLeft+"px";s.left=n;if(r){e.runtimeStyle.left=r}}return i===""?"auto":i}}v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n){if(e.offsetWidth===0&&It.test(Dt(e,"display"))){return v.swap(e,Xt,function(){return tn(e,t,r)})}else{return tn(e,t,r)}}},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}});if(!v.support.opacity){v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter){return}}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}}v(function(){if(!v.support.reliableMarginRight){v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t){return Dt(e,"marginRight")}})}}}if(!v.support.pixelPosition&&v.fn.position){v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}});if(v.expr&&v.expr.filters){v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"};v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}}v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n==="string"?n.split(" "):[n],s={};for(r=0;r<4;r++){s[e+$t[r]+t]=i[r]||i[r-2]||i[0]}return s}};if(!qt.test(e)){v.cssHooks[e+t].set=Zt}});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}});v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t){n=v.ajaxSettings&&v.ajaxSettings.traditional}if(v.isArray(e)||e.FlixjQ&&!v.isPlainObject(e)){v.each(e,function(){s(this.name,this.value)})}else{for(r in e){fn(r,e[r],n,s)}}return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a");cn.href="";cn=cn.href}ln=wn.exec(cn.toLowerCase())||[];v.fn.load=function(e,n,r){if(typeof e!=="string"&&En){return En.apply(this,arguments)}if(!this.length){return this}var i,s,o,u=this,a=e.indexOf(" ");if(a>=0){i=e.slice(a,e.length);e=e.slice(0,a)}if(v.isFunction(n)){r=n;n=t}else if(n&&typeof n==="object"){s="POST"}v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){if(r){u.each(r,o||[e.responseText,t,e])}}}).done(function(e){o=arguments;u.html(i?v("
").append(e.replace(yn,"")).find(i):e)});return this};v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}});v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){if(v.isFunction(r)){s=s||i;i=r;r=t}return v.ajax({type:n,url:e,data:r,success:i,dataType:s})}});v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){if(t){Ln(e,v.ajaxSettings)}else{t=e;e=v.ajaxSettings}Ln(e,t);return e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":true,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2){return}E=2;if(u){clearTimeout(u)}o=t;i=a||"";x.readyState=e>0?4:0;if(s){w=An(c,x,s)}if(e>=200&&e<300||e===304){if(c.ifModified){S=x.getResponseHeader("Last-Modified");if(S){v.lastModified[r]=S}S=x.getResponseHeader("Etag");if(S){v.etag[r]=S}}if(e===304){T="notmodified";l=true}else{l=On(c,w);T=l.state;y=l.data;b=l.error;l=!b}}else{b=T;if(!T||e){T="error";if(e<0){e=0}}}x.status=e;x.statusText=(n||T)+"";if(l){d.resolveWith(h,[y,T,x])}else{d.rejectWith(h,[x,T,b])}x.statusCode(g);g=t;if(f){p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b])}m.fireWith(h,[x,T]);if(f){p.trigger("ajaxComplete",[x,c]);if(!--v.active){v.event.trigger("ajaxStop")}}}if(typeof e==="object"){n=e;e=t}n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e;b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i)){s[n[1].toLowerCase()]=n[2]}}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){if(!E){c.mimeType=e}return this},abort:function(e){e=e||S;if(o){o.abort(e)}T(0,e);return this}};d.promise(x);x.success=x.done;x.error=x.fail;x.complete=m.add;x.statusCode=function(e){if(e){var t;if(E<2){for(t in e){g[t]=[g[t],e[t]]}}else{t=e[x.status];x.always(t)}}return this};c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//");c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y);if(c.crossDomain==null){a=wn.exec(c.url.toLowerCase())||false;c.crossDomain=a&&a.join(":")+(a[3]?"":a[1]==="http:"?80:443)!==ln.join(":")+(ln[3]?"":ln[1]==="http:"?80:443)}if(c.data&&c.processData&&typeof c.data!=="string"){c.data=v.param(c.data,c.traditional)}kn(Sn,c,n,x);if(E===2){return x}f=c.global;c.type=c.type.toUpperCase();c.hasContent=!vn.test(c.type);if(f&&v.active++===0){v.event.trigger("ajaxStart")}if(!c.hasContent){if(c.data){c.url+=(gn.test(c.url)?"&":"?")+c.data;delete c.data}r=c.url;if(c.cache===false){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}if(c.data&&c.hasContent&&c.contentType!==false||n.contentType){x.setRequestHeader("Content-Type",c.contentType)}if(c.ifModified){r=r||c.url;if(v.lastModified[r]){x.setRequestHeader("If-Modified-Since",v.lastModified[r])}if(v.etag[r]){x.setRequestHeader("If-None-Match",v.etag[r])}}x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers){x.setRequestHeader(l,c.headers[l])}if(c.beforeSend&&(c.beforeSend.call(h,x,c)===false||E===2)){return x.abort()}S="abort";for(l in{success:1,error:1,complete:1}){x[l](c[l])}o=kn(xn,c,n,x);if(!o){T(-1,"No Transport")}else{x.readyState=1;if(f){p.trigger("ajaxSend",[x,c])}if(c.async&&c.timeout>0){u=setTimeout(function(){x.abort("timeout")},c.timeout)}try{E=1;o.send(b,T)}catch(k){if(E<2){T(-1,k)}else{throw k}}}return x},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;this[e]=true;return e}});v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==false,c=l&&Dn.test(f),h=l&&!c&&typeof a==="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h){s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback;o=e[s];if(c){n.url=f.replace(Dn,"$1"+s)}else if(h){n.data=a.replace(Dn,"$1"+s)}else if(l){n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s}n.converters["script json"]=function(){if(!u){v.error(s+" was not called")}return u[0]};n.dataTypes[0]="json";e[s]=function(){u=arguments};i.always(function(){e[s]=o;if(n[s]){n.jsonpCallback=r.jsonpCallback;Mn.push(s)}if(u&&v.isFunction(o)){o(u[0])}u=o=t});return"script"}});v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){v.globalEval(e);return e}}});v.ajaxPrefilter("script",function(e){if(e.cache===t){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script");n.async="async";if(e.scriptCharset){n.charset=e.scriptCharset}n.src=e.url;n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState)){n.onload=n.onreadystatechange=null;if(r&&n.parentNode){r.removeChild(n)}n=t;if(!i){o(200,"success")}}};r.insertBefore(n,r.firstChild)},abort:function(){if(n){n.onload(0,1)}}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn){Hn[e](0,1)}}:false,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn;(function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})})(v.ajaxSettings.xhr());if(v.support.ajax){v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();if(n.username){a.open(n.type,n.url,n.async,n.username,n.password)}else{a.open(n.type,n.url,n.async)}if(n.xhrFields){for(u in n.xhrFields){a[u]=n.xhrFields[u]}}if(n.mimeType&&a.overrideMimeType){a.overrideMimeType(n.mimeType)}if(!n.crossDomain&&!i["X-Requested-With"]){i["X-Requested-With"]="XMLHttpRequest"}try{for(u in i){a.setRequestHeader(u,i[u])}}catch(f){}a.send(n.hasContent&&n.data||null);r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t;if(o){a.onreadystatechange=v.noop;if(Bn){delete Hn[o]}}if(i){if(a.readyState!==4){a.abort()}}else{u=a.status;l=a.getAllResponseHeaders();c={};h=a.responseXML;if(h&&h.documentElement){c.xml=h}try{c.text=a.responseText}catch(e){}try{f=a.statusText}catch(p){f=""}if(!u&&n.isLocal&&!n.crossDomain){u=c.text?200:404}else if(u===1223){u=204}}}}catch(d){if(!i){s(-1,d)}}if(c){s(u,f,c,l)}};if(!n.async){r()}else if(a.readyState===4){setTimeout(r,0)}else{o=++jn;if(Bn){if(!Hn){Hn={};v(e).unload(Bn)}Hn[o]=r}a.onreadystatechange=r}},abort:function(){if(r){r(0,1)}}}}})}var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2];r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,true)||n||1;do{a=a||".5";u=u/a;v.style(i.elem,e,u+r)}while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r;i.start=u;i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){if(v.isFunction(e)){t=e;e=["*"]}else{e=e.split(" ")}var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;if(a){l=i.position();c=l.top;h=l.left}else{c=parseFloat(o)||0;h=parseFloat(u)||0}if(v.isFunction(t)){t=t.call(e,n,s)}if(t.top!=null){f.top=t.top-s.top+c}if(t.left!=null){f.left=t.left-s.left+h}if("using"in t){t.using.call(e,f)}else{i.css(f)}}};v.fn.extend({position:function(){if(!this[0]){return}var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();n.top-=parseFloat(v.css(e,"marginTop"))||0;n.left-=parseFloat(v.css(e,"marginLeft"))||0;r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0;r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0;return{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static"){e=e.offsetParent}return e||i.body})}});v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t){return o?n in o?o[n]:o.document.documentElement[i]:e[i]}if(o){o.scrollTo(!r?s:v(o).scrollLeft(),r?s:v(o).scrollTop())}else{e[i]=s}},e,i,arguments.length,null)}});v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!=="boolean"),u=r||(i===true||s===true?"margin":"border");return v.access(this,function(n,r,i){var s;if(v.isWindow(n)){return n.document.documentElement["client"+e]}if(n.nodeType===9){s=n.documentElement;return Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])}return i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})});e.FlixjQ=v;if(typeof define==="function"&&define.amd&&define.amd.FlixjQ){define("FlixjQ",[],function(){return v})}})(window) FlixjQ=FlixjQ.noConflict();} if(true){(function($,undefined){var uuid=0,runiqueId=/^flix_ui-id-\d+$/;$.ui=$.ui||{};$.extend($.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});$.fn.extend({focus:(function(orig){return function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;setTimeout(function(){$(elem).focus();if(fn){fn.call(elem)}},delay)}):orig.apply(this,arguments)}})($.fn.focus),scrollParent:function(){var scrollParent;if(($.ui.ie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.css(this,"position"))&&(/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"))}).eq(0)}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"))}).eq(0)}return(/fixed/).test(this.css("position"))||!scrollParent.length?$(document):scrollParent},zIndex:function(zIndex){if(zIndex!==undefined){return this.css("zIndex",zIndex)}if(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css("position");if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);if(!isNaN(value)&&value!==0){return value}}elem=elem.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id){this.id="flix_ui-id-"+(++uuid)}})},removeUniqueId:function(){return this.each(function(){if(runiqueId.test(this.id)){$(this).removeAttr("id")}})}});function focusable(element,isTabIndexNotNaN){var map,mapName,img,nodeName=element.nodeName.toLowerCase();if("area"===nodeName){map=element.parentNode;mapName=map.name;if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){return false}img=$("img[usemap=#"+mapName+"]")[0];return!!img&&visible(img)}return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"===nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element)}function visible(element){return $.expr.filters.visible(element)&&!$(element).parents().addBack().filter(function(){return $.css(this,"visibility")==="hidden"}).length}$.extend($.expr[":"],{data:$.expr.createPseudo?$.expr.createPseudo(function(dataName){return function(elem){return!!$.data(elem,dataName)}}):function(elem,i,match){return!!$.data(elem,match[3])},focusable:function(element){return focusable(element,!isNaN($.attr(element,"tabindex")))},tabbable:function(element){var tabIndex=$.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}});if(!$("").outerWidth(1).FlixjQ){$.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.css(elem,"padding"+this))||0;if(border){size-=parseFloat($.css(elem,"border"+this+"Width"))||0}if(margin){size-=parseFloat($.css(elem,"margin"+this))||0}});return size}$.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this)}return this.each(function(){$(this).css(type,reduce(this,size)+"px")})};$.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size)}return this.each(function(){$(this).css(type,reduce(this,size,true,margin)+"px")})}})}if(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}}if($("").data("a-b","a").removeData("a-b").data("a-b")){$.fn.removeData=(function(removeData){return function(key){if(arguments.length){return removeData.call(this,$.camelCase(key))}else{return removeData.call(this)}}})($.fn.removeData)}$.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());$.support.selectstart="onselectstart"in document.createElement("div");$.fn.extend({disableSelection:function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".flix_ui-disableSelection",function(event){event.preventDefault()})},enableSelection:function(){return this.unbind(".flix_ui-disableSelection")}});$.extend($.ui,{plugin:{add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var i,set=instance.plugins[name];if(!set||!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11){return}for(i=0;i0){return true}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has}})})(FlixjQ);(function($,undefined){var uuid=0,slice=Array.prototype.slice,_cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++){try{$(elem).triggerHandler("remove")}catch(e){}}_cleanData(elems)};$.widget=function(name,base,prototype){var fullName,existingConstructor,constructor,basePrototype,proxiedPrototype={},namespace=name.split(".")[0];name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget}$.expr[":"][fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName)};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this._createWidget){return new constructor(options,element)}if(arguments.length){this._createWidget(options,element)}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(!$.isFunction(value)){proxiedPrototype[prop]=value;return}proxiedPrototype[prop]=(function(){var _super=function(){return base.prototype[prop].apply(this,arguments)},_superApply=function(args){return base.prototype[prop].apply(this,args)};return function(){var __super=this._super,__superApply=this._superApply,returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue}})()});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?basePrototype.widgetEventPrefix:name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+"."+childPrototype.widgetName,constructor,child._proto)});delete existingConstructor._childConstructors}else{base._childConstructors.push(constructor)}$.widget.bridge(name,constructor)};$.widget.extend=function(target){var input=slice.call(arguments,1),inputIndex=0,inputLength=input.length,key,value;for(;inputIndex",options:{disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=uuid++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this.bindings=$();this.hoverable=$();this.focusable=$();if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy()}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:$.noop,_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData($.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"flix_ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("flix_ui-state-hover");this.focusable.removeClass("flix_ui-state-focus")},_destroy:$.noop,widget:function(){return this.element},option:function(key,value){var options=key,parts,curOption,i;if(arguments.length===0){return $.widget.extend({},this.options)}if(typeof key==="string"){options={};parts=key.split(".");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(FlixjQ);(function($,undefined){$.widget("ui.draggable",$.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("flix_ui-draggable")}if(this.options.disabled){this.element.addClass("flix_ui-draggable-disabled")}this._mouseInit()},_destroy:function(){this.element.removeClass("flix_ui-draggable flix_ui-draggable-dragging flix_ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(".flix_ui-resizable-handle").length>0){return false}this.handle=this._getHandle(event);if(!this.handle){return false}$(o.iframeFix===true?"iframe":o.iframeFix).each(function(){$("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css($(this).offset()).appendTo("body")});return true},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this.helper.addClass("flix_ui-draggable-dragging");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css("position");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=false;$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this._setContainment();if(this._trigger("start",event)===false){this._clear();return false}this._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)}this._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event)}return true},_mouseDrag:function(event,noPropagation){if(this.offsetParentCssPosition==="fixed"){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!noPropagation){var ui=this._uiHash();if(this._trigger("drag",event,ui)===false){this._mouseUp({});return false}this.position=ui.position}if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)}return false},_mouseStop:function(event){var that=this,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event)}if(this.dropped){dropped=this.dropped;this.dropped=false}if(this.options.helper==="original"&&!$.contains(this.element[0].ownerDocument,this.element[0])){return false}if((this.options.revert==="invalid"&&!dropped)||(this.options.revert==="valid"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger("stop",event)!==false){that._clear()}})}else{if(this._trigger("stop",event)!==false){this._clear()}}return false},_mouseUp:function(event){$("div.flix_ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event)}return $.ui.mouse.prototype._mouseUp.call(this,event)},cancel:function(){if(this.helper.is(".flix_ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true},_createHelper:function(event){var o=this.options,helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!helper.parents("body").length){helper.appendTo((o.appendTo==="parent"?this.element[0].parentNode:o.appendTo))}if(helper[0]!==this.element[0]&&!(/(fixed|absolute)/).test(helper.css("position"))){helper.css("position","absolute")}return helper},_adjustOffsetFromHelper:function(obj){if(typeof obj==="string"){obj=obj.split(" ")}if($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0}}if("left"in obj){this.offset.click.left=obj.left+this.margins.left}if("right"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left}if("top"in obj){this.offset.click.top=obj.top+this.margins.top}if("bottom"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top}},_getParentOffset:function(){var po=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]===document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie)){po={top:0,left:0}}return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var p=this.element.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var over,c,ce,o=this.options;if(!o.containment){this.containment=null;return}if(o.containment==="window"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-this.helperProportions.width-this.margins.left,$(window).scrollTop()+($(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(o.containment==="document"){this.containment=[0,0,$(document).width()-this.helperProportions.width-this.margins.left,($(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(o.containment.constructor===Array){this.containment=o.containment;return}if(o.containment==="parent"){o.containment=this.helper[0].parentNode}c=$(o.containment);ce=c[0];if(!ce){return}over=c.css("overflow")!=="hidden";this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=c},_convertPositionTo:function(d,pos){if(!pos){pos=this.position}var mod=d==="absolute"?1:-1,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;if(!this.offset.scroll){this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()}}return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*mod))}},_generatePosition:function(event){var containment,co,top,left,o=this.options,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,pageX=event.pageX,pageY=event.pageY;if(!this.offset.scroll){this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()}}if(this.originalPosition){if(this.containment){if(this.relative_container){co=this.relative_container.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top]}else{containment=this.containment}if(event.pageX-this.offset.click.leftcontainment[2]){pageX=containment[2]+this.offset.click.left}if(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top}}if(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left))}},_clear:function(){this.helper.removeClass("flix_ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui]);if(type==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return $.Widget.prototype._trigger.call(this,type,event,ui)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});$.ui.plugin.add("draggable","connectToSortable",{start:function(event,ui){var inst=$(this).data("flix_ui-draggable"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});inst.sortables=[];$(o.connectToSortable).each(function(){var sortable=$.data(this,"flix_ui-sortable");if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refreshPositions();sortable._trigger("activate",event,uiSortable)}})},stop:function(event,ui){var inst=$(this).data("flix_ui-draggable"),uiSortable=$.extend({},ui,{item:inst.element});$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(event);this.instance.options.helper=this.instance.options._helper;if(inst.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",event,uiSortable)}})},drag:function(event,ui){var inst=$(this).data("flix_ui-draggable"),that=this;$.each(inst.sortables,function(){var innermostIntersecting=false,thisSortable=this;this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){innermostIntersecting=true;$.each(inst.sortables,function(){this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this!==thisSortable&&this.instance._intersectsWith(this.instance.containerCache)&&$.contains(thisSortable.instance.element[0],this.instance.element[0])){innermostIntersecting=false}return innermostIntersecting})}if(innermostIntersecting){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(that).clone().removeAttr("id").appendTo(this.instance.element).data("flix_ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0]};event.target=this.instance.currentItem[0];this.instance._mouseCapture(event,true);this.instance._mouseStart(event,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst._trigger("toSortable",event);inst.dropped=this.instance.element;inst.currentItem=inst.element;this.instance.fromOutside=inst}if(this.instance.currentItem){this.instance._mouseDrag(event)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",event,this.instance._uiHash(this.instance));this.instance._mouseStop(event,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}inst._trigger("fromSortable",event);inst.dropped=false}}})}});$.ui.plugin.add("draggable","cursor",{start:function(){var t=$("body"),o=$(this).data("flix_ui-draggable").options;if(t.css("cursor")){o._cursor=t.css("cursor")}t.css("cursor",o.cursor)},stop:function(){var o=$(this).data("flix_ui-draggable").options;if(o._cursor){$("body").css("cursor",o._cursor)}}});$.ui.plugin.add("draggable","opacity",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("flix_ui-draggable").options;if(t.css("opacity")){o._opacity=t.css("opacity")}t.css("opacity",o.opacity)},stop:function(event,ui){var o=$(this).data("flix_ui-draggable").options;if(o._opacity){$(ui.helper).css("opacity",o._opacity)}}});$.ui.plugin.add("draggable","scroll",{start:function(){var i=$(this).data("flix_ui-draggable");if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML"){i.overflowOffset=i.scrollParent.offset()}},drag:function(event){var i=$(this).data("flix_ui-draggable"),o=i.options,scrolled=false;if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML"){if(!o.axis||o.axis!=="x"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY=0;i--){l=inst.snapElements[i].left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top;b=t+inst.snapElements[i].height;if(x2r+d||y2b+d||!$.contains(inst.snapElements[i].item.ownerDocument,inst.snapElements[i].item)){if(inst.snapElements[i].snapping){(inst.options.snap.release&&inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})))}inst.snapElements[i].snapping=false;continue}if(o.snapMode!=="inner"){ts=Math.abs(t-y2)<=d;bs=Math.abs(b-y1)<=d;ls=Math.abs(l-x2)<=d;rs=Math.abs(r-x1)<=d;if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t-inst.helperProportions.height,left:0}).top-inst.margins.top}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b,left:0}).top-inst.margins.top}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l-inst.helperProportions.width}).left-inst.margins.left}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r}).left-inst.margins.left}}first=(ts||bs||ls||rs);if(o.snapMode!=="outer"){ts=Math.abs(t-y1)<=d;bs=Math.abs(b-y2)<=d;ls=Math.abs(l-x1)<=d;rs=Math.abs(r-x2)<=d;if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t,left:0}).top-inst.margins.top}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b-inst.helperProportions.height,left:0}).top-inst.margins.top}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l}).left-inst.margins.left}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r-inst.helperProportions.width}).left-inst.margins.left}}if(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){(inst.options.snap.snap&&inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})))}inst.snapElements[i].snapping=(ts||bs||ls||rs||first)}}});$.ui.plugin.add("draggable","stack",{start:function(){var min,o=this.data("flix_ui-draggable").options,group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css("zIndex"),10)||0)-(parseInt($(b).css("zIndex"),10)||0)});if(!group.length){return}min=parseInt($(group[0]).css("zIndex"),10)||0;$(group).each(function(i){$(this).css("zIndex",min+i)});this.css("zIndex",(min+group.length))}});$.ui.plugin.add("draggable","zIndex",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("flix_ui-draggable").options;if(t.css("zIndex")){o._zIndex=t.css("zIndex")}t.css("zIndex",o.zIndex)},stop:function(event,ui){var o=$(this).data("flix_ui-draggable").options;if(o._zIndex){$(ui.helper).css("zIndex",o._zIndex)}}})})(FlixjQ);(function($,undefined){function isOverAxis(x,reference,size){return(x>reference)&&(x<(reference+size))}$.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=$.isFunction(accept)?accept:function(d){return d.is(accept)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};$.ui.ddmanager.droppables[o.scope]=$.ui.ddmanager.droppables[o.scope]||[];$.ui.ddmanager.droppables[o.scope].push(this);(o.addClasses&&this.element.addClass("flix_ui-droppable"))},_destroy:function(){var i=0,drop=$.ui.ddmanager.droppables[this.options.scope];for(;i=t&&y1<=b)||(y2>=t&&y2<=b)||(y1b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1r));default:return false}};$.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(":data(flix_ui-droppable)").addBack();droppablesLoop:for(i=0;i
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("flix_ui-resizable",this.element.data("flix_ui-resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=o.handles||(!$(".flix_ui-resizable-handle",this.element).length?"e,s,se":{n:".flix_ui-resizable-n",e:".flix_ui-resizable-e",s:".flix_ui-resizable-s",w:".flix_ui-resizable-w",se:".flix_ui-resizable-se",sw:".flix_ui-resizable-sw",ne:".flix_ui-resizable-ne",nw:".flix_ui-resizable-nw"});if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}n=this.handles.split(",");this.handles={};for(i=0;i");axis.css({zIndex:o.zIndex});if("se"===handle){axis.addClass("flix_ui-icon flix_ui-icon-gripsmall-diagonal-se")}this.handles[handle]=".flix_ui-resizable-"+handle;this.element.append(axis)}}this._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;for(i in this.handles){if(this.handles[i].constructor===String){this.handles[i]=$(this.handles[i],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();padPos=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");target.css(padPos,padWrapper);this._proportionallyResize()}if(!$(this.handles[i]).length){continue}}};this._renderAxis(this.element);this._handles=$(".flix_ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!that.resizing){if(this.className){axis=this.className.match(/flix_ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}that.axis=axis&&axis[1]?axis[1]:"se"}});if(o.autoHide){this._handles.hide();$(this.element).addClass("flix_ui-resizable-autohide").mouseenter(function(){if(o.disabled){return}$(this).removeClass("flix_ui-resizable-autohide");that._handles.show()}).mouseleave(function(){if(o.disabled){return}if(!that.resizing){$(this).addClass("flix_ui-resizable-autohide");that._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var wrapper,_destroy=function(exp){$(exp).removeClass("flix_ui-resizable flix_ui-resizable-disabled flix_ui-resizable-resizing").removeData("resizable").removeData("flix_ui-resizable").unbind(".resizable").find(".flix_ui-resizable-handle").remove()};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css("position"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css("top"),left:wrapper.css("left")}).insertAfter(wrapper);wrapper.remove()}this.originalElement.css("resize",this.originalResizeStyle);_destroy(this.originalElement);return this},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target)){capture=true}}return!this.options.disabled&&capture},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,iniPos=this.element.position(),el=this.element;this.resizing=true;if((/absolute/).test(el.css("position"))){el.css({position:"absolute",top:el.css("top"),left:el.css("left")})}else if(el.is(".flix_ui-draggable")){el.css({position:"absolute",top:iniPos.top,left:iniPos.left})}this._renderProxy();curleft=num(this.helper.css("left"));curtop=num(this.helper.css("top"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalPosition={left:curleft,top:curtop};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio==="number")?o.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);cursor=$(".flix_ui-resizable-"+this.axis).css("cursor");$("body").css("cursor",cursor==="auto"?this.axis+"-resize":cursor);el.addClass("flix_ui-resizable-resizing");this._propagate("start",event);return true},_mouseDrag:function(event){var data,el=this.helper,props={},smp=this.originalMousePosition,a=this.axis,prevTop=this.position.top,prevLeft=this.position.left,prevWidth=this.size.width,prevHeight=this.size.height,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];if(!trigger){return false}data=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event)}data=this._respectSize(data,event);this._updateCache(data);this._propagate("resize",event);if(this.position.top!==prevTop){props.top=this.position.top+"px"}if(this.position.left!==prevLeft){props.left=this.position.left+"px"}if(this.size.width!==prevWidth){props.width=this.size.width+"px"}if(this.size.height!==prevHeight){props.height=this.size.height+"px"}el.css(props);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!$.isEmptyObject(props)){this._trigger("resize",event,this.ui())}return false},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&(/textarea/i).test(pr[0].nodeName);soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null;top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}))}that.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate){this._proportionallyResize()}}$("body").css("cursor","auto");this.element.removeClass("flix_ui-resizable-resizing");this._propagate("stop",event);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth/this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth/this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth}if(pMinHeight>b.minHeight){b.minHeight=pMinHeight}if(pMaxWidthdata.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw){data.width=o.minWidth}if(isminh){data.height=o.minHeight}if(ismaxw){data.width=o.maxWidth}if(ismaxh){data.height=o.maxHeight}if(isminw&&cw){data.left=dw-o.minWidth}if(ismaxw&&cw){data.left=dw-o.maxWidth}if(isminh&&ch){data.top=dh-o.minHeight}if(ismaxh&&ch){data.top=dh-o.maxHeight}if(!data.width&&!data.height&&!data.left&&data.top){data.top=null}else if(!data.width&&!data.height&&!data.top&&data.left){data.left=null}return data},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var i,j,borders,paddings,prel,element=this.helper||this.element;for(i=0;i");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++o.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(event,dx){return{width:this.originalSize.width+dx}},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx}},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy}},s:function(event,dx,dy){return{height:this.originalSize.height+dy}},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);(n!=="resize"&&this._trigger(n,event,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});$.ui.plugin.add("resizable","animate",{stop:function(event){var that=$(this).data("flix_ui-resizable"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null,top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(that.element.css("width"),10),height:parseInt(that.element.css("height"),10),top:parseInt(that.element.css("top"),10),left:parseInt(that.element.css("left"),10)};if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height})}that._updateCache(data);that._propagate("resize",event)}})}});$.ui.plugin.add("resizable","containment",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).data("flix_ui-resizable"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;if(!ce){return}that.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}}else{element=$(ce);p=[];$(["Top","Right","Left","Bottom"]).each(function(i,name){p[i]=num(element.css("padding"+name))});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=($.ui.hasScroll(ce,"left")?ce.scrollWidth:cw);height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height}}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).data("flix_ui-resizable"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement;if(ce[0]!==document&&(/static/).test(ce.css("position"))){cop=co}if(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio){that.size.height=that.size.width/that.aspectRatio}that.position.left=o.helper?co.left:0}if(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+(that._helper?(that.position.top-co.top):that.position.top);if(pRatio){that.size.width=that.size.height*that.aspectRatio}that.position.top=that._helper?co.top:0}that.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;woset=Math.abs((that._helper?that.offset.left-cop.left:(that.offset.left-cop.left))+that.sizeDiff.width);hoset=Math.abs((that._helper?that.offset.top-cop.top:(that.offset.top-co.top))+that.sizeDiff.height);isParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css("position"));if(isParent&&isOffsetRelative){woset-=that.parentData.left}if(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio){that.size.height=that.size.width/that.aspectRatio}}if(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio){that.size.width=that.size.height*that.aspectRatio}}},stop:function(){var that=$(this).data("flix_ui-resizable"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&(/relative/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})}if(that._helper&&!o.animate&&(/static/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})}}});$.ui.plugin.add("resizable","alsoResize",{start:function(){var that=$(this).data("flix_ui-resizable"),o=that.options,_store=function(exp){$(exp).each(function(){var el=$(this);el.data("flix_ui-resizable-alsoresize",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css("left"),10),top:parseInt(el.css("top"),10)})})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];_store(o.alsoResize)}else{$.each(o.alsoResize,function(exp){_store(exp)})}}else{_store(o.alsoResize)}},resize:function(event,ui){var that=$(this).data("flix_ui-resizable"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left:(that.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data("flix_ui-resizable-alsoresize"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?["width","height"]:["width","height","top","left"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null}});el.css(style)})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c)})}else{_alsoResize(o.alsoResize)}},stop:function(){$(this).removeData("resizable-alsoresize")}});$.ui.plugin.add("resizable","ghost",{start:function(){var that=$(this).data("flix_ui-resizable"),o=that.options,cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:"block",position:"relative",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass("flix_ui-resizable-ghost").addClass(typeof o.ghost==="string"?o.ghost:"");that.ghost.appendTo(that.helper)},resize:function(){var that=$(this).data("flix_ui-resizable");if(that.ghost){that.ghost.css({position:"relative",height:that.size.height,width:that.size.width})}},stop:function(){var that=$(this).data("flix_ui-resizable");if(that.ghost&&that.helper){that.helper.get(0).removeChild(that.ghost.get(0))}}});$.ui.plugin.add("resizable","grid",{resize:function(){var that=$(this).data("flix_ui-resizable"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid==="number"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/gridX)*gridX,oy=Math.round((cs.height-os.height)/gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidthnewWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth){newWidth=newWidth+gridX}if(isMinHeight){newHeight=newHeight+gridY}if(isMaxWidth){newWidth=newWidth-gridX}if(isMaxHeight){newHeight=newHeight-gridY}if(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox}else{that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy;that.position.left=op.left-ox}}})})(FlixjQ);(function($,undefined){$.widget("ui.selectable",$.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var selectees,that=this;this.element.addClass("flix_ui-selectable");this.dragged=false;this.refresh=function(){selectees=$(that.options.filter,that.element[0]);selectees.addClass("flix_ui-selectee");selectees.each(function(){var $this=$(this),pos=$this.offset();$.data(this,"selectable-item",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass("flix_ui-selected"),selecting:$this.hasClass("flix_ui-selecting"),unselecting:$this.hasClass("flix_ui-unselecting")})})};this.refresh();this.selectees=selectees.addClass("flix_ui-selectee");this._mouseInit();this.helper=$("
")},_destroy:function(){this.selectees.removeClass("flix_ui-selectee").removeData("selectable-item");this.element.removeClass("flix_ui-selectable flix_ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];if(this.options.disabled){return}this.selectees=$(options.filter,this.element[0]);this._trigger("start",event);$(options.appendTo).append(this.helper);this.helper.css({"left":event.pageX,"top":event.pageY,"width":0,"height":0});if(options.autoRefresh){this.refresh()}this.selectees.filter(".flix_ui-selected").each(function(){var selectee=$.data(this,"selectable-item");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){selectee.$element.removeClass("flix_ui-selected");selectee.selected=false;selectee.$element.addClass("flix_ui-unselecting");selectee.unselecting=true;that._trigger("unselecting",event,{unselecting:selectee.element})}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,"selectable-item");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass("flix_ui-selected");selectee.$element.removeClass(doSelect?"flix_ui-unselecting":"flix_ui-selected").addClass(doSelect?"flix_ui-selecting":"flix_ui-unselecting");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger("selecting",event,{selecting:selectee.element})}else{that._trigger("unselecting",event,{unselecting:selectee.element})}return false}})},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled){return}var tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp}if(y1>y2){tmp=y2;y2=y1;y1=tmp}this.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,"selectable-item"),hit=false;if(!selectee||selectee.element===that.element[0]){return}if(options.tolerance==="touch"){hit=(!(selectee.left>x2||selectee.righty2||selectee.bottomx1&&selectee.righty1&&selectee.bottomreference)&&(x<(reference+size))}function isFloating(item){return(/left|right/).test(item.css("float"))||(/inline|table-cell/).test(item.css("display"))}$.widget("ui.sortable",$.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var o=this.options;this.containerCache={};this.element.addClass("flix_ui-sortable");this.refresh();this.floating=this.items.length?o.axis==="x"||isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},_destroy:function(){this.element.removeClass("flix_ui-sortable flix_ui-sortable-disabled");this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--){this.items[i].item.removeData(this.widgetName+"-item")}return this},_setOption:function(key,value){if(key==="disabled"){this.options[key]=value;this.widget().toggleClass("flix_ui-sortable-disabled",!!value)}else{$.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(event,overrideHandle){var currentItem=null,validHandle=false,that=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(event);$(event.target).parents().each(function(){if($.data(this,that.widgetName+"-item")===that){currentItem=$(this);return false}});if($.data(event.target,that.widgetName+"-item")===that){currentItem=$(event.target)}if(!currentItem){return false}if(this.options.handle&&!overrideHandle){$(this.options.handle,currentItem).find("*").addBack().each(function(){if(this===event.target){validHandle=true}});if(!validHandle){return false}}this.currentItem=currentItem;this._removeCurrentsFromItems();return true},_mouseStart:function(event,overrideHandle,noActivation){var i,body,o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(event);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(o.containment){this._setContainment()}if(o.cursor&&o.cursor!=="auto"){body=this.document.find("body");this.storedCursor=body.css("cursor");body.css("cursor",o.cursor);this.storedStylesheet=$("").appendTo(body)}if(o.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",o.opacity)}if(o.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",o.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",event,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!noActivation){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("activate",event,this._uiHash(this))}}if($.ui.ddmanager){$.ui.ddmanager.current=this}if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)}this.dragging=true;this.helper.addClass("flix_ui-sortable-helper");this._mouseDrag(event);return true},_mouseDrag:function(event){var i,item,itemElement,intersection,o=this.options,scrolled=false;this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-event.pageY=0;i--){item=this.items[i];itemElement=item.item[0];intersection=this._intersectsWithPointer(item);if(!intersection){continue}if(item.instance!==this.currentContainer){continue}if(itemElement!==this.currentItem[0]&&this.placeholder[intersection===1?"next":"prev"]()[0]!==itemElement&&!$.contains(this.placeholder[0],itemElement)&&(this.options.type==="semi-dynamic"?!$.contains(this.element[0],itemElement):true)){this.direction=intersection===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(item)){this._rearrange(event,item)}else{break}this._trigger("change",event,this._uiHash());break}}this._contactContainers(event);if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)}this._trigger("sort",event,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(event,noPropagation){if(!event){return}if($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,event)}if(this.options.revert){var that=this,cur=this.placeholder.offset(),axis=this.options.axis,animation={};if(!axis||axis==="x"){animation.left=cur.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!axis||axis==="y"){animation.top=cur.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;$(this.helper).animate(animation,parseInt(this.options.revert,10)||500,function(){that._clear(event)})}else{this._clear(event,noPropagation)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("flix_ui-sortable-helper")}else{this.currentItem.show()}for(var i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("deactivate",null,this._uiHash(this));if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",null,this._uiHash(this));this.containers[i].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem)}else{$(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(o){var items=this._getItemsAsFlixjQ(o&&o.connected),str=[];o=o||{};$(items).each(function(){var res=($(o.item||this).attr(o.attribute||"id")||"").match(o.expression||(/(.+)[\-=_](.+)/));if(res){str.push((o.key||res[1]+"[]")+"="+(o.key&&o.expression?res[1]:res[2]))}});if(!str.length&&o.key){str.push(o.key+"=")}return str.join("&")},toArray:function(o){var items=this._getItemsAsFlixjQ(o&&o.connected),ret=[];o=o||{};items.each(function(){ret.push($(o.item||this).attr(o.attribute||"id")||"")});return ret},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height,l=item.left,r=l+item.width,t=item.top,b=t+item.height,dyClick=this.offset.click.top,dxClick=this.offset.click.left,isOverElementHeight=(this.options.axis==="x")||((y1+dyClick)>t&&(y1+dyClick)l&&(x1+dxClick)item[this.floating?"width":"height"])){return isOverElement}else{return(l0?"down":"up")},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;return delta!==0&&(delta>0?"right":"left")},refresh:function(event){this._refreshItems(event);this.refreshPositions();return this},_connectWith:function(){var options=this.options;return options.connectWith.constructor===String?[options.connectWith]:options.connectWith},_getItemsAsFlixjQ:function(connected){var i,j,cur,inst,items=[],queries=[],connectWith=this._connectWith();if(connectWith&&connected){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(".flix_ui-sortable-helper").not(".flix_ui-sortable-placeholder"),inst])}}}}queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".flix_ui-sortable-helper").not(".flix_ui-sortable-placeholder"),this]);for(i=queries.length-1;i>=0;i--){queries[i][0].each(function(){items.push(this)})}return $(items)},_removeCurrentsFromItems:function(){var list=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=$.grep(this.items,function(item){for(var j=0;j=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);this.containers.push(inst)}}}}for(i=queries.length-1;i>=0;i--){targetData=queries[i][1];_queries=queries[i][0];for(j=0,queriesLength=_queries.length;j=0;i--){item=this.items[i];if(item.instance!==this.currentContainer&&this.currentContainer&&item.item[0]!==this.currentItem[0]){continue}t=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;if(!fast){item.width=t.outerWidth();item.height=t.outerHeight()}p=t.offset();item.left=p.left;item.top=p.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(i=this.containers.length-1;i>=0;i--){p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}}return this},_createPlaceholder:function(that){that=that||this;var className,o=that.options;if(!o.placeholder||o.placeholder.constructor===String){className=o.placeholder;o.placeholder={element:function(){var nodeName=that.currentItem[0].nodeName.toLowerCase(),element=$("<"+nodeName+">",that.document[0]).addClass(className||that.currentItem[0].className+" flix_ui-sortable-placeholder").removeClass("flix_ui-sortable-helper");if(nodeName==="tr"){that.currentItem.children().each(function(){$("
",that.document[0]).attr("colspan",$(this).attr("colspan")||1).appendTo(element)})}else if(nodeName==="img"){element.attr("src",that.currentItem.attr("src"))}if(!className){element.css("visibility","hidden")}return element},update:function(container,p){if(className&&!o.forcePlaceholderSize){return}if(!p.height()){p.height(that.currentItem.innerHeight()-parseInt(that.currentItem.css("paddingTop")||0,10)-parseInt(that.currentItem.css("paddingBottom")||0,10))}if(!p.width()){p.width(that.currentItem.innerWidth()-parseInt(that.currentItem.css("paddingLeft")||0,10)-parseInt(that.currentItem.css("paddingRight")||0,10))}}}}that.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));that.currentItem.after(that.placeholder);o.placeholder.update(that,that.placeholder)},_contactContainers:function(event){var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,base,cur,nearBottom,floating,innermostContainer=null,innermostIndex=null;for(i=this.containers.length-1;i>=0;i--){if($.contains(this.currentItem[0],this.containers[i].element[0])){continue}if(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.contains(this.containers[i].element[0],innermostContainer.element[0])){continue}innermostContainer=this.containers[i];innermostIndex=i}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",event,this._uiHash(this));this.containers[i].containerCache.over=0}}}if(!innermostContainer){return}if(this.containers.length===1){if(!this.containers[innermostIndex].containerCache.over){this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1}}else{dist=10000;itemWithLeastDistance=null;floating=innermostContainer.floating||isFloating(this.currentItem);posProperty=floating?"left":"top";sizeProperty=floating?"width":"height";base=this.positionAbs[posProperty]+this.offset.click[posProperty];for(j=this.items.length-1;j>=0;j--){if(!$.contains(this.containers[innermostIndex].element[0],this.items[j].item[0])){continue}if(this.items[j].item[0]===this.currentItem[0]){continue}if(floating&&!isOverAxis(this.positionAbs.top+this.offset.click.top,this.items[j].top,this.items[j].height)){continue}cur=this.items[j].item.offset()[posProperty];nearBottom=false;if(Math.abs(cur-base)>Math.abs(cur+this.items[j][sizeProperty]-base)){nearBottom=true;cur+=this.items[j][sizeProperty]}if(Math.abs(cur-base)this.containment[2]){pageX=this.containment[2]+this.offset.click.left}if(event.pageY-this.offset.click.top>this.containment[3]){pageY=this.containment[3]+this.offset.click.top}}if(o.grid){top=this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1];pageY=this.containment?((top-this.offset.click.top>=this.containment[1]&&top-this.offset.click.top<=this.containment[3])?top:((top-this.offset.click.top>=this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0];pageX=this.containment?((left-this.offset.click.left>=this.containment[0]&&left-this.offset.click.left<=this.containment[2])?left:((left-this.offset.click.left>=this.containment[0])?left-o.grid[0]:left+o.grid[0])):left}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))}},_rearrange:function(event,i,a,hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var counter=this.counter;this._delay(function(){if(counter===this.counter){this.refreshPositions(!hardRefresh)}})},_clear:function(event,noPropagation){this.reverting=false;var i,delayedTriggers=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){if(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static"){this._storedCSS[i]=""}}this.currentItem.css(this._storedCSS).removeClass("flix_ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!noPropagation){delayedTriggers.push(function(event){this._trigger("receive",event,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".flix_ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation){delayedTriggers.push(function(event){this._trigger("update",event,this._uiHash())})}if(this!==this.currentContainer){if(!noPropagation){delayedTriggers.push(function(event){this._trigger("remove",event,this._uiHash())});delayedTriggers.push((function(c){return function(event){c._trigger("receive",event,this._uiHash(this))}}).call(this,this.currentContainer));delayedTriggers.push((function(c){return function(event){c._trigger("update",event,this._uiHash(this))}}).call(this,this.currentContainer))}}for(i=this.containers.length-1;i>=0;i--){if(!noPropagation){delayedTriggers.push((function(c){return function(event){c._trigger("deactivate",event,this._uiHash(this))}}).call(this,this.containers[i]))}if(this.containers[i].containerCache.over){delayedTriggers.push((function(c){return function(event){c._trigger("out",event,this._uiHash(this))}}).call(this,this.containers[i]));this.containers[i].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!noPropagation){this._trigger("beforeStop",event,this._uiHash());for(i=0;i")[0],colors,each=FlixjQ.each;supportElem.style.cssText="background-color:rgba(1,1,1,.5)";support.rgba=supportElem.style.backgroundColor.indexOf("rgba")>-1;each(spaces,function(spaceName,space){space.cache="_"+spaceName;space.props.alpha={idx:3,type:"percent",def:1}});function clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null){return(allowEmpty||!prop.def)?null:prop.def}value=type.floor?~~value:parseFloat(value);if(isNaN(value)){return prop.def}if(type.mod){return(value+type.mod)%type.mod}return 0>value?0:type.maxtype.mod/2){startValue+=type.mod}else if(startValue-endValue>type.mod/2){startValue-=type.mod}}result[index]=clamp((endValue-startValue)*distance+startValue,prop)}});return this[spaceName](result)},blend:function(opaque){if(this._rgba[3]===1){return this}var rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(FlixjQ.map(rgb,function(v,i){return(1-a)*blend[i]+a*v}))},toRgbaString:function(){var prefix="rgba(",rgba=FlixjQ.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v});if(rgba[3]===1){rgba.pop();prefix="rgb("}return prefix+rgba.join()+")"},toHslaString:function(){var prefix="hsla(",hsla=FlixjQ.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0}if(i&&i<3){v=Math.round(v*100)+"%"}return v});if(hsla[3]===1){hsla.pop();prefix="hsl("}return prefix+hsla.join()+")"},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha){rgba.push(~~(alpha*255))}return"#"+FlixjQ.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?"0"+v:v}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});color.fn.parse.prototype=color.fn;function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6}if(h*2<1){return q}if(h*3<2){return p+(q-p)*((2/3)-h)*6}return p}spaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]]}var r=rgba[0]/255,g=rgba[1]/255,b=rgba[2]/255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0}else if(r===max){h=(60*(g-b)/diff)+360}else if(g===max){h=(60*(b-r)/diff)+120}else{h=(60*(r-g)/diff)+240}if(diff===0){s=0}else if(l<=0.5){s=diff/add}else{s=diff/(2-add)}return[Math.round(h)%360,s,l,a==null?1:a]};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]]}var h=hsla[0]/360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1/3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1/3))*255),a]};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba)}if(value===undefined){return this[cache].slice()}var ret,type=FlixjQ.type(value),arr=(type==="array"||type==="object")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type==="object"?key:prop.idx];if(val==null){val=local[prop.idx]}local[prop.idx]=clamp(val,prop)});if(from){ret=color(from(local));ret[cache]=local;return ret}else{return color(local)}};each(props,function(key,prop){if(color.fn[key]){return}color.fn[key]=function(value){var vtype=FlixjQ.type(value),fn=(key==="alpha"?(this._hsla?"hsla":"rgba"):spaceName),local=this[fn](),cur=local[prop.idx],match;if(vtype==="undefined"){return cur}if(vtype==="function"){value=value.call(this,cur);vtype=FlixjQ.type(value)}if(value==null&&prop.empty){return this}if(vtype==="string"){match=rplusequals.exec(value);if(match){value=cur+parseFloat(match[2])*(match[1]==="+"?1:-1)}}local[prop.idx]=value;return this[fn](local)}})});color.hook=function(hook){var hooks=hook.split(" ");each(hooks,function(i,hook){FlixjQ.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor="";if(value!=="transparent"&&(FlixjQ.type(value)!=="string"||(parsed=stringParse(value)))){value=color(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook==="backgroundColor"?elem.parentNode:elem;while((backgroundColor===""||backgroundColor==="transparent")&&curElem&&curElem.style){try{backgroundColor=FlixjQ.css(curElem,"backgroundColor");curElem=curElem.parentNode}catch(e){}}value=value.blend(backgroundColor&&backgroundColor!=="transparent"?backgroundColor:"_default")}value=value.toRgbaString()}try{elem.style[hook]=value}catch(e){}}};FlixjQ.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true}FlixjQ.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos))}})};color.hook(stepHooks);FlixjQ.cssHooks.borderColor={expand:function(value){var expanded={};each(["Top","Right","Bottom","Left"],function(i,part){expanded["border"+part+"Color"]=value});return expanded}};colors=FlixjQ.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(FlixjQ);(function(){var classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!=="none"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){FlixjQ.style(fx.elem,prop,fx.end);fx.setAttr=true}}});function getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]==="string"){styles[$.camelCase(key)]=style[key]}}}else{for(key in style){if(typeof style[key]==="string"){styles[key]=style[key]}}}return styles}function styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value}}}}return diff}if(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}}$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr("class")||"",applyClassChange,allAnimations=o.children?animated.find("*").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)}});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+"Class"](value[action])}})};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this});animated.attr("class",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo)}});this.el.animate(this.diff,opts);return dfd.promise()});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,"")})});o.complete.call(animated[0])})})};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force==="boolean"||force===undefined){if(!speed){return orig.apply(this,arguments)}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback)}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing)}}})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback)}})})();(function(){$.extend($.effects,{version:"1.10.3",save:function(element,set){for(var i=0;i").addClass("flix_ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id}catch(e){active=document.body}element.wrap(wrapper);if(element[0]===active||$.contains(element[0],active)){$(active).focus()}wrapper=element.parent();if(element.css("position")==="static"){wrapper.css({position:"relative"});element.css({position:"relative"})}else{$.extend(props,{position:element.css("position"),zIndex:element.css("z-index")});$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10))){props[pos]="auto"}});element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}element.css(size);return wrapper.css(props).show()},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(".flix_ui-effects-wrapper")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active)){$(active).focus()}}return element},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0){value[x]=unit[0]*factor+unit[1]}});return value}});function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect}effect={effect:effect};if(options==null){options={}}if($.isFunction(options)){callback=options;speed=null;options={}}if(typeof options==="number"||$.fx.speeds[options]){callback=speed;speed=options;options={}}if($.isFunction(speed)){callback=speed;speed=null}if(options){$.extend(effect,options)}speed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed==="number"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect}function standardAnimationOption(option){if(!option||typeof option==="number"||$.fx.speeds[option]){return true}if(typeof option==="string"&&!$.effects.effect[option]){return true}if($.isFunction(option)){return true}if(typeof option==="object"&&!option.effect){return true}return false}$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),mode=args.mode,queue=args.queue,effectMethod=$.effects.effect[args.effect];if($.fx.off||!effectMethod){if(mode){return this[mode](args.duration,args.complete)}else{return this.each(function(){if(args.complete){args.complete.call(this)}})}}function run(next){var elem=$(this),complete=args.complete,mode=args.mode;function done(){if($.isFunction(complete)){complete.call(elem[0])}if($.isFunction(next)){next()}}if(elem.is(":hidden")?mode==="hide":mode==="show"){elem[mode]();done()}else{effectMethod.call(elem[0],args,done)}}return queue===false?this.each(run):this.queue(queue||"fx",run)},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="show";return this.effect.call(this,args)}}})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="hide";return this.effect.call(this,args)}}})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option==="boolean"){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="toggle";return this.effect.call(this,args)}}})($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each(["em","px","%","pt"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit]}});return val}})})();(function(){var baseEasings={};$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2)}});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI/2)},Circ:function(p){return 1-Math.sqrt(1-p*p)},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15)},Back:function(p){return p*p*(3*p-2)},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/11){}return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/22-p,2)}});$.each(baseEasings,function(name,easeIn){$.easing["easeIn"+name]=easeIn;$.easing["easeOut"+name]=function(p){return 1-easeIn(1-p)};$.easing["easeInOut"+name]=function(p){return p<0.5?easeIn(p*2)/2:1-easeIn(p*-2+2)/2}})})()})(FlixjQ);(function($,undefined){var uid=0,hideProps={},showProps={};hideProps.height=hideProps.paddingTop=hideProps.paddingBottom=hideProps.borderTopWidth=hideProps.borderBottomWidth="hide";showProps.height=showProps.paddingTop=showProps.paddingBottom=showProps.borderTopWidth=showProps.borderBottomWidth="show";$.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"flix_ui-icon-triangle-1-s",header:"flix_ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var options=this.options;this.prevShow=this.prevHide=$();this.element.addClass("flix_ui-accordion flix_ui-widget flix_ui-helper-reset").attr("role","tablist");if(!options.collapsible&&(options.active===false||options.active==null)){options.active=0}this._processPanels();if(options.active<0){options.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next(),content:!this.active.length?$():this.active.next()}},_createIcons:function(){var icons=this.options.icons;if(icons){$("").addClass("flix_ui-accordion-header-icon flix_ui-icon "+icons.header).prependTo(this.headers);this.active.children(".flix_ui-accordion-header-icon").removeClass(icons.header).addClass(icons.activeHeader);this.headers.addClass("flix_ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("flix_ui-accordion-icons").children(".flix_ui-accordion-header-icon").remove()},_destroy:function(){var contents;this.element.removeClass("flix_ui-accordion flix_ui-widget flix_ui-helper-reset").removeAttr("role");this.headers.removeClass("flix_ui-accordion-header flix_ui-accordion-header-active flix_ui-helper-reset flix_ui-state-default flix_ui-corner-all flix_ui-state-active flix_ui-state-disabled flix_ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){if(/^flix_ui-accordion/.test(this.id)){this.removeAttribute("id")}});this._destroyIcons();contents=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("flix_ui-helper-reset flix_ui-widget-content flix_ui-corner-bottom flix_ui-accordion-content flix_ui-accordion-content-active flix_ui-state-disabled").each(function(){if(/^flix_ui-accordion/.test(this.id)){this.removeAttribute("id")}});if(this.options.heightStyle!=="content"){contents.css("height","")}},_setOption:function(key,value){if(key==="active"){this._activate(value);return}if(key==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(value)}this._super(key,value);if(key==="collapsible"&&!value&&this.options.active===false){this._activate(0)}if(key==="icons"){this._destroyIcons();if(value){this._createIcons()}}if(key==="disabled"){this.headers.add(this.headers.next()).toggleClass("flix_ui-state-disabled",!!value)}},_keydown:function(event){if(event.altKey||event.ctrlKey){return}var keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break}if(toFocus){$(event.target).attr("tabIndex",-1);$(toFocus).attr("tabIndex",0);toFocus.focus();event.preventDefault()}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){$(event.currentTarget).prev().focus()}},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$()}else if(options.active===false){this._activate(0)}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".flix_ui-state-disabled").length){options.active=false;this.active=$()}else{this._activate(Math.max(0,options.active-1))}}else{options.active=this.headers.index(this.active)}this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("flix_ui-accordion-header flix_ui-helper-reset flix_ui-state-default flix_ui-corner-all");this.headers.next().addClass("flix_ui-accordion-content flix_ui-helper-reset flix_ui-widget-content flix_ui-corner-bottom").filter(":not(.flix_ui-accordion-content-active)").hide()},_refresh:function(){var maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent(),accordionId=this.accordionId="flix_ui-accordion-"+(this.element.attr("id")||++uid);this.active=this._findActive(options.active).addClass("flix_ui-accordion-header-active flix_ui-state-active flix_ui-corner-top").removeClass("flix_ui-corner-all");this.active.next().addClass("flix_ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(i){var header=$(this),headerId=header.attr("id"),panel=header.next(),panelId=panel.attr("id");if(!headerId){headerId=accordionId+"-header-"+i;header.attr("id",headerId)}if(!panelId){panelId=accordionId+"-panel-"+i;panel.attr("id",panelId)}header.attr("aria-controls",panelId);panel.attr("aria-labelledby",headerId)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"})}this._createIcons();this._setupEvents(options.event);if(heightStyle==="fill"){maxHeight=parent.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed"){return}maxHeight-=elem.outerHeight(true)});this.headers.each(function(){maxHeight-=$(this).outerHeight(true)});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).css("height","").height())}).height(maxHeight)}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0]){return}active=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop})},_findActive:function(selector){return typeof selector==="number"?this.headers.eq(selector):$()},_setupEvents:function(event){var events={keydown:"_keydown"};if(event){$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(event){var options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false)){return}options.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);active.removeClass("flix_ui-accordion-header-active flix_ui-state-active");if(options.icons){active.children(".flix_ui-accordion-header-icon").removeClass(options.icons.activeHeader).addClass(options.icons.header)}if(!clickedIsActive){clicked.removeClass("flix_ui-corner-all").addClass("flix_ui-accordion-header-active flix_ui-state-active flix_ui-corner-top");if(options.icons){clicked.children(".flix_ui-accordion-header-icon").removeClass(options.icons.header).addClass(options.icons.activeHeader)}clicked.next().addClass("flix_ui-accordion-content-active")}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data)}else{toHide.hide();toShow.show();this._toggleComplete(data)}toHide.attr({"aria-expanded":"false","aria-hidden":"true"});toHide.prev().attr("aria-selected","false");if(toShow.length&&toHide.length){toHide.prev().attr("tabIndex",-1)}else if(toShow.length){this.headers.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1)}toShow.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,down=toShow.length&&(!toHide.length||(toShow.index()",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName==="textarea",isInput=nodeName==="input";this.isMultiLine=isTextarea?true:isInput?false:this.element.prop("isContentEditable");this.valueMethod=this.element[isTextarea||isInput?"val":"text"];this.isNewMenu=true;this.element.addClass("flix_ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(event){if(this.element.prop("readOnly")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return}suppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move("previousPage",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move("nextPage",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent("previous",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent("next",event);break;case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event)}break;case keyCode.TAB:if(this.menu.active){this.menu.select(event)}break;case keyCode.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(event);event.preventDefault()}break;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;if(!this.isMultiLine||this.menu.element.is(":visible")){event.preventDefault()}return}if(suppressKeyPressRepeat){return}var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move("previousPage",event);break;case keyCode.PAGE_DOWN:this._move("nextPage",event);break;case keyCode.UP:this._keyEvent("previous",event);break;case keyCode.DOWN:this._keyEvent("next",event);break}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return}this._searchTimeout(event)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(event);this._change(event)}});this._initSource();this.menu=$("
 
"+"";thead=(showWeek?"":"");for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+="=5?" class='flix_ui-datepicker-week-end'":"")+">"+""+dayNamesMin[day]+""}calender+=thead+"";daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/7);numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow";tbody=(!showWeek?"":"");for(dow=0;dow<7;dow++){daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);otherMonth=(printDate.getMonth()!==drawMonth);unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDatemaxDate);tbody+="";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+""}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="
"+this._get(inst,"weekHeader")+"
"+this._get(inst,"calculateWeek")(printDate)+""+(otherMonth&&!showOtherMonths?" ":(unselectable?""+printDate.getDate()+"":""+printDate.getDate()+""))+"
"+(isMultiMonth?""+((numMonths[0]>0&&col===numMonths[1]-1)?"
":""):"");group+=calender}html+=group}html+=buttonPanel;inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,"changeMonth"),changeYear=this._get(inst,"changeYear"),showMonthAfterYear=this._get(inst,"showMonthAfterYear"),html="
",monthHtml="";if(secondary||!changeMonth){monthHtml+=""+monthNames[drawMonth]+""}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+=""}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?" ":"")}if(!inst.yearshtml){inst.yearshtml="";if(secondary||!changeYear){html+=""+drawYear+""}else{years=this._get(inst,"yearRange").split(":");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+="";html+=inst.yearshtml;inst.yearshtml=null}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?" ":"")+monthHtml}html+="
";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==="Y"?offset:0),month=inst.drawMonth+(period==="M"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==="D"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==="M"||period==="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),newDate=(minDate&&datemaxDate?maxDate:newDate)},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths==="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),minYear=null,maxYear=null,years=this._get(inst,"yearRange");if(years){yearSplit=years.split(":");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\-].*/)){minYear+=currentYear}if(yearSplit[1].match(/[+\-].*/)){maxYear+=currentYear}}return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!=="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day==="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function bindHover(dpDiv){var selector="button, .flix_ui-datepicker-prev, .flix_ui-datepicker-next, .flix_ui-datepicker-calendar td a";return dpDiv.delegate(selector,"mouseout",function(){$(this).removeClass("flix_ui-state-hover");if(this.className.indexOf("flix_ui-datepicker-prev")!==-1){$(this).removeClass("flix_ui-datepicker-prev-hover")}if(this.className.indexOf("flix_ui-datepicker-next")!==-1){$(this).removeClass("flix_ui-datepicker-next-hover")}}).delegate(selector,"mouseover",function(){if(!$.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])){$(this).parents(".flix_ui-datepicker-calendar").find("a").removeClass("flix_ui-state-hover");$(this).addClass("flix_ui-state-hover");if(this.className.indexOf("flix_ui-datepicker-prev")!==-1){$(this).addClass("flix_ui-datepicker-prev-hover")}if(this.className.indexOf("flix_ui-datepicker-next")!==-1){$(this).addClass("flix_ui-datepicker-next-hover")}}})}function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=props[name]}}return target}$.fn.datepicker=function(options){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}if($("#"+$.datepicker._mainDivId).length===0){$("body").append($.datepicker.dpDiv)}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==="string"&&(options==="isDisabled"||options==="getDate"||options==="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.10.3"})(FlixjQ);(function($,undefined){var sizeRelatedOptions={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};$.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(pos){var topOffset=$(this).css(pos).offset().top;if(topOffset<0){$(this).css("top",pos.top-topOffset)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("flix_ui-dialog-content flix_ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&$.fn.draggable){this._makeDraggable()}if(this.options.resizable&&$.fn.resizable){this._makeResizable()}this._isOpen=false},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var element=this.options.appendTo;if(element&&(element.FlixjQ||element.nodeType)){return $(element)}return this.document.find(element||"body").eq(0)},_destroy:function(){var next,originalPosition=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("flix_ui-dialog-content flix_ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}next=originalPosition.parent.children().eq(originalPosition.index);if(next.length&&next[0]!==this.element[0]){next.before(this.element)}else{originalPosition.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:$.noop,enable:$.noop,close:function(event){var that=this;if(!this._isOpen||this._trigger("beforeClose",event)===false){return}this._isOpen=false;this._destroyOverlay();if(!this.opener.filter(":focusable").focus().length){$(this.document[0].activeElement).blur()}this._hide(this.uiDialog,this.options.hide,function(){that._trigger("close",event)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(event,silent){var moved=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;if(moved&&!silent){this._trigger("focus",event)}return moved},open:function(){var that=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=$(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);this._show(this.uiDialog,this.options.show,function(){that._focusTabbable();that._trigger("focus")});this._trigger("open")},_focusTabbable:function(){var hasFocus=this.element.find("[autofocus]");if(!hasFocus.length){hasFocus=this.element.find(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialogButtonPane.find(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialogTitlebarClose.filter(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialog}hasFocus.eq(0).focus()},_keepFocus:function(event){function checkFocus(){var activeElement=this.document[0].activeElement,isActive=this.uiDialog[0]===activeElement||$.contains(this.uiDialog[0],activeElement);if(!isActive){this._focusTabbable()}}event.preventDefault();checkFocus.call(this);this._delay(checkFocus)},_createWrapper:function(){this.uiDialog=$("
").addClass("flix_ui-dialog flix_ui-widget flix_ui-widget-content flix_ui-corner-all flix_ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return}if(event.keyCode!==$.ui.keyCode.TAB){return}var tabbables=this.uiDialog.find(":tabbable"),first=tabbables.filter(":first"),last=tabbables.filter(":last");if((event.target===last[0]||event.target===this.uiDialog[0])&&!event.shiftKey){first.focus(1);event.preventDefault()}else if((event.target===first[0]||event.target===this.uiDialog[0])&&event.shiftKey){last.focus(1);event.preventDefault()}},mousedown:function(event){if(this._moveToTop(event)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var uiDialogTitle;this.uiDialogTitlebar=$("
").addClass("flix_ui-dialog-titlebar flix_ui-widget-header flix_ui-corner-all flix_ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(event){if(!$(event.target).closest(".flix_ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=$("").button({label:this.options.closeText,icons:{primary:"flix_ui-icon-closethick"},text:false}).addClass("flix_ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(event){event.preventDefault();this.close(event)}});uiDialogTitle=$("").uniqueId().addClass("flix_ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(uiDialogTitle);this.uiDialog.attr({"aria-labelledby":uiDialogTitle.attr("id")})},_title:function(title){if(!this.options.title){title.html(" ")}title.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=$("
").addClass("flix_ui-dialog-buttonpane flix_ui-widget-content flix_ui-helper-clearfix");this.uiButtonSet=$("
").addClass("flix_ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var that=this,buttons=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(buttons)||($.isArray(buttons)&&!buttons.length)){this.uiDialog.removeClass("flix_ui-dialog-buttons");return}$.each(buttons,function(name,props){var click,buttonOptions;props=$.isFunction(props)?{click:props,text:name}:props;props=$.extend({type:"button"},props);click=props.click;props.click=function(){click.apply(that.element[0],arguments)};buttonOptions={icons:props.icons,text:props.showText};delete props.icons;delete props.showText;$("",props).button(buttonOptions).appendTo(that.uiButtonSet)});this.uiDialog.addClass("flix_ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var that=this,options=this.options;function filteredUi(ui){return{position:ui.position,offset:ui.offset}}this.uiDialog.draggable({cancel:".flix_ui-dialog-content, .flix_ui-dialog-titlebar-close",handle:".flix_ui-dialog-titlebar",containment:"document",start:function(event,ui){$(this).addClass("flix_ui-dialog-dragging");that._blockFrames();that._trigger("dragStart",event,filteredUi(ui))},drag:function(event,ui){that._trigger("drag",event,filteredUi(ui))},stop:function(event,ui){options.position=[ui.position.left-that.document.scrollLeft(),ui.position.top-that.document.scrollTop()];$(this).removeClass("flix_ui-dialog-dragging");that._unblockFrames();that._trigger("dragStop",event,filteredUi(ui))}})},_makeResizable:function(){var that=this,options=this.options,handles=options.resizable,position=this.uiDialog.css("position"),resizeHandles=typeof handles==="string"?handles:"n,e,s,w,se,sw,ne,nw";function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size}}this.uiDialog.resizable({cancel:".flix_ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:this._minHeight(),handles:resizeHandles,start:function(event,ui){$(this).addClass("flix_ui-dialog-resizing");that._blockFrames();that._trigger("resizeStart",event,filteredUi(ui))},resize:function(event,ui){that._trigger("resize",event,filteredUi(ui))},stop:function(event,ui){options.height=$(this).height();options.width=$(this).width();$(this).removeClass("flix_ui-dialog-resizing");that._unblockFrames();that._trigger("resizeStop",event,filteredUi(ui))}}).css("position",position)},_minHeight:function(){var options=this.options;return options.height==="auto"?options.minHeight:Math.min(options.minHeight,options.height)},_position:function(){var isVisible=this.uiDialog.is(":visible");if(!isVisible){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!isVisible){this.uiDialog.hide()}},_setOptions:function(options){var that=this,resize=false,resizableOptions={};$.each(options,function(key,value){that._setOption(key,value);if(key in sizeRelatedOptions){resize=true}if(key in resizableRelatedOptions){resizableOptions[key]=value}});if(resize){this._size();this._position()}if(this.uiDialog.is(":data(flix_ui-resizable)")){this.uiDialog.resizable("option",resizableOptions)}},_setOption:function(key,value){var isDraggable,isResizable,uiDialog=this.uiDialog;if(key==="dialogClass"){uiDialog.removeClass(this.options.dialogClass).addClass(value)}if(key==="disabled"){return}this._super(key,value);if(key==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(key==="buttons"){this._createButtons()}if(key==="closeText"){this.uiDialogTitlebarClose.button({label:""+value})}if(key==="draggable"){isDraggable=uiDialog.is(":data(flix_ui-draggable)");if(isDraggable&&!value){uiDialog.draggable("destroy")}if(!isDraggable&&value){this._makeDraggable()}}if(key==="position"){this._position()}if(key==="resizable"){isResizable=uiDialog.is(":data(flix_ui-resizable)");if(isResizable&&!value){uiDialog.resizable("destroy")}if(isResizable&&typeof value==="string"){uiDialog.resizable("option","handles",value)}if(!isResizable&&value!==false){this._makeResizable()}}if(key==="title"){this._title(this.uiDialogTitlebar.find(".flix_ui-dialog-title"))}},_size:function(){var nonContentHeight,minContentHeight,maxContentHeight,options=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(options.minWidth>options.width){options.width=options.minWidth}nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).outerHeight();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);maxContentHeight=typeof options.maxHeight==="number"?Math.max(0,options.maxHeight-nonContentHeight):"none";if(options.height==="auto"){this.element.css({minHeight:minContentHeight,maxHeight:maxContentHeight,height:"auto"})}else{this.element.height(Math.max(0,options.height-nonContentHeight))}if(this.uiDialog.is(":data(flix_ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var iframe=$(this);return $("
").css({position:"absolute",width:iframe.outerWidth(),height:iframe.outerHeight()}).appendTo(iframe.parent()).offset(iframe.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(event){if($(event.target).closest(".flix_ui-dialog").length){return true}return!!$(event.target).closest(".flix_ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var that=this,widgetFullName=this.widgetFullName;if(!$.ui.dialog.overlayInstances){this._delay(function(){if($.ui.dialog.overlayInstances){this.document.bind("focusin.dialog",function(event){if(!that._allowInteraction(event)){event.preventDefault();$(".flix_ui-dialog:visible:last .flix_ui-dialog-content").data(widgetFullName)._focusTabbable()}})}})}this.overlay=$("
").addClass("flix_ui-widget-overlay flix_ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});$.ui.dialog.overlayInstances++},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){$.ui.dialog.overlayInstances--;if(!$.ui.dialog.overlayInstances){this.document.unbind("focusin.dialog")}this.overlay.remove();this.overlay=null}}});$.ui.dialog.overlayInstances=0;if($.uiBackCompat!==false){$.widget("ui.dialog",$.ui.dialog,{_position:function(){var position=this.options.position,myAt=[],offset=[0,0],isVisible;if(position){if(typeof position==="string"||(typeof position==="object"&&"0"in position)){myAt=position.split?position.split(" "):[position[0],position[1]];if(myAt.length===1){myAt[1]=myAt[0]}$.each(["left","top"],function(i,offsetPosition){if(+myAt[i]===myAt[i]){offset[i]=myAt[i];myAt[i]=offsetPosition}});position={my:myAt[0]+(offset[0]<0?offset[0]:"+"+offset[0])+" "+myAt[1]+(offset[1]<0?offset[1]:"+"+offset[1]),at:myAt.join(" ")}}position=$.extend({},$.ui.dialog.prototype.options.position,position)}else{position=$.ui.dialog.prototype.options.position}isVisible=this.uiDialog.is(":visible");if(!isVisible){this.uiDialog.show()}this.uiDialog.position(position);if(!isVisible){this.uiDialog.hide()}}})}}(FlixjQ));(function($,undefined){var rvertical=/up|down|vertical/,rpositivemotion=/up|left|vertical|horizontal/;$.effects.effect.blind=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),direction=o.direction||"up",vertical=rvertical.test(direction),ref=vertical?"height":"width",ref2=vertical?"top":"left",motion=rpositivemotion.test(direction),animation={},show=mode==="show",wrapper,distance,margin;if(el.parent().is(".flix_ui-effects-wrapper")){$.effects.save(el.parent(),props)}else{$.effects.save(el,props)}el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=wrapper[ref]();margin=parseFloat(wrapper.css(ref2))||0;animation[ref]=show?distance:0;if(!motion){el.css(vertical?"bottom":"right",0).css(vertical?"top":"left","auto").css({position:"absolute"});animation[ref2]=show?margin:distance+margin}if(show){wrapper.css(ref,0);if(!motion){wrapper.css(ref2,margin+distance)}}wrapper.animate(animation,{duration:o.duration,easing:o.easing,queue:false,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.bounce=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),hide=mode==="hide",show=mode==="show",direction=o.direction||"up",distance=o.distance,times=o.times||5,anims=times*2+(show||hide?1:0),speed=o.duration/anims,easing=o.easing,ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left"),i,upAnim,downAnim,queue=el.queue(),queuelen=queue.length;if(show||hide){props.push("opacity")}$.effects.save(el,props);el.show();$.effects.createWrapper(el);if(!distance){distance=el[ref==="top"?"outerHeight":"outerWidth"]()/3}if(show){downAnim={opacity:1};downAnim[ref]=0;el.css("opacity",0).css(ref,motion?-distance*2:distance*2).animate(downAnim,speed,easing)}if(hide){distance=distance/Math.pow(2,times-1)}downAnim={};downAnim[ref]=0;for(i=0;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}el.dequeue()}})(FlixjQ);(function($,undefined){$.effects.effect.clip=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"vertical",vert=direction==="vertical",size=vert?"height":"width",position=vert?"top":"left",animation={},wrapper,animate,distance;$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});animate=(el[0].tagName==="IMG")?wrapper:el;distance=animate[size]();if(show){animate.css(size,0);animate.css(position,distance/2)}animation[size]=show?distance:0;animation[position]=show?0:distance/2;animate.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(!show){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.drop=function(o,done){var el=$(this),props=["position","top","bottom","left","right","opacity","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left")?"pos":"neg",animation={opacity:show?1:0},distance;$.effects.save(el,props);el.show();$.effects.createWrapper(el);distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true)/2;if(show){el.css("opacity",0).css(ref,motion==="pos"?-distance:distance)}animation[ref]=(show?(motion==="pos"?"+=":"-="):(motion==="pos"?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.explode=function(o,done){var rows=o.pieces?Math.round(Math.sqrt(o.pieces)):3,cells=rows,el=$(this),mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",offset=el.show().css("visibility","hidden").offset(),width=Math.ceil(el.outerWidth()/cells),height=Math.ceil(el.outerHeight()/rows),pieces=[],i,j,left,top,mx,my;function childComplete(){pieces.push(this);if(pieces.length===rows*cells){animComplete()}}for(i=0;i
").css({position:"absolute",visibility:"visible",left:-j*width,top:-i*height}).parent().addClass("flix_ui-effects-explode").css({position:"absolute",overflow:"hidden",width:width,height:height,left:left+(show?mx*width:0),top:top+(show?my*height:0),opacity:show?0:1}).animate({left:left+(show?0:mx*width),top:top+(show?0:my*height),opacity:show?1:0},o.duration||500,o.easing,childComplete)}}function animComplete(){el.css({visibility:"visible"});$(pieces).remove();if(!show){el.hide()}done()}}})(FlixjQ);(function($,undefined){$.effects.effect.fade=function(o,done){var el=$(this),mode=$.effects.setMode(el,o.mode||"toggle");el.animate({opacity:mode},{queue:false,duration:o.duration,easing:o.easing,complete:done})}})(FlixjQ);(function($,undefined){$.effects.effect.fold=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",hide=mode==="hide",size=o.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!o.horizFirst,widthFirst=show!==horizFirst,ref=widthFirst?["width","height"]:["height","width"],duration=o.duration/2,wrapper,distance,animation1={},animation2={};$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=widthFirst?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(percent){size=parseInt(percent[1],10)/100*distance[hide?0:1]}if(show){wrapper.css(horizFirst?{height:0,width:size}:{height:size,width:0})}animation1[ref[0]]=show?distance[0]:size;animation2[ref[1]]=show?distance[1]:0;wrapper.animate(animation1,duration,o.easing).animate(animation2,duration,o.easing,function(){if(hide){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()})}})(FlixjQ);(function($,undefined){$.effects.effect.highlight=function(o,done){var elem=$(this),props=["backgroundImage","backgroundColor","opacity"],mode=$.effects.setMode(elem,o.mode||"show"),animation={backgroundColor:elem.css("backgroundColor")};if(mode==="hide"){animation.opacity=0}$.effects.save(elem,props);elem.show().css({backgroundImage:"none",backgroundColor:o.color||"#ffff99"}).animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){elem.hide()}$.effects.restore(elem,props);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.pulsate=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"show"),show=mode==="show",hide=mode==="hide",showhide=(show||mode==="hide"),anims=((o.times||5)*2)+(showhide?1:0),duration=o.duration/anims,animateTo=0,queue=elem.queue(),queuelen=queue.length,i;if(show||!elem.is(":visible")){elem.css("opacity",0).show();animateTo=1}for(i=1;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}elem.dequeue()}})(FlixjQ);(function($,undefined){$.effects.effect.puff=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"hide"),hide=mode==="hide",percent=parseInt(o.percent,10)||150,factor=percent/100,original={height:elem.height(),width:elem.width(),outerHeight:elem.outerHeight(),outerWidth:elem.outerWidth()};$.extend(o,{effect:"scale",queue:false,fade:true,mode:mode,complete:done,percent:hide?percent:100,from:hide?original:{height:original.height*factor,width:original.width*factor,outerHeight:original.outerHeight*factor,outerWidth:original.outerWidth*factor}});elem.effect(o)};$.effects.effect.scale=function(o,done){var el=$(this),options=$.extend(true,{},o),mode=$.effects.setMode(el,o.mode||"effect"),percent=parseInt(o.percent,10)||(parseInt(o.percent,10)===0?0:(mode==="hide"?0:100)),direction=o.direction||"both",origin=o.origin,original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()},factor={y:direction!=="horizontal"?(percent/100):1,x:direction!=="vertical"?(percent/100):1};options.effect="size";options.queue=false;options.complete=done;if(mode!=="effect"){options.origin=origin||["middle","center"];options.restore=true}options.from=o.from||(mode==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:original);options.to={height:original.height*factor.y,width:original.width*factor.x,outerHeight:original.outerHeight*factor.y,outerWidth:original.outerWidth*factor.x};if(options.fade){if(mode==="show"){options.from.opacity=0;options.to.opacity=1}if(mode==="hide"){options.from.opacity=1;options.to.opacity=0}}el.effect(options)};$.effects.effect.size=function(o,done){var original,baseline,factor,el=$(this),props0=["position","top","bottom","left","right","width","height","overflow","opacity"],props1=["position","top","bottom","left","right","overflow","opacity"],props2=["width","height","overflow"],cProps=["fontSize"],vProps=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],hProps=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],mode=$.effects.setMode(el,o.mode||"effect"),restore=o.restore||mode!=="effect",scale=o.scale||"both",origin=o.origin||["middle","center"],position=el.css("position"),props=restore?props0:props1,zero={height:0,width:0,outerHeight:0,outerWidth:0};if(mode==="show"){el.show()}original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()};if(o.mode==="toggle"&&mode==="show"){el.from=o.to||zero;el.to=o.from||original}else{el.from=o.from||(mode==="show"?zero:original);el.to=o.to||(mode==="hide"?zero:original)}factor={from:{y:el.from.height/original.height,x:el.from.width/original.width},to:{y:el.to.height/original.height,x:el.to.width/original.width}};if(scale==="box"||scale==="both"){if(factor.from.y!==factor.to.y){props=props.concat(vProps);el.from=$.effects.setTransition(el,vProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,vProps,factor.to.y,el.to)}if(factor.from.x!==factor.to.x){props=props.concat(hProps);el.from=$.effects.setTransition(el,hProps,factor.from.x,el.from);el.to=$.effects.setTransition(el,hProps,factor.to.x,el.to)}}if(scale==="content"||scale==="both"){if(factor.from.y!==factor.to.y){props=props.concat(cProps).concat(props2);el.from=$.effects.setTransition(el,cProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,cProps,factor.to.y,el.to)}}$.effects.save(el,props);el.show();$.effects.createWrapper(el);el.css("overflow","hidden").css(el.from);if(origin){baseline=$.effects.getBaseline(origin,original);el.from.top=(original.outerHeight-el.outerHeight())*baseline.y;el.from.left=(original.outerWidth-el.outerWidth())*baseline.x;el.to.top=(original.outerHeight-el.to.outerHeight)*baseline.y;el.to.left=(original.outerWidth-el.to.outerWidth)*baseline.x}el.css(el.from);if(scale==="content"||scale==="both"){vProps=vProps.concat(["marginTop","marginBottom"]).concat(cProps);hProps=hProps.concat(["marginLeft","marginRight"]);props2=props0.concat(vProps).concat(hProps);el.find("*[width]").each(function(){var child=$(this),c_original={height:child.height(),width:child.width(),outerHeight:child.outerHeight(),outerWidth:child.outerWidth()};if(restore){$.effects.save(child,props2)}child.from={height:c_original.height*factor.from.y,width:c_original.width*factor.from.x,outerHeight:c_original.outerHeight*factor.from.y,outerWidth:c_original.outerWidth*factor.from.x};child.to={height:c_original.height*factor.to.y,width:c_original.width*factor.to.x,outerHeight:c_original.height*factor.to.y,outerWidth:c_original.width*factor.to.x};if(factor.from.y!==factor.to.y){child.from=$.effects.setTransition(child,vProps,factor.from.y,child.from);child.to=$.effects.setTransition(child,vProps,factor.to.y,child.to)}if(factor.from.x!==factor.to.x){child.from=$.effects.setTransition(child,hProps,factor.from.x,child.from);child.to=$.effects.setTransition(child,hProps,factor.to.x,child.to)}child.css(child.from);child.animate(child.to,o.duration,o.easing,function(){if(restore){$.effects.restore(child,props2)}})})}el.animate(el.to,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(el.to.opacity===0){el.css("opacity",el.from.opacity)}if(mode==="hide"){el.hide()}$.effects.restore(el,props);if(!restore){if(position==="static"){el.css({position:"relative",top:el.to.top,left:el.to.left})}else{$.each(["top","left"],function(idx,pos){el.css(pos,function(_,str){var val=parseInt(str,10),toRef=idx?el.to.left:el.to.top;if(str==="auto"){return toRef+"px"}return val+toRef+"px"})})}}$.effects.removeWrapper(el);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.shake=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),direction=o.direction||"left",distance=o.distance||20,times=o.times||3,anims=times*2+1,speed=Math.round(o.duration/anims),ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),animation={},animation1={},animation2={},i,queue=el.queue(),queuelen=queue.length;$.effects.save(el,props);el.show();$.effects.createWrapper(el);animation[ref]=(positiveMotion?"-=":"+=")+distance;animation1[ref]=(positiveMotion?"+=":"-=")+distance*2;animation2[ref]=(positiveMotion?"-=":"+=")+distance*2;el.animate(animation,speed,o.easing);for(i=1;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}el.dequeue()}})(FlixjQ);(function($,undefined){$.effects.effect.slide=function(o,done){var el=$(this),props=["position","top","bottom","left","right","width","height"],mode=$.effects.setMode(el,o.mode||"show"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),distance,animation={};$.effects.save(el,props);el.show();distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true);$.effects.createWrapper(el).css({overflow:"hidden"});if(show){el.css(ref,positiveMotion?(isNaN(distance)?"-"+distance:-distance):distance)}animation[ref]=(show?(positiveMotion?"+=":"-="):(positiveMotion?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(FlixjQ);(function($,undefined){$.effects.effect.transfer=function(o,done){var elem=$(this),target=$(o.to),targetFixed=target.css("position")==="fixed",body=$("body"),fixTop=targetFixed?body.scrollTop():0,fixLeft=targetFixed?body.scrollLeft():0,endPosition=target.offset(),animation={top:endPosition.top-fixTop,left:endPosition.left-fixLeft,height:target.innerHeight(),width:target.innerWidth()},startPosition=elem.offset(),transfer=$("
").appendTo(document.body).addClass(o.className).css({top:startPosition.top-fixTop,left:startPosition.left-fixLeft,height:elem.innerHeight(),width:elem.innerWidth(),position:targetFixed?"fixed":"absolute"}).animate(animation,o.duration,o.easing,function(){transfer.remove();done()})}})(FlixjQ);(function($,undefined){$.widget("ui.menu",{version:"1.10.3",defaultElement:"
    ",delay:300,options:{icons:{submenu:"flix_ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass("flix_ui-menu flix_ui-widget flix_ui-widget-content flix_ui-corner-all").toggleClass("flix_ui-menu-icons",!!this.element.find(".flix_ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,$.proxy(function(event){if(this.options.disabled){event.preventDefault()}},this));if(this.options.disabled){this.element.addClass("flix_ui-state-disabled").attr("aria-disabled","true")}this._on({"mousedown .flix_ui-menu-item > a":function(event){event.preventDefault()},"click .flix_ui-state-disabled > a":function(event){event.preventDefault()},"click .flix_ui-menu-item:has(a)":function(event){var target=$(event.target).closest(".flix_ui-menu-item");if(!this.mouseHandled&&target.not(".flix_ui-state-disabled").length){this.mouseHandled=true;this.select(event);if(target.has(".flix_ui-menu").length){this.expand(event)}else if(!this.element.is(":focus")){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".flix_ui-menu").length===1){clearTimeout(this.timer)}}}},"mouseenter .flix_ui-menu-item":function(event){var target=$(event.currentTarget);target.siblings().children(".flix_ui-state-active").removeClass("flix_ui-state-active");this.focus(event,target)},mouseleave:"collapseAll","mouseleave .flix_ui-menu":"collapseAll",focus:function(event,keepActiveItem){var item=this.active||this.element.children(".flix_ui-menu-item").eq(0);if(!keepActiveItem){this.focus(event,item)}},blur:function(event){this._delay(function(){if(!$.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(event)}})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(event){if(!$(event.target).closest(".flix_ui-menu").length){this.collapseAll(event)}this.mouseHandled=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".flix_ui-menu").addBack().removeClass("flix_ui-menu flix_ui-widget flix_ui-widget-content flix_ui-corner-all flix_ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".flix_ui-menu-item").removeClass("flix_ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("flix_ui-corner-all flix_ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var elem=$(this);if(elem.data("flix_ui-menu-submenu-carat")){elem.remove()}});this.element.find(".flix_ui-menu-divider").removeClass("flix_ui-menu-divider flix_ui-widget-content")},_keydown:function(event){var match,prev,character,skip,regex,preventDefault=true;function escape(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move("first","first",event);break;case $.ui.keyCode.END:this._move("last","last",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".flix_ui-state-disabled")){this.expand(event)}break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||"";character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true}else{character=prev+character}regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".flix_ui-menu-item").filter(function(){return regex.test($(this).children("a").text())});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(".flix_ui-menu-item"):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".flix_ui-menu-item").filter(function(){return regex.test($(this).children("a").text())})}if(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter},1000)}else{delete this.previousFilter}}else{delete this.previousFilter}}if(preventDefault){event.preventDefault()}},_activate:function(event){if(!this.active.is(".flix_ui-state-disabled")){if(this.active.children("a[aria-haspopup='true']").length){this.expand(event)}else{this.select(event)}}},refresh:function(){var menus,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);submenus.filter(":not(.flix_ui-menu)").addClass("flix_ui-menu flix_ui-widget flix_ui-widget-content flix_ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var menu=$(this),item=menu.prev("a"),submenuCarat=$("").addClass("flix_ui-menu-icon flix_ui-icon "+icon).data("flix_ui-menu-submenu-carat",true);item.attr("aria-haspopup","true").prepend(submenuCarat);menu.attr("aria-labelledby",item.attr("id"))});menus=submenus.add(this.element);menus.children(":not(.flix_ui-menu-item):has(a)").addClass("flix_ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("flix_ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});menus.children(":not(.flix_ui-menu-item)").each(function(){var item=$(this);if(!/[^\-\u2014\u2013\s]/.test(item.text())){item.addClass("flix_ui-widget-content flix_ui-menu-divider")}});menus.children(".flix_ui-state-disabled").attr("aria-disabled","true");if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur()}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(key,value){if(key==="icons"){this.element.find(".flix_ui-menu-icon").removeClass(this.options.icons.submenu).addClass(value.submenu)}this._super(key,value)},focus:function(event,item){var nested,focused;this.blur(event,event&&event.type==="focus");this._scrollIntoView(item);this.active=item.first();focused=this.active.children("a").addClass("flix_ui-state-focus");if(this.options.role){this.element.attr("aria-activedescendant",focused.attr("id"))}this.active.parent().closest(".flix_ui-menu-item").children("a:first").addClass("flix_ui-state-active");if(event&&event.type==="keydown"){this._close()}else{this.timer=this._delay(function(){this._close()},this.delay)}nested=item.children(".flix_ui-menu");if(nested.length&&(/^mouse/.test(event.type))){this._startOpening(nested)}this.activeMenu=item.parent();this._trigger("focus",event,{item:item})},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.height();if(offset<0){this.activeMenu.scrollTop(scroll+offset)}else if(offset+itemHeight>elementHeight){this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight)}}},blur:function(event,fromFocus){if(!fromFocus){clearTimeout(this.timer)}if(!this.active){return}this.active.children("a").removeClass("flix_ui-state-focus");this.active=null;this._trigger("blur",event,{item:this.active})},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr("aria-hidden")!=="true"){return}this.timer=this._delay(function(){this._close();this._open(submenu)},this.delay)},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".flix_ui-menu").not(submenu.parents(".flix_ui-menu")).hide().attr("aria-hidden","true");submenu.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(position)},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(".flix_ui-menu"));if(!currentMenu.length){currentMenu=this.element}this._close(currentMenu);this.blur(event);this.activeMenu=currentMenu},this.delay)},_close:function(startMenu){if(!startMenu){startMenu=this.active?this.active.parent():this.element}startMenu.find(".flix_ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.flix_ui-state-active").removeClass("flix_ui-state-active")},collapse:function(event){var newItem=this.active&&this.active.parent().closest(".flix_ui-menu-item",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem)}},expand:function(event){var newItem=this.active&&this.active.children(".flix_ui-menu ").children(".flix_ui-menu-item").first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem)})}},next:function(event){this._move("next","first",event)},previous:function(event){this._move("prev","last",event)},isFirstItem:function(){return this.active&&!this.active.prevAll(".flix_ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".flix_ui-menu-item").length},_move:function(direction,filter,event){var next;if(this.active){if(direction==="first"||direction==="last"){next=this.active[direction==="first"?"prevAll":"nextAll"](".flix_ui-menu-item").eq(-1)}else{next=this.active[direction+"All"](".flix_ui-menu-item").eq(0)}}if(!next||!next.length||!this.active){next=this.activeMenu.children(".flix_ui-menu-item")[filter]()}this.focus(event,next)},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return}if(this.isLastItem()){return}if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.nextAll(".flix_ui-menu-item").each(function(){item=$(this);return item.offset().top-base-height<0});this.focus(event,item)}else{this.focus(event,this.activeMenu.children(".flix_ui-menu-item")[!this.active?"first":"last"]())}},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return}if(this.isFirstItem()){return}if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.prevAll(".flix_ui-menu-item").each(function(){item=$(this);return item.offset().top-base+height>0});this.focus(event,item)}else{this.focus(event,this.activeMenu.children(".flix_ui-menu-item").first())}},_hasScroll:function(){return this.element.outerHeight()
"),innerDiv=div.children()[0];$("body").append(div);w1=innerDiv.offsetWidth;div.css("overflow","scroll");w2=innerDiv.offsetWidth;if(w1===w2){w2=div[0].clientWidth}div.remove();return(cachedScrollbarWidth=w1-w2)},getScrollInfo:function(within){var overflowX=within.isWindow?"":within.element.css("overflow-x"),overflowY=within.isWindow?"":within.element.css("overflow-y"),hasOverflowX=overflowX==="scroll"||(overflowX==="auto"&&within.width0?"right":"center",vertical:bottom<0?"top":top>0?"bottom":"middle"};if(targetWidthmax(abs(top),abs(bottom))){feedback.important="horizontal"}else{feedback.important="vertical"}options.using.call(this,props,feedback)}}elem.offset($.extend(position,{using:using}))})};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight}else if(overRight>0&&overLeft<=0){position.left=withinOffset}else{if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth}else{position.left=withinOffset}}}else if(overLeft>0){position.left+=overLeft}else if(overRight>0){position.left-=overRight}else{position.left=max(position.left-collisionPosLeft,position.left)}},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom}else if(overBottom>0&&overTop<=0){position.top=withinOffset}else{if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight}else{position.top=withinOffset}}}else if(overTop>0){position.top+=overTop}else if(overBottom>0){position.top-=overBottom}else{position.top=max(position.top-collisionPosTop,position.top)}}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]==="left"?-data.elemWidth:data.my[0]==="right"?data.elemWidth:0,atOffset=data.at[0]==="left"?data.targetWidth:data.at[0]==="right"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)overTop&&(newOverBottom<0||newOverBottom0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if((position.top+myOffset+atOffset+offset)>overBottom&&(newOverTop>0||abs(newOverTop)10&&offsetLeft<11;testElement.innerHTML="";testElementParent.removeChild(testElement)})()}(FlixjQ));(function($,undefined){$.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("flix_ui-progressbar flix_ui-widget flix_ui-widget-content flix_ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=$("
").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("flix_ui-progressbar flix_ui-widget flix_ui-widget-content flix_ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove()},value:function(newValue){if(newValue===undefined){return this.options.value}this.options.value=this._constrainedValue(newValue);this._refreshValue()},_constrainedValue:function(newValue){if(newValue===undefined){newValue=this.options.value}this.indeterminate=newValue===false;if(typeof newValue!=="number"){newValue=0}return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,newValue))},_setOptions:function(options){var value=options.value;delete options.value;this._super(options);this.options.value=this._constrainedValue(value);this._refreshValue()},_setOption:function(key,value){if(key==="max"){value=Math.max(this.min,value)}this._super(key,value)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var value=this.options.value,percentage=this._percentage();this.valueDiv.toggle(this.indeterminate||value>this.min).toggleClass("flix_ui-corner-right",value===this.options.max).width(percentage.toFixed(0)+"%");this.element.toggleClass("flix_ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=$("
").appendTo(this.valueDiv)}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":value});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==value){this.oldValue=value;this._trigger("change")}if(value===this.options.max){this._trigger("complete")}}})})(FlixjQ);(function($,undefined){var numPages=5;$.widget("ui.slider",$.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("flix_ui-slider"+" flix_ui-slider-"+this.orientation+" flix_ui-widget"+" flix_ui-widget-content"+" flix_ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(".flix_ui-slider-handle").addClass("flix_ui-state-default flix_ui-corner-all"),handle="",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount)}for(i=existingHandles.length;i
").appendTo(this.element);classes="flix_ui-slider-range"+" flix_ui-widget-header flix_ui-corner-all"}else{this.range.removeClass("flix_ui-slider-range-min flix_ui-slider-range-max").css({"left":"","bottom":""})}this.range.addClass(classes+((options.range==="min"||options.range==="max")?" flix_ui-slider-range-"+options.range:""))}else{this.range=$([])}},_setupEvents:function(){var elements=this.handles.add(this.range).filter("a");this._off(elements);this._on(elements,this._handleEvents);this._hoverable(elements);this._focusable(elements)},_destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("flix_ui-slider"+" flix_ui-slider-horizontal"+" flix_ui-slider-vertical"+" flix_ui-widget"+" flix_ui-widget-content"+" flix_ui-corner-all");this._mouseDestroy()},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i}});allowed=this._start(event,index);if(allowed===false){return false}this._mouseSliding=true;this._handleIndex=index;closestHandle.addClass("flix_ui-state-active").focus();offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(".flix_ui-slider-handle");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top-(closestHandle.height()/2)-(parseInt(closestHandle.css("borderTopWidth"),10)||0)-(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+(parseInt(closestHandle.css("marginTop"),10)||0)};if(!this.handles.hasClass("flix_ui-state-hover")){this._slide(event,index,normValue)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false},_mouseStop:function(event){this.handles.removeClass("flix_ui-state-active");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation==="horizontal"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}percentMouse=(pixelMouse/pixelTotal);if(percentMouse>1){percentMouse=1}if(percentMouse<0){percentMouse=0}if(this.orientation==="vertical"){percentMouse=1-percentMouse}valueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse)},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values()}return this._trigger("start",event,uiHash)},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return}if(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i=this._valueMax()){return this._valueMax()}var step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step)}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this.options.values&&this.options.values.length){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-that._valueMin())*100;_set[that.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);if(that.options.range===true){if(that.orientation==="horizontal"){if(i===0){that.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate)}if(i===1){that.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}else{if(i===0){that.range.stop(1,1)[animate?"animate":"css"]({bottom:(valPercent)+"%"},o.animate)}if(i===1){that.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}}lastValPercent=valPercent})}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);if(oRange==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate)}if(oRange==="max"&&this.orientation==="horizontal"){this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate})}if(oRange==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate)}if(oRange==="max"&&this.orientation==="vertical"){this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate})}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data("flix_ui-slider-handle-index");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;$(event.target).addClass("flix_ui-state-active");allowed=this._start(event,index);if(allowed===false){return}}break}step=this.options.step;if(this.options.values&&this.options.values.length){curVal=newVal=this.values(index)}else{curVal=newVal=this.value()}switch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return}newVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return}newVal=this._trimAlignValue(curVal-step);break}this._slide(event,index,newVal)},click:function(event){event.preventDefault()},keyup:function(event){var index=$(event.target).data("flix_ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);$(event.target).removeClass("flix_ui-state-active")}}}})}(FlixjQ));(function($){function modifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val()){this._trigger("change")}}}$.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"flix_ui-icon-triangle-1-s",up:"flix_ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this._value(this.element.val(),true);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var options={},element=this.element;$.each(["min","max","step"],function(i,option){var value=element.attr(option);if(value!==undefined&&value.length){options[option]=value}});return options},_events:{keydown:function(event){if(this._start(event)&&this._keydown(event)){event.preventDefault()}},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger("change",event)}},mousewheel:function(event,delta){if(!delta){return}if(!this.spinning&&!this._start(event)){return false}this._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(event)}},100);event.preventDefault()},"mousedown .flix_ui-spinner-button":function(event){var previous;previous=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function checkFocus(){var isActive=this.element[0]===this.document[0].activeElement;if(!isActive){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous})}}event.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this)});if(this._start(event)===false){return}this._repeat(null,$(event.currentTarget).hasClass("flix_ui-spinner-up")?1:-1,event)},"mouseup .flix_ui-spinner-button":"_stop","mouseenter .flix_ui-spinner-button":function(event){if(!$(event.currentTarget).hasClass("flix_ui-state-active")){return}if(this._start(event)===false){return false}this._repeat(null,$(event.currentTarget).hasClass("flix_ui-spinner-up")?1:-1,event)},"mouseleave .flix_ui-spinner-button":"_stop"},_draw:function(){var uiSpinner=this.uiSpinner=this.element.addClass("flix_ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=uiSpinner.find(".flix_ui-spinner-button").attr("tabIndex",-1).button().removeClass("flix_ui-corner-all");if(this.buttons.height()>Math.ceil(uiSpinner.height()*0.5)&&uiSpinner.height()>0){uiSpinner.height(uiSpinner.height())}if(this.options.disabled){this.disable()}},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true}return false},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""+""+""+""+""+""+""},_start:function(event){if(!this.spinning&&this._trigger("start",event)===false){return false}if(!this.counter){this.counter=1}this.spinning=true;return true},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event)},i);this._spin(steps*this.options.step,event)},_spin:function(step,event){var value=this.value()||0;if(!this.counter){this.counter=1}value=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger("spin",event,{value:value})!==false){this._value(value);this.counter++}},_increment:function(i){var incremental=this.options.incremental;if(incremental){return $.isFunction(incremental)?incremental(i):Math.floor(i*i*i/50000-i*i/500+17*i/200+1)}return 1},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min))}return precision},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(".");return decimal===-1?0:str.length-decimal-1},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin/options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max){return options.max}if(options.min!==null&&value1&&decodeURIComponent(anchor.href.replace(rhash,""))===decodeURIComponent(location.href.replace(rhash,""))}$.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var that=this,options=this.options;this.running=false;this.element.addClass("flix_ui-tabs flix_ui-widget flix_ui-widget-content flix_ui-corner-all").toggleClass("flix_ui-tabs-collapsible",options.collapsible).delegate(".flix_ui-tabs-nav > li","mousedown"+this.eventNamespace,function(event){if($(this).is(".flix_ui-state-disabled")){event.preventDefault()}}).delegate(".flix_ui-tabs-anchor","focus"+this.eventNamespace,function(){if($(this).closest("li").is(".flix_ui-state-disabled")){this.blur()}});this._processTabs();options.active=this._initialActive();if($.isArray(options.disabled)){options.disabled=$.unique(options.disabled.concat($.map(this.tabs.filter(".flix_ui-state-disabled"),function(li){return that.tabs.index(li)}))).sort()}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active)}else{this.active=$()}this._refresh();if(this.active.length){this.load(options.active)}},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash){this.tabs.each(function(i,tab){if($(tab).attr("aria-controls")===locationHash){active=i;return false}})}if(active===null){active=this.tabs.index(this.tabs.filter(".flix_ui-tabs-active"))}if(active===null||active===-1){active=this.tabs.length?0:false}}if(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1){active=collapsible?false:0}}if(!collapsible&&active===false&&this.anchors.length){active=0}return active},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)}},_tabKeydown:function(event){var focusedTab=$(this.document[0].activeElement).closest("li"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event)){return}switch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return}event.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey){focusedTab.attr("aria-selected","false");this.tabs.eq(selectedIndex).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",selectedIndex)},this.delay)}},_panelKeydown:function(event){if(this._handlePageNav(event)){return}if(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.focus()}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1;function constrain(){if(index>lastTabIndex){index=0}if(index<0){index=lastTabIndex}return index}while($.inArray(constrain(),this.options.disabled)!==-1){index=goingForward?index+1:index-1}return index},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).focus();return index},_setOption:function(key,value){if(key==="active"){this._activate(value);return}if(key==="disabled"){this._setupDisabled(value);return}this._super(key,value);if(key==="collapsible"){this.element.toggleClass("flix_ui-tabs-collapsible",value);if(!value&&this.options.active===false){this._activate(0)}}if(key==="event"){this._setupEvents(value)}if(key==="heightStyle"){this._setupHeightStyle(value)}},_tabId:function(tab){return tab.attr("aria-controls")||"flix_ui-tabs-"+getNextTabId()},_sanitizeSelector:function(hash){return hash?hash.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var options=this.options,lis=this.tablist.children(":has(a[href])");options.disabled=$.map(lis.filter(".flix_ui-state-disabled"),function(tab){return lis.index(tab)});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$()}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$()}else{this._activate(this._findNextTab(Math.max(0,options.active-1),false))}}else{options.active=this.tabs.index(this.active)}this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{this.active.addClass("flix_ui-tabs-active flix_ui-state-active").attr({"aria-selected":"true",tabIndex:0});this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})}},_processTabs:function(){var that=this;this.tablist=this._getList().addClass("flix_ui-tabs-nav flix_ui-helper-reset flix_ui-helper-clearfix flix_ui-widget-header flix_ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("flix_ui-state-default flix_ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return $("a",this)[0]}).addClass("flix_ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr("id"),tab=$(anchor).closest("li"),originalAriaControls=tab.attr("aria-controls");if(isLocal(anchor)){selector=anchor.hash;panel=that.element.find(that._sanitizeSelector(selector))}else{panelId=that._tabId(tab);selector="#"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist)}panel.attr("aria-live","polite")}if(panel.length){that.panels=that.panels.add(panel)}if(originalAriaControls){tab.data("flix_ui-tabs-aria-controls",originalAriaControls)}tab.attr({"aria-controls":selector.substring(1),"aria-labelledby":anchorId});panel.attr("aria-labelledby",anchorId)});this.panels.addClass("flix_ui-tabs-panel flix_ui-widget-content flix_ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(id){return $("
").attr("id",id).addClass("flix_ui-tabs-panel flix_ui-widget-content flix_ui-corner-bottom").data("flix_ui-tabs-destroy",true)},_setupDisabled:function(disabled){if($.isArray(disabled)){if(!disabled.length){disabled=false}else if(disabled.length===this.anchors.length){disabled=true}}for(var i=0,li;(li=this.tabs[i]);i++){if(disabled===true||$.inArray(i,disabled)!==-1){$(li).addClass("flix_ui-state-disabled").attr("aria-disabled","true")}else{$(li).removeClass("flix_ui-state-disabled").removeAttr("aria-disabled")}}this.options.disabled=disabled},_setupEvents:function(event){var events={click:function(event){event.preventDefault()}};if(event){$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"})}this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,events);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle==="fill"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed"){return}maxHeight-=elem.outerHeight(true)});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true)});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height("").height())}).height(maxHeight)}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest("li"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass("flix_ui-state-disabled")||tab.hasClass("flix_ui-tabs-loading")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false)){return}options.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr){this.xhr.abort()}if(!toHide.length&&!toShow.length){$.error("FlixjQ UI Tabs: Mismatching fragment identifier.")}if(toShow.length){this.load(this.tabs.index(tab),event)}this._toggle(event,eventData)},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true;function complete(){that.running=false;that._trigger("activate",event,eventData)}function show(){eventData.newTab.closest("li").addClass("flix_ui-tabs-active flix_ui-state-active");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete)}else{toShow.show();complete()}}if(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){eventData.oldTab.closest("li").removeClass("flix_ui-tabs-active flix_ui-state-active");show()})}else{eventData.oldTab.closest("li").removeClass("flix_ui-tabs-active flix_ui-state-active");toHide.hide();show()}toHide.attr({"aria-expanded":"false","aria-hidden":"true"});eventData.oldTab.attr("aria-selected","false");if(toShow.length&&toHide.length){eventData.oldTab.attr("tabIndex",-1)}else if(toShow.length){this.tabs.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1)}toShow.attr({"aria-expanded":"true","aria-hidden":"false"});eventData.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0]){return}if(!active.length){active=this.active}anchor=active.find(".flix_ui-tabs-anchor")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop})},_findActive:function(index){return index===false?$():this.tabs.eq(index)},_getIndex:function(index){if(typeof index==="string"){index=this.anchors.index(this.anchors.filter("[href$='"+index+"']"))}return index},_destroy:function(){if(this.xhr){this.xhr.abort()}this.element.removeClass("flix_ui-tabs flix_ui-widget flix_ui-widget-content flix_ui-corner-all flix_ui-tabs-collapsible");this.tablist.removeClass("flix_ui-tabs-nav flix_ui-helper-reset flix_ui-helper-clearfix flix_ui-widget-header flix_ui-corner-all").removeAttr("role");this.anchors.removeClass("flix_ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){if($.data(this,"flix_ui-tabs-destroy")){$(this).remove()}else{$(this).removeClass("flix_ui-state-default flix_ui-state-active flix_ui-state-disabled "+"flix_ui-corner-top flix_ui-corner-bottom flix_ui-widget-content flix_ui-tabs-active flix_ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}});this.tabs.each(function(){var li=$(this),prev=li.data("flix_ui-tabs-aria-controls");if(prev){li.attr("aria-controls",prev).removeData("flix_ui-tabs-aria-controls")}else{li.removeAttr("aria-controls")}});this.panels.show();if(this.options.heightStyle!=="content"){this.panels.css("height","")}},enable:function(index){var disabled=this.options.disabled;if(disabled===false){return}if(index===undefined){disabled=false}else{index=this._getIndex(index);if($.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null})}else{disabled=$.map(this.tabs,function(li,num){return num!==index?num:null})}}this._setupDisabled(disabled)},disable:function(index){var disabled=this.options.disabled;if(disabled===true){return}if(index===undefined){disabled=true}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1){return}if($.isArray(disabled)){disabled=$.merge([index],disabled).sort()}else{disabled=[index]}}this._setupDisabled(disabled)},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(".flix_ui-tabs-anchor"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel};if(isLocal(anchor[0])){return}this.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!=="canceled"){tab.addClass("flix_ui-tabs-loading");panel.attr("aria-busy","true");this.xhr.success(function(response){setTimeout(function(){panel.html(response);that._trigger("load",event,eventData)},1)}).complete(function(jqXHR,status){setTimeout(function(){if(status==="abort"){that.panels.stop(false,true)}tab.removeClass("flix_ui-tabs-loading");panel.removeAttr("aria-busy");if(jqXHR===that.xhr){delete that.xhr}},1)})}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr("href"),beforeSend:function(jqXHR,settings){return that._trigger("beforeLoad",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData))}}},_getPanelForTab:function(tab){var id=$(tab).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+id))}})})(FlixjQ);(function($){var increments=0;function addDescribedBy(elem,id){var describedby=(elem.attr("aria-describedby")||"").split(/\s+/);describedby.push(id);elem.data("flix_ui-tooltip-id",id).attr("aria-describedby",$.trim(describedby.join(" ")))}function removeDescribedBy(elem){var id=elem.data("flix_ui-tooltip-id"),describedby=(elem.attr("aria-describedby")||"").split(/\s+/),index=$.inArray(id,describedby);if(index!==-1){describedby.splice(index,1)}elem.removeData("flix_ui-tooltip-id");describedby=$.trim(describedby.join(" "));if(describedby){elem.attr("aria-describedby",describedby)}else{elem.removeAttr("aria-describedby")}}$.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var title=$(this).attr("title")||"";return $("").text(title).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}},_setOption:function(key,value){var that=this;if(key==="disabled"){this[value?"_disable":"_enable"]();this.options[key]=value;return}this._super(key,value);if(key==="content"){$.each(this.tooltips,function(id,element){that._updateContent(element)})}},_disable:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true)});this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.is("[title]")){element.data("flix_ui-tooltip-title",element.attr("title")).attr("title","")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.data("flix_ui-tooltip-title")){element.attr("title",element.data("flix_ui-tooltip-title"))}})},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data("flix_ui-tooltip-id")){return}if(target.attr("title")){target.data("flix_ui-tooltip-title",target.attr("title"))}target.data("flix_ui-tooltip-open",true);if(event&&event.type==="mouseover"){target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data("flix_ui-tooltip-open")){blurEvent=$.Event("blur");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true)}if(parent.attr("title")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr("title")};parent.attr("title","")}})}this._updateContent(target,event)},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption==="string"){return this._open(event,target,contentOption)}content=contentOption.call(target[0],function(response){if(!target.data("flix_ui-tooltip-open")){return}that._delay(function(){if(event){event.type=eventType}this._open(event,target,response)})});if(content){this._open(event,target,content)}},_open:function(event,target,content){var tooltip,events,delayedShow,positionOption=$.extend({},this.options.position);if(!content){return}tooltip=this._find(target);if(tooltip.length){tooltip.find(".flix_ui-tooltip-content").html(content);return}if(target.is("[title]")){if(event&&event.type==="mouseover"){target.attr("title","")}else{target.removeAttr("title")}}tooltip=this._tooltip(target);addDescribedBy(target,tooltip.attr("id"));tooltip.find(".flix_ui-tooltip-content").html(content);function position(event){positionOption.of=event;if(tooltip.is(":hidden")){return}tooltip.position(positionOption)}if(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event)}else{tooltip.position($.extend({of:target},this.options.position))}tooltip.hide();this._show(tooltip,this.options.show);if(this.options.show&&this.options.show.delay){delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(":visible")){position(positionOption.of);clearInterval(delayedShow)}},$.fx.interval)}this._trigger("open",event,{tooltip:tooltip});events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true)}},remove:function(){this._removeTooltip(tooltip)}};if(!event||event.type==="mouseover"){events.mouseleave="close"}if(!event||event.type==="focusin"){events.focusout="close"}this._on(true,target,events)},close:function(event){var that=this,target=$(event?event.currentTarget:this.element),tooltip=this._find(target);if(this.closing){return}clearInterval(this.delayedShow);if(target.data("flix_ui-tooltip-title")){target.attr("title",target.data("flix_ui-tooltip-title"))}removeDescribedBy(target);tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this))});target.removeData("flix_ui-tooltip-open");this._off(target,"mouseleave focusout keyup");if(target[0]!==this.element[0]){this._off(target,"remove")}this._off(this.document,"mousemove");if(event&&event.type==="mouseleave"){$.each(this.parents,function(id,parent){$(parent.element).attr("title",parent.title);delete that.parents[id]})}this.closing=true;this._trigger("close",event,{tooltip:tooltip});this.closing=false},_tooltip:function(element){var id="flix_ui-tooltip-"+increments++,tooltip=$("
").attr({id:id,role:"tooltip"}).addClass("flix_ui-tooltip flix_ui-widget flix_ui-corner-all flix_ui-widget-content "+(this.options.tooltipClass||""));$("
").addClass("flix_ui-tooltip-content").appendTo(tooltip);tooltip.appendTo(this.document[0].body);this.tooltips[id]=element;return tooltip},_find:function(target){var id=target.data("flix_ui-tooltip-id");return id?$("#"+id):$()},_removeTooltip:function(tooltip){tooltip.remove();delete this.tooltips[tooltip.attr("id")]},_destroy:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true);$("#"+id).remove();if(element.data("flix_ui-tooltip-title")){element.attr("title",element.data("flix_ui-tooltip-title"));element.removeData("flix_ui-tooltip-title")}})}})}(FlixjQ));} (function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:false};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){function hasSomeParentTheClass(element,classname){if(!element.parentNode)return false;if(element.className.length&&element.className.split(' ').indexOf(classname)>=0)return true;return hasSomeParentTheClass(element.parentNode,classname);}var noswipe=hasSomeParentTheClass(e.target,'flix-noswipe');if(e.touches.length==1&&noswipe==false){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(FlixjQ);var ENV='-prod' var flixmain_base_url='//media.flixcar.com/delivery/';var flixmain_api_base_url='//media.flixcar.com/modular/';var flixmain_base_modular_url='https://media.flixcar.com/modular/';var flixmain_api_call_url='json/modular-comp-prods.json';var flixmain_api_call_url_dummy=false;var flixmain_product_id='';var flixmain_distributor='';var flixmain_abtesting=false;var flixmain_stop_tracking=false;var flixmain_language='';var flixmain_language_fliso='';var flixmain_dmn='';var flixmain_button_img='';var flixmain_mpn='';var flixmain_ean='';var flixmain_adjacent_codes='';var flixmain_smart_config_id='';var flixmain_HS_pos='';var flixmain_HS_container='';var flixRetailerUrlStore=window.location.href;var initialUrl=window.location.href;if(typeof URLSearchParams=='function'){var flixurlParams=new URLSearchParams(window.location.search);var myScript=document.querySelector('script[src*="/js/service.js"]');if(document.currentScript){myScript=document.currentScript} if(myScript){var myScriptSrc=myScript.getAttribute('src');var serviceurl=new URLSearchParams(myScriptSrc);if(serviceurl.get('mpn')||serviceurl.get('ean')){if(serviceurl.get('l')) serviceurl.set('iso',serviceurl.get('l').toLowerCase());if(serviceurl.get('fl')) serviceurl.set('flIso',serviceurl.get('fl').toLowerCase());if(serviceurl.get('d')) serviceurl.set('distId',serviceurl.get('d'));if(serviceurl.get('mpn')) serviceurl.set('mpn',encodeURIComponent(serviceurl.get('mpn')));if(serviceurl.get('ean')) serviceurl.set('ean',encodeURIComponent(serviceurl.get('ean')));flixurlParams=serviceurl;}} var flixloaderjs=document.querySelector('script[src*="/js/loader.js"]');if(!myScript){if(flixloaderjs){var serviceurl=new URLSearchParams(flixurlParams);if(flixloaderjs.getAttribute('data-flix-mpn')||flixloaderjs.getAttribute('data-flix-ean')){if(flixloaderjs.getAttribute('data-flix-language')) serviceurl.set('iso',flixloaderjs.getAttribute('data-flix-language').toLowerCase());if(flixloaderjs.getAttribute('data-flix-fallback-language')) serviceurl.set('flIso',flixloaderjs.getAttribute('data-flix-fallback-language').toLowerCase());if(flixloaderjs.getAttribute('data-flix-distributor')) serviceurl.set('distId',flixloaderjs.getAttribute('data-flix-distributor'));if(flixloaderjs.getAttribute('data-flix-mpn')) serviceurl.set('mpn',encodeURIComponent(flixloaderjs.getAttribute('data-flix-mpn')));if(flixloaderjs.getAttribute('data-flix-ean')) serviceurl.set('ean',encodeURIComponent(flixloaderjs.getAttribute('data-flix-ean')));if(flixloaderjs.getAttribute('data-flix-sku')) serviceurl.set('sku',encodeURIComponent(flixloaderjs.getAttribute('data-flix-sku')));flixurlParams=serviceurl;}}} if(flixurlParams.get('mpn')||flixurlParams.get('ean')){flixmain_mpn=flixurlParams.get('mpn')?flixurlParams.get('mpn'):'';flixmain_ean=flixurlParams.get('ean')?flixurlParams.get('ean'):'';if(flixloaderjs){if(flixloaderjs.getAttribute('data-flix-mpn')&&flixloaderjs.getAttribute('data-flix-mpn').length>2){flixmain_mpn=encodeURIComponent(flixloaderjs.getAttribute('data-flix-mpn'));} if(flixloaderjs.getAttribute('data-flix-ean')&&flixloaderjs.getAttribute('data-flix-ean').length>2){flixmain_ean=encodeURIComponent(flixloaderjs.getAttribute('data-flix-ean'));if(flixmain_ean.length<13){flixmain_ean=Array(13+1-flixmain_ean.length).join('0')+flixmain_ean;}}} flixmain_distributor=flixurlParams.get('distId')?flixurlParams.get('distId'):'';flixmain_language=flixurlParams.get('iso')?flixurlParams.get('iso'):'';flixmain_adjacent_codes=flixurlParams.get('adjacent_codes')?flixurlParams.get('adjacent_codes'):'';flixmain_abtesting=flixurlParams.get('abtesting')?flixurlParams.get('abtesting'):false;flixmain_HS_pos=flixurlParams.get('hotposition')?flixurlParams.get('hotposition'):'';flixmain_HS_container=flixurlParams.get('hotimage_container')?flixurlParams.get('hotimage_container'):'';flixmain_language_fliso=flixurlParams.get('flIso')?flixurlParams.get('flIso'):'';flixmain_api_call_url_dummy=flixurlParams.get('dummy')?flixurlParams.get('dummy'):false;flixmain_smart_config_id=flixurlParams.get('flix-smart')?flixurlParams.get('flix-smart'):'';flixmain_stop_tracking=flixurlParams.get('flix-stoptrack')?true:false;flixmain_button_img=flixurlParams.get('img')?flixurlParams.get('img'):'';flixmain_dmn=flixurlParams.get('dmn')?flixurlParams.get('dmn'):false;var flixmain_mpn_ean='';if(flixmain_mpn){flixmain_mpn_ean+=flixmain_mpn} if(flixmain_ean){flixmain_mpn_ean+=flixmain_ean} if(flixRetailerUrlStore.search('ecogadgetmart')!=-1){flixmain_dmn=window.btoa((window.location&&window.location.hostname)?window.location.hostname:(window.location&&window.location.host)?window.location.host:'')} if(flixmain_dmn){flixmain_mpn_ean+=flixmain_dmn} if(typeof flixmain_mpn_ean==='string'){flixmain_mpn_ean=flixmain_mpn_ean.replace(/[^a-zA-Z0-9]+/g,'-').replace(/^-+|-+$/g,'');} flixmain_api_call_url='web-api/'+flixmain_language+'/'+flixmain_distributor+'/'+flixmain_mpn_ean+'/t.json?mpn='+flixmain_mpn+'&ean='+flixmain_ean+'&distId='+flixmain_distributor+'&iso='+flixmain_language+'&flIso='+flixmain_language_fliso;}} var distributorIdsDE=[171,877,492,12498,546,4904];if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){flixmain_api_base_url=flixmain_api_base_url.replace('modular-alpha.flix360.io','syndication-de-alpha.flix360.io') flixmain_api_base_url=flixmain_api_base_url.replace('media.flixcar.com','syndication.flix360.com');flixmain_base_modular_url=flixmain_base_modular_url.replace('media.flixcar.com','syndication.flix360.com')} if(flixmain_stop_tracking){var flixtracking=false;} var flixtopurl=document.URL;var flixs=flixtopurl.indexOf("#");if(flixs!=-1){flixtopurl=flixtopurl.substring(0,flixs);} if(typeof window.flixJsCallbacks!="undefined"&&typeof window.flixJsCallbacks._loadCallback=="undefined"&&window.flixJsCallbacks.pageCapture&&window.flixJsCallbacks.pageCapture.pn&&window.flixJsCallbacks.pageCapture.pn!=flixtopurl){window.flixJsCallbacks={};} window.flixJsCallbacks=window.flixJsCallbacks||{};window.flixJsCallbacks.pageGeneric=window.flixJsCallbacks.pageGeneric||{};window.flixJsCallbacks.pageSpecific=window.flixJsCallbacks.pageSpecific||{};window.flixJsCallbacks.pageGeneric.pageSpecific=window.flixJsCallbacks.pageSpecific||{};FlixjQ.fn.logging=function(){};window.log5=function(){};window.log4=function(){};window.log3=function(){};window.log2=function(){};if(location.href.search('flix-log')!=-1) window.logflix=function(){logflix.history=logflix.history||[];logflix.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments));}};else window.logflix=function(){};FlixjQ.fn.logging.noTracking=false;window.FlixServices={flixmain_base_url:null,time_stamp:null,inpage_holder:null,modular_match_data:null,modular_updated:false,modular_hotspot_data:null,modular_hotspot_settings:null,hotspot_results_hold:null,impage_preloader:null,is_content_loaded:false,minisite_loaded:false,hotspotCss_loaded:false,service_lock_inpage:false,service_lock_minisite:false,service_lock_hotspot:false,webar_cloud_url:"https://d15mv1adrb1s6e.cloudfront.net/",webar_usdz_url:null,Tracreplacer:true,smart_abtest_object:null,inpcontainername:'#flix-inpage',mipcontainername:'flix-minisite',init:function(obj){var d=new Date();var i=d.getTime();var itemplate_node=i;FlixServices.time_stamp=itemplate_node inpcontainer=FlixjQ(FlixServices.inpcontainername,FlixjQ("body"));FlixServices.inpage_holder=inpcontainer FlixServices.flixmain_base_url=obj.base_url if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery'+ENV+'.flix360.io/static/distributor/'+flixmain_distributor+'/pagedata-specific.js');}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=static/distributor/'+flixmain_distributor+'/pagedata-specific.js');} window.flixJsCallbacks=window.flixJsCallbacks||{};window.flixJsCallbacks.pageGeneric=window.flixJsCallbacks.pageGeneric||{};window.flixJsCallbacks.pageSpecific=window.flixJsCallbacks.pageSpecific||{};FlixServices.flixgeneric();FlixServices.appendGeneric();FlixServices.pagedataGeneric();window.flixJsCallbacks.pageGeneric.pageSpecific=window.flixJsCallbacks.pageSpecific||{};if(flixmain_distributor=='18128'){setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.triggerApiCallForModular(obj);logflix("18128 retailer check")},3000);}else{if(flixmain_abtesting){logflix("flixmain_abtesting is running") setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.abTestingCallMaker()){logflix("abTestingCallMaker is true") if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.triggerFallback();}else{if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.triggerApiCallForModular(obj);}},1000);}else{if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.triggerApiCallForModular(obj);}} FlixServices.checkModuleExists('.flix-new-template,.flix-jw, .flix_jw_videoid, #fullMultidata, .flix-jwlight,#flix-lg-inpage .flix-C0059 .flix-see-video,.flix-gp1').then((elm)=>{if(typeof FlixServices!='undefined'&&FlixServices){if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery-alpha.flix360.io/static/jwplayer/js/video.js');}else if(location.href.indexOf('flix-videov3')!==-1||sessionStorage.getItem('videov3')==='1'){FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/videov3.js');}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/video.js');}}});},triggerApiCallForModular:function(obj){if(!flixmain_api_call_url&&!flixmain_api_call_url_dummy){return false;} if(flixmain_smart_config_id){FlixServices.smart_abtest_object={};FlixServices.smart_abtest_object.p='qa';FlixServices.smart_abtest_object.config_id=flixmain_smart_config_id;FlixServices.smart_abtest_object.active=true;} if(FlixServices.smart_abtest_object){try{flixmain_api_call_url=flixmain_api_call_url+'&smart='+btoa(JSON.stringify(FlixServices.smart_abtest_object))}catch(error){}} initialUrl=FlixServices.flixGetURL();window.fetch(!flixmain_api_call_url_dummy?obj.flixmain_api_base_url+flixmain_api_call_url:flixmain_api_call_url_dummy).then(function(res){return res.json()}).then(function(data){if(flixmain_distributor==9265){try{new MutationObserver(()=>{const url=window.location.href;if(!url.includes(flixRetailerUrlStore)){lastUrl=url;if(document.querySelector('script[src*="//media.flixfacts.com/js/loader.js"]')!=null){document.querySelector('script[src*="//media.flixfacts.com/js/loader.js"]').remove();} if(typeof(flixJsCallbacks)==="object"&&typeof window.flixJsCallbacks.reset!='undefined'){window.flixJsCallbacks.reset();}}}).observe(document,{subtree:true,childList:true});var afterResponseUrl=window.location.href;if(!afterResponseUrl.includes(flixRetailerUrlStore)){logflix('url changed');return false;}else{logflix('url matched')}}catch(ignore){}};if((flixmain_distributor==859||flixmain_distributor==5758||flixmain_distributor==18394||flixmain_distributor==6579)&&initialUrl!==FlixServices.flixGetURL()){return;};if(!data.oem&&data!='wildcard_failure'){data=FlixServices.contentCustomization(data);} FlixServices.modular_match_data=data var t_modular_hotspot_data={} var d_modular_hotspot_settings={} if(data=='wildcard_failure'){FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/tracking/tracking.js');} if(!data.oem){var hotspot_key=0;data.forEach(function(product,index){window.flixprodurls=window.flixprodurls||{};var pnurl=FlixServices.flixGetURL() if(initialUrl!==FlixServices.flixGetURL()&&flixmain_distributor==620){pnurl='';} if(typeof(product.product_meta.product_id)!='undefined') window.flixprodurls[product.product_meta.product_id]=pnurl if(typeof(product.product_meta.inpage)!='undefined'&&product.product_meta.inpage.disabled=="0"){}else{return;} var customContentChoice=[] if(product.settings&&typeof(product.settings.smart)!='undefined'){if(product.settings.smart.active){if(typeof(product.settings.smart.rule)!='undefined'&&typeof(product.settings.smart.rule.Hotspot)!='undefined'){customContentChoice=product.settings.smart.rule.Hotspot;}}} var custom_loaded_asset_type=null if(customContentChoice.length){customContentChoice.forEach(function(settings,index){switch(settings.pattern){case"primaryLayout":if(typeof(settings.loaded_asset_type)!=='undefined'){if(typeof(settings.validate)!=='undefined'){var keysArray=settings.validate.key.split('.');var result=FlixServices.getValueByNestedKeys(product,keysArray);if(result==settings.validate.value){}else{logflix("hotspot not matching .. skipping",result) return false;}} custom_loaded_asset_type=settings.loaded_asset_type} break;}});} if(typeof(product.modules)!='undefined'){setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.modular_updated=true;},100);if(typeof(product.product_meta.hotspot)!='undefined'&&product.product_meta.hotspot&&product.product_meta.hotspot.disabled=="0"){if(product.modules.hotspot){if(product.modules.viewWebar&&typeof(product.modules.viewWebar)!=='undefined'){if(typeof(product.modules.viewWebar.type_web_id)!=='undefined'){if(typeof(product.modules.viewWebar.url)!=='undefined'&&product.modules.viewWebar.url.includes('player/index.html')){FlixServices.setWebArUrlsNew(product.modules.viewWebar.type_web_id);}else{FlixServices.setWebArUrls(product.modules.viewWebar.type_web_id);}}} var modular_has_reviews=false;var modular_has_comparison=false;var modular_has_thirdpartyapp=false;var modular_has_viewWebar=false;var modular_has_ugcs=false;var modular_has_accessory_widget=false;if(typeof(product.modules)!='undefined'){FlixjQ.each(product.modules,function(ix,main_data){if(main_data&&main_data.module_mapper){var clonedObj=JSON.parse(JSON.stringify(main_data));switch(main_data.module_mapper){case"ugcs":break;case"thirdPartyApp":modular_has_thirdpartyapp=FlixServices.flixinpage.processor(clonedObj,product);try{modular_has_thirdpartyapp=modular_has_thirdpartyapp.replace(clonedObj.module_id,product.modules.hotspot["product_thirdpartyapp"].module_id) modular_has_thirdpartyapp=modular_has_thirdpartyapp.replace("{{flix_distributor_id}}",flixmain_distributor);}catch(error){} break;case"accessory_widget":modular_has_accessory_widget=FlixServices.flixinpage.processor(clonedObj,product);try{modular_has_accessory_widget=modular_has_accessory_widget.replace(clonedObj.module_id,product.modules.hotspot["accessory_widget"].module_id)}catch(error){} break;case"reviews":modular_has_reviews=FlixServices.flixinpage.processor(clonedObj,product);try{modular_has_reviews=modular_has_reviews.replace(clonedObj.module_id,product.modules.hotspot["product_review"].module_id)}catch(error){} break;case"view3dfm":if(typeof(product.modules.viewWebar)!='undefined'&&product.modules.viewWebar){clonedObj.is_other="1";clonedObj.is_hexaeyekandy="";clonedObj.url=clonedObj.mobileUrl||clonedObj.url;modular_has_viewWebar=FlixServices.flixinpage.processor(clonedObj,product);try{modular_has_viewWebar=modular_has_viewWebar.replace(clonedObj.module_id,product.modules.hotspot["desktop_webar"].module_id)}catch(error){}} break;case"comparison_tables":modular_has_comparison=FlixServices.flixinpage.processor(clonedObj,product);try{modular_has_comparison=modular_has_comparison.replace(clonedObj.module_id,product.modules.hotspot["product_comparison"].module_id)}catch(error){} break;} clonedObj=null;}});} for(let key in product.modules.hotspot){if(custom_loaded_asset_type){if(custom_loaded_asset_type.hasOwnProperty(key)){product.modules.hotspot[key].priority_order=custom_loaded_asset_type[key]}else{logflix("hotspot key not matching .. skipping",key) continue;}} if(!t_modular_hotspot_data.hasOwnProperty(key)){if(key=="product_webar"||key=="desktop_webar"){if(!modular_has_viewWebar){continue;}else{if(product.modules.hotspot[key].html){var resolved=product.modules.hotspot[key].html.replace(/&d=6&/g,'&d='+flixmain_distributor+'&') resolved=resolved.replace(/&d=6&/g,'&d='+flixmain_distributor+'&')} product.modules.hotspot[key].html=modular_has_viewWebar var hs_webar_provider=(typeof(product.modules.viewWebar)!='undefined'&&typeof(product.modules.viewWebar.webar_provider)!='undefined')?product.modules.viewWebar.webar_provider:"";product.modules.hotspot[key].ui_default=product.modules.hotspot[key].ui_hover=flixmain_base_modular_url+'flix-button/?env=prod&switch=ArButton&isoCode='+product.product_meta.language_iso+'&template='+hs_webar_provider+'&distId='+flixmain_distributor}} if(FlixServices.ismobile()){if(typeof(product.settings.manufacturer_settings)=='undefined'){if(key=="product_webar"||key=="desktop_webar"){}else{continue;}} if(key=="product_webar"||key=="desktop_webar"){var hs_dist_settings=product.settings.distributor_settings;if((typeof(hs_dist_settings.apply_viewwebar)!='undefined'&&hs_dist_settings.apply_viewwebar=="0")){continue;}}} if(key=="product_comparison"){if(!modular_has_comparison){continue;}else{product.modules.hotspot[key].html=modular_has_comparison;}} if(key=="product_thirdpartyapp"){if(!modular_has_thirdpartyapp){continue;}else{var distributorIds_thirdpartyapp=[6,160,370,859,3922,861,860,4344,4416,12238,13870,7205,15673,9346,867,135];if(product.modules.hotspot[key].fullHtml&&distributorIds_thirdpartyapp.indexOf(parseInt(flixmain_distributor))!=-1&&product&&product.product_meta&&product.product_meta.manufacturer_id&&product.product_meta.manufacturer_id=='57'){modular_has_thirdpartyapp=FlixServices.flixinpage.processor(product.modules.hotspot[key],product);modular_has_thirdpartyapp=product.modules.hotspot[key].fullHtml;} product.modules.hotspot[key].html=modular_has_thirdpartyapp;}} if(key=="accessory_widget"){if(!modular_has_accessory_widget){continue;}else{product.modules.hotspot[key].html=modular_has_accessory_widget;}} if(key=="product_review"){if(!modular_has_reviews){continue;}else{product.modules.hotspot[key].html=modular_has_reviews;}} if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1&&product.modules.hotspot[key]&&product.modules.hotspot[key].html){product.modules.hotspot[key].html=product.modules.hotspot[key].html.replace(/\/\/delivery-alpha.flix360.io\//g,'//syndication-de-alpha.flix360.io/');product.modules.hotspot[key].html=product.modules.hotspot[key].html.replace(/\/\/alpha-assets.flix360.io\//g,'//syndication-de-alpha.flix360.io/f360cdn/');product.modules.hotspot[key].html=product.modules.hotspot[key].html.replace(/\/\/media.flixcar.com\//g,'//syndication.flix360.com/');product.modules.hotspot[key].html=product.modules.hotspot[key].html.replace(/media.flixfacts.com\//g,'syndication.flix360.com/static-assets/');} if(hotspot_key>0){if(typeof window.OemHsAvailable=='undefined'&&FlixServices.ismobile()&&typeof(product.settings.manufacturer_settings)!='undefined'&&typeof t_modular_hotspot_data!='undefined'&&typeof d_modular_hotspot_settings.length=='undefined'){product.settings.distributor_settings.adjacent_codes=typeof(product.settings.adjacent_codes)!=='undefined'?product.settings.adjacent_codes:flixmain_adjacent_codes;product.settings.distributor_settings.using_hotspot_v2=true;dist_settings=product.settings.distributor_settings;d_modular_hotspot_settings={"image_src":dist_settings.image_src?dist_settings.image_src:'',"image_id":dist_settings.image_id?dist_settings.image_id:'',"alignment":dist_settings.alignment?dist_settings.alignment:false,"desktop_webar":dist_settings.desktop_webar?dist_settings.desktop_webar:'',"qr_only":dist_settings.qr_only?dist_settings.qr_only:'',"no_hotspots":parseInt(dist_settings.no_hotspots)?dist_settings.no_hotspots:false,"ar_google":false,"color_hash":dist_settings.color_hash?dist_settings.color_hash:null,"image_container":dist_settings.image_container?dist_settings.image_container:'',"logo_program_container":dist_settings.logo_program_container?dist_settings.logo_program_container:'',"prefix":dist_settings.prefix?dist_settings.prefix:"flix_","using_hotspot_v2":dist_settings.using_hotspot_v2?dist_settings.using_hotspot_v2:true,"load3dfw":1} if(key!="comp_product_summary"){var total_obj=Object.keys(t_modular_hotspot_data).length var _priority_order=product.modules.hotspot[key].priority_order if(key=="product_webar"||key=="desktop_webar"){t_modular_hotspot_data[key]=product.modules.hotspot[key];}else if(total_obj<5){t_modular_hotspot_data[key]=product.modules.hotspot[key];}else{var lowest_priority_key=null;var lowest_priority_value=0;for(var existing_key in t_modular_hotspot_data){if(key=="product_webar"||key=="desktop_webar"){continue;} if(t_modular_hotspot_data[existing_key].priority_order>lowest_priority_value){lowest_priority_key=existing_key;lowest_priority_value=t_modular_hotspot_data[existing_key].priority_order;}} if(lowest_priority_key!==null&&_priority_orderlowest_priority_value){lowest_priority_key=existing_key;lowest_priority_value=t_modular_hotspot_data[existing_key].priority_order;}} if(lowest_priority_key!==null&&_priority_order0){this_object["image_url"]=obj.background_image[0].img_400_url;if(obj.background_image[0].image_text!='undefined'&&obj.background_image[0].image_text!=null&&obj.background_image[0].image_text){this_object["image_text"]=obj.background_image[0].image_text;} if(obj.background_image[0].image_text==undefined||obj.background_image[0].image_text=="") this_object["image_text"]='hotspot feature';} if(typeof(obj.background_image)=="string"&&obj.background_image){this_object["image_url"]=obj.background_image;if(obj.image_text!='undefined'&&obj.image_text!=null&&obj.image_text){this_object["image_text"]=obj.image_text;} if(obj.image_text==undefined||obj.image_text=="") this_object["image_text"]='hotspot feature';} if(typeof(obj.image_url)=="string"&&obj.image_url){this_object["image_url"]=obj.image_url;if(obj.image_text!='undefined'&&obj.image_text!=null&&obj.image_text){this_object["image_text"]=obj.image_text;} if(obj.image_text==undefined||obj.image_text=="") this_object["image_text"]='hotspot feature';} if(!this_object["image_url"]&&!this_object["url"]&&!this_object["video_html"]&&!this_object["description"]&&!this_object["html"]){}else{arrayOfObjects.push(this_object);xx++;}} myObject[key]=arrayOfObjects;}else{var this_object={"description":result.description||result.html||'',"html":result.html||'',"title":result.title||result.ctitle||'',"video_html":result.video_html||result.video_frame_data||'',"loop_index":xx,"class_name":result.class_name||'',"url":result.url||'',"custom_style":result.custom_style||'',} if(result.background_image&&result.background_image.length>0){this_object["image_url"]=result.background_image[0].img_400_url;if(obj.background_image[0].image_text!='undefined'&&obj.background_image[0].image_text!=null&&obj.background_image[0].image_text){this_object["image_text"]=obj.background_image[0].image_text;} if(obj.background_image[0].image_text==undefined||obj.background_image[0].image_text=="") this_object["image_text"]='hotspot feature';} if(!this_object["image_url"]&&!this_object["url"]&&!this_object["video_html"]&&!this_object["description"]&&!this_object["html"]){}else{xx++;myObject={...myObject,...this_object}}}}}) product.modules.hotspot[key].html=FlixServices.flixinpage.processor(myObject,product);break;default:break;}}}}} hotspot_key++;}} if(typeof(product.settings.distributor_settings.service_lock_minisite)!=='undefined'){FlixServices.service_lock_minisite=true;} if(typeof(product.settings.distributor_settings.service_lock_inpage)!=='undefined'){FlixServices.service_lock_inpage=true;} if(typeof(product.settings.distributor_settings.service_lock_hotspot)!=='undefined'){FlixServices.service_lock_hotspot=true;}}});} if(d_modular_hotspot_settings.image_container){FlixServices.modular_hotspot_data=t_modular_hotspot_data FlixServices.modular_hotspot_settings=[d_modular_hotspot_settings];FlixServices.hotspot_results_hold=JSON.parse(JSON.stringify({"hotspots":t_modular_hotspot_data,"settings":[d_modular_hotspot_settings]}));} if(data.oem){window.flixprodurls=window.flixprodurls||{};window.flixprodurls[0]=FlixServices.flixGetURL();if(data.oem.not_migrated){if(flixmain_distributor!=11395) FlixServices.triggerFallback();} if(data.oem.match_failed){logflix('match_failed--'+typeof(window.flixJsCallbacks)+"__"+typeof(window.flixJsCallbacks["_loadNoshowCallback"])) var callnoshowcc=0 function callnoshow(){if(typeof(window.flixJsCallbacks)==="object"&&typeof(window.flixJsCallbacks["_loadNoshowCallback"])==="function"){logflix('match_failed2');var flixCBfunctions=window.flixJsCallbacks["_loadNoshowCallback"];flixCBfunctions();window.flixJsCallbacks["_loadNoshowCallback"]=function(){};}else{setTimeout(function(){logflix('callnoshow again');callnoshowcc++;if(callnoshowcc<5) callnoshow();},2000)}} callnoshow();}} if(typeof flixtracking=='undefined'){if(!data.oem||(data.oem&&typeof data.oem.not_migrated=='undefined')){if(location.href.search('localhost/demo-flix360-io')!=-1||location.href.search('flix-localtrack')!=-1) FlixServices.loadFlixJs('https://localhost/demo-flix360-io/performance/modularvnew/js/tracking.js');else if(ENV=='-alpha'&&distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1) FlixServices.loadFlixJs('https://syndication-de-alpha.flix360.io/performance/modularvnew/js/tracking.js');else if(location.href.search('http://demo-local.flix360.io/')!=-1) FlixServices.loadFlixJs('http://demo-local.flix360.io/performance/modularvnew/js/tracking.js');else if(ENV=='-alpha') FlixServices.loadFlixJs('https://demo.flix360.io/performance/modularvnew/js/tracking.js');else FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/tracking/tracking.js');}}}).catch(function(err){FlixServices.fetchfailed=true});},contentCustomization:function(matchData,isHotspost){if(!matchData.length){return matchData;} var newMatchData=[] matchData.forEach(function(product,index){var customContentChoice=[] if(product.settings&&typeof(product.settings.smart)!='undefined'){if(product.settings.smart.active){if(typeof(product.settings.smart.rule)!='undefined'&&typeof(product.settings.smart.rule.Inpage)!='undefined'){customContentChoice=product.settings.smart.rule.Inpage;}else{customContentChoice=product.settings.smart.rule;}}} if(customContentChoice.length){customContentChoice.forEach(function(settings,index){switch(settings.pattern){case"randomShuffle":switch(settings.choice){case"features":if(product.modules&&product.modules.features.length>0){product.modules.features=product.modules.features.sort(()=>Math.random()-0.5);} break;} case"locateFeatureModule":if(settings.choice){if(product.modules&&product.modules.features&&product.modules.features.length>0){product.modules.features=FlixServices.repositionModuleData(settings,product.modules.features);}} break;case"maxFeatureCount":if(settings.choice){product.modules.features=product.modules.features.slice(0,+settings.choice);if(product.modules.hotspot.key_features.data){product.modules.hotspot.key_features.data=product.modules.hotspot.key_features.data.slice(0,+settings.choice);}} break;case"switchFeatureModule":case"switchModule":if(settings.nextChoice&&product.settings.loaded_modules[settings.choice]){if(typeof(settings.loaded_modules)!=='undefined'&&settings.loaded_modules[settings.nextChoice]){product.settings.loaded_modules[settings.nextChoice]=settings.loaded_modules[settings.nextChoice];} if(typeof(settings.loaded_module_files)!=='undefined'){if(settings.loaded_module_files['css']){product.settings.inpage_settings.css_urls_to_load.push(flixmain_base_modular_url+'js/minify/?url='+settings.loaded_module_files['css']);} if(settings.loaded_module_files['js']){product.settings.inpage_settings.js_urls_to_load.push(flixmain_base_modular_url+'js/minify/?url='+settings.loaded_module_files['js']);}}} break;case"layoutChange":case"primaryLayout":if(settings.nextChoice){if(typeof(settings.validate)!=='undefined'){var keysArray=settings.validate.key.split('.');var result=FlixServices.getValueByNestedKeys(product,keysArray);if(result==settings.validate.value){}else{logflix("not skipping",result) return false;}} if(typeof(settings.choice)!=='undefined'&&settings.nextChoice){product.settings[settings.choice]=settings.nextChoice;} if(typeof(settings.loaded_module_files)!=='undefined'){if(settings.loaded_module_files['css']){product.settings.inpage_settings.css_urls_to_load.push(flixmain_base_modular_url+'js/minify/?url='+settings.loaded_module_files['css']);} if(settings.loaded_module_files['js']){product.settings.inpage_settings.js_urls_to_load.push(flixmain_base_modular_url+'js/minify/?url='+settings.loaded_module_files['js']);}}} break;case"excludeFeatureUsingTitle":if(settings.choice&&settings.nextChoice){FlixjQ.each(product.modules.features,function(index,flixmain_data_each){if(flixmain_data_each.module_id==settings.choice){if(Array.isArray(product.modules.features[index])&&product.modules.features[index].length>0){FlixjQ.each(product.modules.features[index],function(index1,flixmain_data_each1){if(Array.isArray(flixmain_data_each1)&&flixmain_data_each1.length>0){FlixjQ.each(product.modules.features[index][index1],function(index2,flixmain_data_each2){if(flixmain_data_each2.title){if(flixmain_data_each2.title.includes(settings.nextChoice)){delete product.modules.features[index][index1][index2]}}});}else{if(flixmain_data_each1.title){if(flixmain_data_each1.title.includes(settings.nextChoice)){delete product.modules.features[index][index1]}}}});}else{if(product.modules.features[index].title){if(product.modules.features[index].title.includes(settings.nextChoice)){delete product.modules.features[index]}}}}});} break;}});} newMatchData.push(product)});return newMatchData;},repositionModuleData:function(settings,jsonData){var module_id=settings.choice,desired_position=settings.nextChoice;var v_key=v_val=false;if(typeof(settings.validate)!=='undefined'&&typeof(settings.validate.key)!=='undefined'&&typeof(settings.validate.value)!=='undefined'){var v_key=settings.validate.key var v_val=settings.validate.value} const moduleIndex=jsonData.findIndex(item=>{if(item.module_id===module_id){if(v_key&&v_val){if(typeof(item[v_key])!=='undefined'&&item[v_key]==v_val){return true}}else{return true}}});if(moduleIndex!==-1){const moduleItem=jsonData.splice(moduleIndex,1)[0];jsonData.splice(desired_position-1,0,moduleItem);} return jsonData;},getValueByNestedKeys:function(obj,keysArray){if(!keysArray.length){return obj;} const currentKey=keysArray[0];const remainingKeys=keysArray.slice(1);if(currentKey.includes('[')&¤tKey.includes(']')){const[keyWithoutIndex,index]=currentKey.split('[');const numericIndex=parseInt(index.replace(']',''));if(obj.hasOwnProperty(keyWithoutIndex)&&Array.isArray(obj[keyWithoutIndex])){const nextObj=obj[keyWithoutIndex][numericIndex];return FlixServices.getValueByNestedKeys(nextObj,remainingKeys);}else{return undefined;}}else{if(obj.hasOwnProperty(currentKey)){const nextObj=obj[currentKey];return FlixServices.getValueByNestedKeys(nextObj,remainingKeys);}else{return undefined;}}},triggerFallback:function(){var dmn=(window.location&&window.location.hostname)?window.location.hostname:(window.location&&window.location.host)?window.location.host:'';if(dmn!=''){dmn=window.btoa(dmn);} var mpn=flixmain_mpn?'/mpn/'+flixmain_mpn:'';var ean=flixmain_ean?'/ean/'+flixmain_ean:'';var fallback_url='/'+flixmain_distributor+'/'+flixmain_language+mpn+ean+'?d='+flixmain_distributor+'&l='+flixmain_language+'&mpn='+flixmain_mpn+'&ean='+flixmain_ean+'&fl='+flixmain_language_fliso+'&ssl=1&dmn='+dmn;if(FlixServices.abTestingCallMaker()){fallback_url+='&abtesting=1';} if(flixmain_button_img){fallback_url+='&img='+flixmain_button_img;} if(FlixServices.ismobile()){fallback_url+='&ismobile=1';} fallback_url+='&modular_request=1&ext=.js';if(document.querySelector('script[data-flix-distributor]')!=null){var innodename=document.querySelector('script[data-flix-distributor]').getAttribute('data-flix-inpage');if(document.querySelector('#flix-inpage')==null&&innodename.length>0&&document.querySelector('#'+innodename)!=null){var loadernode=document.createElement('div');loadernode.id='flix-inpage';var inpagenode=document.querySelector('#'+innodename);if(flixmain_distributor=='1324') inpagenode.appendChild(loadernode);else inpagenode.insertBefore(loadernode,inpagenode.nextSibling);}} logflix('Not migrated, calling fallback') window.flixfallbackstoreurl=window.location.href var inpagejs='https://media.flixcar.com/delivery/js/inpage'+fallback_url var minisitejs='https://media.flixcar.com/delivery/js/minisite'+fallback_url+'&dom=flix-minisite' var trackingjs='https://media.flixcar.com/delivery/js/minify?url=static/tracking/tracking_v1.js' FlixServices.loadFlixJs(trackingjs,function(){},false);FlixServices.loadFlixJs(inpagejs);if(document.querySelector('script[data-flix-button]')&&document.querySelector('script[data-flix-button]').getAttribute('data-flix-button').length>0&&FlixServices.ismobile()==false){FlixServices.loadFlixJs(minisitejs);} setTimeout(function(){if(typeof FlixjQ.fn.inPage!='undefined'&&typeof FlixjQ.fn.inPage.data!='undefined'&&typeof flixtracking!='undefined'){var falldata=FlixjQ.fn.inPage.data falldata.type='inpage' falldata.event_type='fallback' if(falldata.distributor==null&&typeof _FFMatcher!='undefined'&&typeof _FFMatcher._FFPid!='undefined'){falldata.distributor=_FFMatcher._FFd if(typeof _FFMatcher._FFlang!='undefined') falldata.language=_FFMatcher._FFlang if(typeof _FFMatcher._FFPid!='undefined') falldata.product_id=_FFMatcher._FFPid}else{falldata.distributor=flixmain_distributor falldata.language=flixmain_language falldata.mpn=flixmain_mpn falldata.ean=flixmain_ean} flixtracking.log(falldata)}},3000)},abTestingCallMaker:function(){var key_to_check='ab_'+flixmain_distributor;if(typeof window.flixJsCallbacks[key_to_check]=='object'&&window.flixJsCallbacks[key_to_check]!=null){if(typeof window.flixJsCallbacks[key_to_check].inpage=='object'&&window.flixJsCallbacks[key_to_check].inpage!=null){var inpage_data_main=window.flixJsCallbacks[key_to_check].inpage||false;if(inpage_data_main&&typeof inpage_data_main.inpages=='object'&&inpage_data_main.inpages!=null){var target=window.flixJsCallbacks[key_to_check].target||'';var device=window.flixJsCallbacks[key_to_check].device||'';var targetId=window.flixJsCallbacks[key_to_check].targetId||0;var inpage_data=inpage_data_main.inpages||'';FlixServices.flixinpage.target_template_parentId='#flixinpage_'+targetId+FlixServices.time_stamp if(target==device){if(inpage_data&&typeof inpage_data.disable_inpage=="boolean"&&inpage_data.disable_inpage==true){FlixServices.flixinpage.ab_disable_inpage=true;} if(inpage_data&&typeof inpage_data.disable_comparison_table=="boolean"&&inpage_data.disable_comparison_table==true){FlixServices.flixinpage.ab_disable_comparison=true;} if(inpage_data&&typeof inpage_data.disable_reviews=="boolean"&&inpage_data.disable_reviews==true){FlixServices.flixinpage.ab_disable_reviews=true;} if(inpage_data&&typeof inpage_data.disable_ugc=="boolean"&&inpage_data.disable_ugc==true){FlixServices.flixinpage.ab_disable_ugc=true;} if(inpage_data&&typeof inpage_data.disable_widget=="boolean"&&inpage_data.disable_widget==true){FlixServices.flixinpage.ab_disable_widget=true;} if(inpage_data&&typeof inpage_data.smart_config=="boolean"&&inpage_data.smart_config_id){FlixServices.flixinpage.ab_smart_config_test=true;FlixServices.smart_abtest_object={};FlixServices.smart_abtest_object.p=targetId;FlixServices.smart_abtest_object.config_id=inpage_data.smart_config_id;FlixServices.smart_abtest_object.active=inpage_data.smart_config;} if(inpage_data&&typeof inpage_data.disable_3dfw=="boolean"&&inpage_data.disable_3dfw==true){FlixServices.flixinpage.ab_disable_3dfw=true;} if(inpage_data&&typeof inpage_data.disable_thirdPartyApp=="boolean"&&inpage_data.disable_thirdPartyApp==true){FlixServices.flixinpage.ab_disable_thirdPartyApp=true;FlixServices.flixinpage.ab_disable_thirdpartyAppId=inpage_data.thirdpartyAppId;} if(inpage_data&&typeof inpage_data.change_template=="boolean"&&inpage_data.change_template==true&&typeof inpage_data.change_template_path=='string'){FlixServices.flixinpage.ab_change_template=targetId;FlixServices.flixinpage.ab_change_template_path=inpage_data.change_template_path;}} if(FlixServices.flixinpage.ab_change_template&&FlixServices.flixinpage.ab_change_template_path){FlixjQ.ajax({url:`${flixmain_api_base_url}web-api/${btoa(FlixServices.flixinpage.ab_change_template_path)}.json?mpn=FlixProd-${FlixServices.flixinpage.ab_change_template}&ean=xxv1&distId=${flixmain_distributor}&iso=${flixmain_language}&flIso=${flixmain_language_fliso}`,type:"GET",dataType:"json",cache:true,jsonpCallback:"jsonp",success:function(data){console.log(data);if(data[0].modules&&(data[0].modules.inpageHtml||data[0].modules.features)){FlixServices.flixinpage.ab_change_template_data=data[0]}},complete:function(){}});}}}} var test_is_running=false;return test_is_running;},preloadImage:function(urls){return false;},ismobile:function(){var check=false;(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true;})(navigator.userAgent||navigator.vendor||window.opera);return check;},isEmptyObject:function(obj){return Object.keys(obj).length===0;},isTablet:function(){var check=false;mobile_hotspot_available='';return mobile_hotspot_available=="Yes";},placeHolderReplacer:function(){if(FlixjQ('[flixdata-type="placeholder"]').length>0||FlixjQ('[flixdata-type="placeholder-inline"]').length>0){if(FlixjQ('[flixdata-type="placeholder"]').length>0){FlixjQ('[flixdata-type="placeholder"]').each(function(i,divs){var _this=this setTimeout(function(){var $targetElements=FlixjQ(divs.getAttribute("placeholder")).closest('[flixdata-type="template"]').first();if(FlixjQ(divs.getAttribute("placeholder")).closest('[flixdata-type="template"]').attr('flixtemplate-key')!='inpageHtml'){$targetElements.wrapAll('
');} if(FlixjQ('[placeholder=".inpage_selector_3d_fw"]').length>0){function placeholder3DFW(){if(FlixjQ('[placeholder=".inpage_selector_3d_fw"] .inpage_selector_3d_fw').length>0&&FlixjQ('[placeholder=".inpage_selector_3d_fw"] .inpage_selector_3d_fw').length>0){FlixjQ('[placeholder=".inpage_selector_3d_fw"] .inpage_selector_3d_fw').show();}else{setTimeout(function(){placeholder3DFW()},500);}} setTimeout(function(){placeholder3DFW()},500);} FlixjQ(divs.getAttribute("placeholder")).closest('.flix-html-wrapper').contents().appendTo(FlixjQ(_this));},1000);});} if(FlixjQ('[flixdata-type="placeholder-inline"]').length>0){FlixjQ('[flixdata-type="placeholder-inline"]').each(function(i,divs){var _this=this setTimeout(function(){var $targetElements=FlixjQ(divs.getAttribute("placeholder-inline")).closest('div[data-module]');$targetElements.wrapAll('
');FlixjQ(divs.getAttribute("placeholder-inline")).closest('.flix-html-inline-wrapper').contents().appendTo(FlixjQ(_this));},1000);});}}else{setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.placeHolderReplacer!='undefined') FlixServices.placeHolderReplacer();},2000);}},setWebArUrls:function(type_web_id){window.FlixServices.webar_thumb_url=window.FlixServices.webar_cloud_url+"product_thumbnails/";window.FlixServices.webar_glb_url=window.FlixServices.webar_cloud_url+"product_bundles/GLB/";window.FlixServices.webar_usdz_url=window.FlixServices.webar_cloud_url+"product_bundles/USDZ/";var webar_provider_pixel=true;if('8'==type_web_id){webar_provider_pixel=false;window.FlixServices.webar_cloud_url="https://d3np41mctoibfu.cloudfront.net/";window.FlixServices.webar_thumb_url=window.FlixServices.webar_cloud_url+"p/thumbs/";window.FlixServices.webar_glb_url=window.FlixServices.webar_cloud_url+"p/assets/";window.FlixServices.webar_usdz_url=window.FlixServices.webar_cloud_url+"p/assets/";}},setWebArUrlsNew:function(type_web_id){window.FlixServices.webar_cloud_url="https://media.flixcar.com/3dfw/";window.FlixServices.webar_glb_url=window.FlixServices.webar_cloud_url+"p/assets/";window.FlixServices.webar_usdz_url=window.FlixServices.webar_cloud_url+"p/assets/";},findARIDFromHtml:function(html){var dataAridValue=false;try{var parser=new DOMParser();var doc=parser.parseFromString(html,"text/html");dataAridValue=doc.querySelector('[data-arid]').getAttribute('data-arid');}catch(error){} return dataAridValue;},loadFlixJs:function(e,t,replacer=true){if(ENV=='-prod'&&replacer){e=e.replace(/modular-beta.flix360.io/g,"media.flixcar.com/modular");e=e.replace(/modular-alpha.flix360.io/g,"media.flixcar.com/modular");e=e.replace(/modular.flix360.io/g,"media.flixcar.com/modular");e=e.replace("media.flixcar.com/delivery/js/minify","media.flixcar.com/modular/js/minify/");logflix(e);}else{logflix("not replacing",e);} if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){e=e.replace('delivery-alpha.flix360.io\/','syndication-de-alpha.flix360.io/') e=e.replace('media.flixcar.com\/','syndication.flix360.com/') e=e.replace('media.flixfacts.com/\/','syndication.flix360.com/static-assets/')} if(-1!=e.search(".js")&&-1==e.search(".css")&&0===FlixjQ("script[src='"+e+"']").length){var c=document.createElement("script"),proceed=true,check_pattern=e;c.type="text/javascript",c.src=e,c.onload=t;var scripts=document.getElementsByTagName("script");for(var i=0;i0&&typeof flixmain_data=='object'){FlixjQ.each(flixmain_data,function(index,flixmain_data_each){if(products.modules[ix].processed_data){products.modules[ix].processed_data=products.modules[ix].processed_data+FlixServices.flixinpage.processor(flixmain_data_each,products)}else{products.modules[ix].processed_data=FlixServices.flixinpage.processor(flixmain_data_each,products) products.modules[ix].module_mapper=flixmain_data_each.module_mapper}});}else if(flixmain_data){products.modules[ix].processed_data=FlixServices.flixinpage.processor(flixmain_data,products)}});}});FlixServices.modular_match_data.forEach(function(prod_module_data,index){if(typeof(prod_module_data.product_meta.inpage)!='undefined'&&prod_module_data.product_meta.inpage.disabled=="0"){}else{return;} var module_html=prod_module_data.settings.module_template_wrapper;var moduler=FlixjQ(module_html),module_html=FlixjQ.trim(module_html);module_html=module_html.replace(/\s\s+/g,' ');var has_ugcs_in_template=module_html.includes('{{ugcs}}')?true:false;var has_reviews_in_template=module_html.includes('{{reviews}}')?true:false;var has_reviewsTopStarRating_in_template=module_html.includes('{{reviewsTopStarRating}}')?true:false;if(typeof(prod_module_data.modules)!='undefined'){FlixjQ.each(prod_module_data.modules,function(ix,flixmain_data){if(flixmain_data&&flixmain_data.module_mapper){switch(flixmain_data.module_mapper){case"ugcs":if(!has_ugcs_in_template){var ugc_selector=moduler.find('div[id="flix-ugc-galfeatures"]');if(ugc_selector.length>0){moduler.find('[id="flix-ugc-galfeatures"]').html('
{{ugcs}}
') module_html=moduler.html();}else{module_html='
{{ugcs}}
'+module_html+'
';moduler=FlixjQ(module_html)}} break;case"reviewsTopStarRating":if(!has_reviewsTopStarRating_in_template){var rw_selector=moduler.find('div[id="flix-rw-galfeatures"]');if(rw_selector.length>0){moduler.find('[id="flix-rw-galfeatures"]').html('
{{reviewsTopStarRating}}
') module_html=moduler.html();}else{}} break;case"reviews":if(!has_reviews_in_template){var rw_selector=moduler.find('div[id="flix-rw-galfeatures"]');if(rw_selector.length>0){moduler.find('[id="flix-rw-galfeatures"]').html('
{{reviews}}
') module_html=moduler.html();}else{}} break;case"inpageHtml":flixmain_data[0].fullHtml=flixmain_data[0].fullHtml.replace(/ poster=/g,' data-poster=');flixmain_data[0].fullHtml=flixmain_data[0].fullHtml.replace(/]*>[\s\S]*?<\/video>/g,function(videoTag){return videoTag.replace(/]*\ssrc="/g,'0||rw_selector2.length>0){var resolved=flixmain_data.processed_data.replace(/&d=6&/g,'&d='+flixmain_distributor+'&') resolved=resolved.replace(/&d=6&/g,'&d='+flixmain_distributor+'&') flixmain_data.processed_data=resolved} var _in_adjacent_codes_=typeof(prod_module_data.settings.adjacent_codes)!=='undefined'?prod_module_data.settings.adjacent_codes:flixmain_adjacent_codes;var adjacency_code_check=FlixjQ(flixmain_data[0].fullHtml).find('[data-adjacencies]');if(_in_adjacent_codes_&&flixmain_data[0].fullHtml.includes("data-adjacencies=")){var resolved=flixmain_data.processed_data.replace(/data-adjacencies=""/g,'data-adjacencies="'+_in_adjacent_codes_+'"') resolved=resolved.replace(/data-adjacencies=\"\"/g,'data-adjacencies="'+_in_adjacent_codes_+'"') flixmain_data.processed_data=resolved} break;default:break;} module_html=FlixServices.flixinpage.processorModules(flixmain_data,module_html,moduler);}});var adjacent_codes=typeof(prod_module_data.settings.adjacent_codes)!=='undefined'?prod_module_data.settings.adjacent_codes:flixmain_adjacent_codes;module_html=module_html.replace("{{adjacent_codes}}",adjacent_codes);module_html=module_html.replace("{{flix_distributor_id}}",flixmain_distributor);var new_moduler=FlixjQ(module_html);new_moduler.find('[flixtemplate-key="inpageHtml"] [data-module],[flixtemplate-key="inpageHtml"] [data-module-id],[flixtemplate-key="inpageHtml"] [mod]').removeAttr('data-module data-module-id mod');var final_selector=new_moduler.find('[flixdata-type="template"]');if(final_selector.length>0){final_selector.each(function(a,selector_each){var scan_key=FlixjQ(selector_each).attr('flixtemplate-key');if(!prod_module_data.modules[scan_key]&&scan_key!='fullHtml'){new_moduler.find('[flixtemplate-key="'+scan_key+'"]').remove()}});module_html=FlixjQ.trim(new_moduler[0].outerHTML)} module_html=module_html.replace(/id=\"inpage_container\"/g,'id="inpage_container" data-flx-p="'+prod_module_data.product_meta.product_id+'"');if(typeof(prod_module_data.settings.inpage_settings)!=='undefined'){var page_wrapper_data=typeof(prod_module_data.settings.inpage_settings.page_wrapper_data)!=='undefined'?prod_module_data.settings.inpage_settings.page_wrapper_data:false;if(page_wrapper_data){FlixjQ.each(page_wrapper_data,function(ip_index,ip_data){var ip_replaceThis='{{'+ip_index+'}}' var ip_re=new RegExp(ip_replaceThis,'ig');if(/\./.test(ip_data)){var ip_keysArray=ip_data.split('.');var ip_result=FlixServices.getValueByNestedKeys(prod_module_data,ip_keysArray);if(typeof(ip_result)!=='undefined'){ip_data=ip_result}} module_html=module_html.replace(ip_re,ip_data);});}} if(/\{\{.*?\}\}/.test(module_html)){logflix("template error") logflix(module_html) if(module_html.includes("{{inpageHtml}}")){return false;}} if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){module_html=module_html.replace(/\/\/delivery-alpha.flix360.io\//g,'//syndication-de-alpha.flix360.io/');module_html=module_html.replace(/\/\/alpha-assets.flix360.io\//g,'//syndication-de-alpha.flix360.io/f360cdn/');module_html=module_html.replace(/\/\/media.flixcar.com\//g,'//syndication.flix360.com/');module_html=module_html.replace(/media.flixfacts.com\//g,'syndication.flix360.com/static-assets/');} FlixServices.inpageidno='flixinpage_'+prod_module_data.product_meta.product_id+FlixServices.time_stamp var this_cccomp_str='' if(typeof(prod_module_data.product_meta.isComplementary)!='undefined'&&prod_module_data.product_meta.isComplementary=="1"){this_cccomp_str='class="flix-ccomp"';} if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixinpage!='undefined'&&FlixServices.flixinpage.target_template_parentId){if(typeof FlixServices.flixinpage.ab_disable_inpage!='undefined'&&FlixServices.flixinpage.ab_disable_inpage){if('#'+FlixServices.inpageidno==FlixServices.flixinpage.target_template_parentId){module_html='
';}}} var data_module_html3dfw=FlixjQ(module_html) var html3dfw_selector=data_module_html3dfw.find('.inpage_selector_3d_fw');var html3dfw_selector2=data_module_html3dfw.find('div[flixtemplate-key="inpageHtml"] [placeholder=".inpage_selector_3d_fw"]');if(html3dfw_selector.length>0&&html3dfw_selector2.length>0){html3dfw_selector.hide();module_html=data_module_html3dfw.prop('outerHTML');} var div='
'+module_html+''+'
';FlixjQ(FlixServices.inpcontainername).append(div);if(FlixServices.inpage_holder!=null) FlixServices.inpage_holder.attr('alt',FlixServices.time_stamp);FlixjQ('#flixinpage_').remove();setTimeout(function(){if(FlixjQ('[data-poster]').length>0) FlixServices.lazyViewportReplace('[data-poster]','data-poster','poster') if(FlixjQ('video [data-src]').length>0) FlixServices.lazyViewportReplace('video','data-src','src');},500)}});FlixServices.modular_match_data.forEach(function(products,main_index){if(products.settings.inpage_settings.css_urls_to_load&&products.settings.inpage_settings.css_urls_to_load.length>0){if(typeof(products.settings.inpage_settings.css_urls_to_load)=='string'){FlixServices.flixinpage.modular_css_url.push(products.settings.inpage_settings.css_urls_to_load);}else{products.settings.inpage_settings.css_urls_to_load.forEach(function(each_css,index){FlixServices.flixinpage.modular_css_url.push(each_css);});}} if(products.settings.inpage_settings.js_urls_to_load&&products.settings.inpage_settings.js_urls_to_load.length>0){if(typeof(products.settings.inpage_settings.js_urls_to_load)=='string'){FlixServices.flixinpage.modular_js_url.push(products.settings.inpage_settings.js_urls_to_load);}else{products.settings.inpage_settings.js_urls_to_load.forEach(function(each_js,index){FlixServices.flixinpage.modular_js_url.push(each_js);});}} if(typeof(products.product_meta.inpage)!='undefined'&&products.product_meta.inpage.template){if(products.product_meta.inpage.template=="lg/standard-new2"){FlixServices.flixinpage.modular_css_url.push(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/inpage/57/css/main-new-template.css');}} FlixServices.flixinpage.modular_css_url.push(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/distributor/'+flixmain_distributor+'/inpage.css');FlixServices.flixinpage.modular_js_url.push(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/distributor/'+flixmain_distributor+'/inpage.js');if(main_index>0){if(typeof(products.settings.distributor_settings.apply_scrollbutton)!='undefined'&&products.settings.distributor_settings.apply_scrollbutton=="0"){}else{if(typeof(products.settings.minisite_settings.comp_button_url)!='undefined'&&products.settings.minisite_settings.comp_button_url){var _this_product_id=products.product_meta.product_id;var _this_comp_button_url=products.settings.minisite_settings.comp_button_url;var _this_img=FlixjQ("").attr({src:_this_comp_button_url,alt:_this_product_id,style:"max-width:166px;max-height:82px;"});var _this_anchor=FlixjQ("
").attr({href:"#flixinpage_"+_this_product_id+FlixServices.time_stamp,style:"padding-right:7px"}).append(_this_img);_this_anchor.on("click",function(e){e.stopPropagation();return FlixServices.flixinpage.scrollToComplimentary(FlixjQ(this).attr('href'));});FlixjQ('#flix-inpage').prepend(_this_anchor);}}}});try{setTimeout(function(){if(!FlixjQ('.flix-privacy-policy-link').length){if(FlixServices==undefined) return false;if(typeof FlixServices!=="undefined"&&FlixServices.modular_match_data&&Array.isArray(FlixServices.modular_match_data)&&FlixServices.modular_match_data.length>0&&FlixServices.modular_match_data[0]?.settings?.privacy_policy?.length){if(!FlixServices.flixinpage.ab_disable_inpage){FlixjQ('#flix-inpage').append(FlixServices.modular_match_data[0].settings.privacy_policy)}}}},3000);}catch(error){}} setTimeout(function(){if(FlixServices==undefined) return false;if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixinpage!='undefined'&&FlixServices.flixinpage.target_template_parentId){if(FlixServices.flixinpage.ab_disable_inpage){FlixjQ(FlixServices.flixinpage.target_template_parentId+" div").each(function(){FlixjQ(this).remove();});FlixjQ(FlixServices.flixinpage.target_template_parentId).hide();} if(FlixServices.flixinpage.ab_disable_comparison){FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-comp .flix-comp-container").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-comp .flix-comp-mainTitle").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-compv2 .flix-compv2-container").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-compv2 .flix-compv2-mainTitle").remove();} if(FlixServices.flixinpage.ab_disable_reviews){FlixjQ(FlixServices.flixinpage.target_template_parentId+" .inpage_selector_reviews_top").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" div[flixtemplate-key='reviewsTopStarRating']").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" .flix-label-review").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" .inpage_selector_reviews div").each(function(){FlixjQ(this).remove();});FlixjQ(FlixServices.flixinpage.target_template_parentId+" .inpage_selector_reviews").hide();} if(FlixServices.flixinpage.ab_disable_ugc){FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-ugc-galfeatures div").each(function(){FlixjQ(this).remove();});FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-ugc-galfeatures").hide();} if(FlixServices.flixinpage.ab_disable_widget){FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix-microsite").append('
').hide();} if(FlixServices.flixinpage.ab_disable_3dfw){FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix_selector_3d div").each(function(){FlixjQ(this).remove();});FlixjQ(FlixServices.flixinpage.target_template_parentId+" #flix_selector_3d").hide();} if(FlixServices.flixinpage.ab_disable_thirdPartyApp){if(FlixServices.flixinpage.ab_disable_thirdpartyAppId){FlixjQ(FlixServices.flixinpage.target_template_parentId+" .flix-3p-multi-button-control-inner div[data-flixmapping_id='"+FlixServices.flixinpage.ab_disable_thirdpartyAppId+"']").remove();FlixjQ(FlixServices.flixinpage.target_template_parentId+" .flix-3p-multi-button-control-content div[data_app_id='"+FlixServices.flixinpage.ab_disable_thirdpartyAppId+"']").remove();}else{FlixjQ(FlixServices.flixinpage.target_template_parentId+" .flix-3rdwidget div").each(function(){FlixjQ(this).remove();});FlixjQ(FlixServices.flixinpage.target_template_parentId+" .flix-3rdwidget").hide();}}} if(location.href.search('flixlazyv2')!=-1){FlixServices.loadFlixJs('https://demo.flix360.io/performance/modularvnew/js/lazysizes-v4.js');}else if(location.href.search('flixlazyv3')!=-1){FlixServices.loadFlixJs('https://demo.flix360.io/performance/modularvnew/js/lazysizes-v3.js');}else if(ENV=='-alpha'){FlixServices.loadFlixJs('https://demo.flix360.io/performance/modularvnew/js/lazysizes.js');}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/modular/js/lazysizes.js');} FlixServices.placeHolderReplacer();if(typeof FlixServices!='undefined'&&FlixServices.modular_match_data&&typeof FlixServices.modular_match_data[0]!='undefined'&&typeof FlixServices.modular_match_data[0].modules!='undefined'&&((typeof FlixServices.modular_match_data[0].modules.viewWebar!='undefined'&&FlixServices.modular_match_data[0].modules.viewWebar!=null)||(typeof FlixServices.modular_match_data[0].modules.view3dfm!='undefined'&&FlixServices.modular_match_data[0].modules.view3dfm!=null))){if(!window.threedcheck) window.threedcheck=false;if(typeof window.threedfw=='undefined'&&window.threedcheck==false){window.threedcheck=true;FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/3dfw/3dfw.js');}}},1000);},processorModules:function(flixmain_data,module_html,moduler){var this_selector=moduler.find('[flixtemplate-key="'+flixmain_data.module_mapper+'"]');if(this_selector.length>0&&this_selector.attr('flixdata-type')=='template'){for(var index=0;index0&&this_selector.attr('flixdata-type')=='template'){for(var indexv=0;indexv0&&inner_selector.attr('flixdata-type')=='template'){this_html=this_html.replace('flixtemplate-key="'+property+'"','');}}} this_html=this_html.replace(this_filter,'');this_html=this_html.replace('flixdata-type="template"','');this_html=FlixServices.flixinpage.reprocessRemover(obj,this_html) this_full_html+=this_html;});}else if(typeof(data)=='string'){var replaceThis='{{'+index+'}}' var re=new RegExp(replaceThis,'ig');data=data.replace(/ poster=/g,' data-poster=');if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){data=data.replace(/\/\/delivery-alpha.flix360.io\//g,'//syndication-de-alpha.flix360.io/');data=data.replace(/\/\/alpha-assets.flix360.io\//g,'//syndication-de-alpha.flix360.io/f360cdn/');data=data.replace(/\/\/media.flixcar.com\//g,'//syndication.flix360.com/');data=data.replace(/media.flixfacts.com\//g,'syndication.flix360.com/static-assets/');} module_html=module_html.replace(re,data);if(this_selector.length>1&&data.length>0){module_html=module_html.replace('flixtemplate-key="'+index+'"','');}} module_html=module_html.replace(html_for_this,this_full_html)}}else{var replaceThis='{{'+index+'}}' var re=new RegExp(replaceThis,'ig');if(typeof(data)=='string'&&distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){data=data.replace(/\/\/delivery-alpha.flix360.io\//g,'//syndication-de-alpha.flix360.io/');data=data.replace(/\/\/alpha-assets.flix360.io\//g,'//syndication-de-alpha.flix360.io/f360cdn/');data=data.replace(/\/\/media.flixcar.com\//g,'//syndication.flix360.com/');data=data.replace(/media.flixfacts.com\//g,'syndication.flix360.com/static-assets/');} module_html=module_html.replace(re,data);} module_html=module_html.replace(html_for_this,this_full_html)});module_html=FlixServices.flixinpage.reprocessRemover(flixmain_data,module_html) var flixmain_product_id=prod_module_data.product_meta.product_id;if(typeof(flixmain_data.product_id)!=='undefined'){if(flixmain_product_id!=flixmain_data.product_id){var module_template_check='module_template_wrapper_'+flixmain_data.product_id var module_template_wrapper=prod_module_data.settings[module_template_check] if(module_template_wrapper){var moduler_thi=FlixjQ(module_template_wrapper),module_template_wrapper=FlixjQ.trim(module_template_wrapper);module_html=module_html.replace(/\s\s+/g,' ');var flixmain_data_checker={} flixmain_data_checker.module_mapper='features' flixmain_data_checker.processed_data=module_html var new_module_html=FlixServices.flixinpage.processorModules(flixmain_data_checker,module_template_wrapper,moduler_thi);module_html=new_module_html}}} module_html=module_html.replace(/src-modular-holder/g,'src');return module_html},reprocessRemover:function(flixmain_data,module_html){var new_moduler=FlixjQ(module_html) var final_selector=new_moduler.find('[flixdata-type="template"]');if(final_selector.length>0){final_selector.each(function(a,selector_each){var scan_key=FlixjQ(selector_each).attr('flixtemplate-key');if(!flixmain_data[scan_key]){new_moduler.find('[flixtemplate-key="'+scan_key+'"]').remove()}});module_html=FlixServices.xnlmsStringcheck(FlixjQ.trim(new_moduler[0].outerHTML)) final_selector.each(function(a,selector_each){var scan_key=FlixjQ(selector_each).attr('flixtemplate-key');module_html=module_html.replace('flixtemplate-key="'+scan_key+'"','');}) module_html=module_html.replace(/flixdata-type="template"/g,'');module_html=module_html.replace(/\s\s+/g,' ');} return module_html;},loadJsCss:function(vars){if(FlixServices.flixinpage.modular_style_files_loaded==false){FlixServices.flixinpage.modular_style_files_loaded=true;FlixServices.flixinpage.modular_css_url.forEach(function(each_css,index){FlixServices.loadFlixJs(each_css);});FlixServices.flixinpage.modular_js_url.forEach(function(each_js,index){FlixServices.loadFlixJs(each_js);});}},subProcessor:function(index_in,property,obj,this_html,moduler){var sub_selector=moduler.find('[flixtemplate-key="'+property+'"]');if(sub_selector.length>0&&sub_selector.attr('flixdata-type')=='template'){var sub_full_html='',html_for_sub=FlixServices.xnlmsStringcheck(FlixjQ.trim(sub_selector[0].outerHTML)),sub_filter='flixtemplate-key="'+index_in+'"';FlixjQ.each(obj[property],function(in_sub,sub_obj){var sub_html=html_for_sub;for(var property_sub in sub_obj){if(typeof(sub_obj[property_sub])=='object'){sub_html=FlixServices.flixinpage.subProcessor(in_sub,property_sub,sub_obj,sub_html,moduler);}else{var replaceSub='{{'+property_sub+'}}' var re=new RegExp(replaceSub,'ig');sub_html=sub_html.replace(re,sub_obj[property_sub]);var inner_selector=moduler.find('[flixtemplate-key="'+property_sub+'"]');if(inner_selector.length>0&&inner_selector.attr('flixdata-type')=='template'){sub_html=sub_html.replace('flixtemplate-key="'+property_sub+'"','');}}} sub_html=sub_html.replace(sub_filter,'');sub_html=sub_html.replace('flixdata-type="template"','');sub_full_html+=sub_html;});this_html=this_html.replace(html_for_sub,sub_full_html)} return this_html;},fillOptions:function(opts){for(var key in opts){if(opts[key]&&typeof(opts[key])=='string'&&opts[key].substr(0,1)=="{"&&opts[key].substr(-1,1)=="}") {opts[key]=FlixServices.flixinpage.getQsParam(opts[key].substring(1,opts[key].length-1));}} return opts;},getQsParam:function(name){var results=new RegExp('[\\?&]'+name+'=([^&#]*)').exec(window.location.href);if(!results){return'';} return results[1]||'';},defaults:{distributor:0,language:"en",legacy:"",mpn:"",ean:"",sku:"",product:0,css:"",container:"",gvid:"",abid:"",ab:"",pd:"",pagedata:{},update:10,ab_data:false,base_ab:"",sio_ty:0},data:{}},flixminisite:{init:function(div_container,d_id,lang){if(FlixServices.service_lock_minisite){logflix("service_lock_minisite=1") return;} if(FlixServices.ismobile()){logflix("minisite request on mobile=1") return;} var tryrun=0;var refreshId=setInterval(function(){if(FlixServices==undefined) return false;if(typeof FlixServices!='undefined'&&FlixServices.modular_match_data!=null&&(Array.isArray(FlixServices.modular_match_data)||typeof FlixServices.modular_match_data==='object')){if(typeof FlixServices.modular_match_data.forEach!=='function'){return;} FlixServices.modular_match_data.forEach(function(product,index){if(typeof(product.product_meta.minisite)=='object'&&product.product_meta.minisite.disabled=='0'){var base_image=product.settings.minisite_settings.button_url;if(document.querySelector('script[data-flix-button-image]')!=null&&document.querySelector('script[data-flix-button-image]').getAttribute('data-flix-button-image').length>0){if((typeof product.product_meta.isComplementary=='undefined'&&index==0)||product.product_meta.isComplementary!='1') base_image=document.querySelector('script[data-flix-button-image]').getAttribute('data-flix-button-image')} base_image+='?&distId='+flixmain_distributor var p_id=product.product_meta.product_id;if(product.settings.minisite_settings.css_urls_to_load&&product.settings.minisite_settings.css_urls_to_load.length>0){if(typeof(product.settings.minisite_settings.css_urls_to_load)=='string'){FlixServices.flixminisite.modular_css_url.push(product.settings.minisite_settings.css_urls_to_load);}else{product.settings.minisite_settings.css_urls_to_load.forEach(function(each_css,index){FlixServices.flixminisite.modular_css_url.push(each_css);});}} if(product.settings.minisite_settings.js_urls_to_load&&product.settings.minisite_settings.js_urls_to_load.length>0){if(typeof(product.settings.minisite_settings.js_urls_to_load)=='string'){FlixServices.flixminisite.modular_js_url.push(product.settings.minisite_settings.js_urls_to_load);}else{product.settings.minisite_settings.js_urls_to_load.forEach(function(each_js,index){FlixServices.flixminisite.modular_js_url.push(each_js);});}} FlixServices.flixminisite.mslang=lang;FlixServices.flixminisite.msd=d_id;FlixServices.flixminisite.msPid=product.product_meta.product_id;isComplementary=product.product_meta.isComplementary;FlixServices.flixminisite.mscontId=div_container;FlixServices.flixminisite.mspagedata={};var adjacent_codes=typeof(product.settings.adjacent_codes)!=='undefined'?product.settings.adjacent_codes:flixmain_adjacent_codes;var type='mpn';FlixServices.flixminisite.msshowButton(p_id,div_container,isComplementary,type,lang,base_image,adjacent_codes,0);}});clearInterval(refreshId);} if(tryrun===200){clearInterval(refreshId);} tryrun++},100);},ms_base_url:('https:'==document.location.protocol)?'':'',ms_base_urlms:('https:'==document.location.protocol)?'':'',ms_base_urlms_LOGO:('https:'==document.location.protocol)?'':'',msparams:'',msmpn:'',msean:'',msd:'',mslang:'',msfallbacklang:'',mscontId:'',msEmbType:'',msRating:'0',msCExists:{},msmatch:{},mspagedata:{},modular_css_url:[],modular_js_url:[],msSio_Ty:0,msPid:0,msshowButton:function(p_id,contId,isComplementary,type,lang,base_image,adjacent_codes,is_manual){var html=FlixServices.flixminisite.msButtonHtml(p_id,isComplementary,lang,base_image,adjacent_codes,is_manual);if(distributorIdsDE.indexOf(parseInt(flixmain_distributor))!=-1){html=html.replace(/\/\/delivery-alpha.flix360.io\//g,'//syndication-de-alpha.flix360.io/');html=html.replace(/\/\/alpha-assets.flix360.io\//g,'//syndication-de-alpha.flix360.io/f360cdn/');html=html.replace(/\/\/media.flixcar.com\//g,'//syndication.flix360.com/');html=html.replace(/media.flixfacts.com\//g,'syndication.flix360.com/');} FlixServices.flixminisite.msWriteHtml(contId,html,isComplementary);},msOpenWin:function(sticky_URL_fix){var qliteWidth=690;var qliteHeight=550;var ModalWin=null;var TP=10;var LP=10;var settings='height='+qliteHeight+',width='+qliteWidth+',top='+TP+',left='+LP+',scrollbars=yes,resizable=1';if(!ModalWin||ModalWin.closed){ModalWin=window.open(sticky_URL_fix,'ModalWin',settings) if(sticky_URL_fix.indexOf('quikcliplite')!=-1){ModalWin.moveTo(10,10);ModalWin.resizeTo(qliteWidth,qliteHeight);}else{if(ModalWin&&ModalWin.focus)ModalWin.focus();}}},msStripTags:function(str){return str.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,'').replace('"','');},msStripScripts:function(str){return str.replace(new RegExp(']*>([\\S\\s]*?)<\/script>','img'),'');},msParseQueryString:function(query,key,default_,lowercase){if(default_==null)default_='';if(lowercase!=0)lowercase=1;key=key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp('[\\?&]'+key+'=([^&#]*)');var qs=regex.exec(query);if(qs==null) return default_;else return lowercase?unescape(qs[1].toLowerCase()):unescape(qs[1]);},msWriteHtml:function(id,html,isComplementary){var dv=document.getElementById(id);if(dv){try{dv.innerHTML=(isComplementary)?dv.innerHTML+html:html;}catch(e){}}},msButtonHtml:function(p_id,isComplementary,lang,base_image,adjacent,is_manual){var html='';var d=FlixServices.flixminisite.msd;var l=lang;var r=FlixServices.flixminisite.msRev;var matchtype='';var ab='';var url="https://media.flixcar.com/modular/static/minisite/show.html?lang="+lang+"&prodid="+p_id+"&mpn="+flixmain_mpn+"&ean="+flixmain_ean+'&distid='+flixmain_distributor+'&flIso='+flixmain_language_fliso+'&appc='+btoa(flixmain_api_call_url);;if(isComplementary&&p_id<400002){var url=FlixServices.flixminisite.ms_base_urlms+"?d=6&l="+lang+"&p="+p_id+ab;url+="&pn="+FlixServices.flixminisite.msgetCanonical('esc');} if(adjacent){url+="&adjacency_codes="+adjacent} html+='
';var _customimg=FlixServices.flixminisite.msParseQueryString(FlixServices.flixminisite.msparams,'img','',0);var _alt=FlixServices.flixminisite.msParseQueryString(FlixServices.flixminisite.msparams,'alt','',0);_customimg=FlixServices.flixminisite.msStripTags(FlixServices.flixminisite.msStripScripts(_customimg));_alt=FlixServices.flixminisite.msStripTags(FlixServices.flixminisite.msStripScripts(_alt));if(_alt.length==0) _alt='Minisite button image' var needed=/MSIE ((5\.5)|[6])/.test(navigator.userAgent)&&navigator.platform=='Win32';if(is_manual){html+=''+_alt+'';} else{if(isComplementary){if(p_id==false){html+=''+_alt+'';} else{var base_image_full=base_image.indexOf("//")==0?base_image:FlixServices.flixminisite.ms_base_urlms_LOGO+base_image;html+=''+_alt+'';}} else{var base_image_full=base_image.indexOf("//")==0?base_image:FlixServices.flixminisite.ms_base_url+base_image;html+=''+_alt+'';}} html+='';return html;},msgetCanonical:function(esc){try{var ret,canonicalCheck,s;ret=FlixServices.flixminisite.msParsePage(FlixServices.flixminisite.mspagedata,'pn');canonicalCheck=window.location.protocol+'//'+window.location.hostname+'/';if(!ret||ret===canonicalCheck||ret.length+1<=canonicalCheck.length){ret=document.URL;} s=ret.indexOf('#');if(s!=-1){ret=ret.substring(0,s);} return arguments.length>0?escape(ret):ret;}catch(e){}},msParsePage:function(pagedata,target){var found='',h=null,fallback=true,generic={},specific={},p,ignore=[],precedence,hit=false;try{for(p in pagedata){if(pagedata.hasOwnProperty(p)){if(p=='pageSpecific'){specific=pagedata.pageSpecific;} else if(ignore.indexOf(p)===-1){generic[p]=pagedata[p];}}} precedence=(!!specific[target])?specific[target]:generic[target];if(!specific[target]){fallback=false;} if(typeof precedence==='function'){found=precedence();if(!found){fallback=true;}} if(!found&&!!precedence&&!!precedence.terms&&precedence.terms.length){for(var i=0;i0){if(typeof(products.settings.hotspot_settings.css_urls_to_load)=='string'){FlixServices.flixhotspot.modular_css_url.push(products.settings.hotspot_settings.css_urls_to_load);}else{products.settings.hotspot_settings.css_urls_to_load.forEach(function(each_css,index){FlixServices.flixhotspot.modular_css_url.push(each_css);});}} if(products.settings.hotspot_settings&&products.settings.hotspot_settings.js_urls_to_load&&products.settings.hotspot_settings.js_urls_to_load.length>0){if(typeof(products.settings.hotspot_settings.js_urls_to_load)=='string'){FlixServices.flixhotspot.modular_js_url.push(products.settings.hotspot_settings.js_urls_to_load);}else{products.settings.hotspot_settings.js_urls_to_load.forEach(function(each_js,index){FlixServices.flixhotspot.modular_js_url.push(each_js);});}} FlixServices.flixhotspot.modular_css_url.push(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/distributor/'+flixmain_distributor+'/hotspot.css');});} if(!retailer_product_img&&FlixjQ(settings[0].image_container).length){if(FlixjQ(settings[0].image_container).length>0){retailer_product_img=settings[0].image_container;var retailer_img_height="FlixjQ(retailer_product_img).height()";var retailer_img_width=FlixjQ(retailer_product_img).width();FlixServices.flixhotspot.fcounter=10}} if(!retailer_product_img&&FlixjQ(settings[0].image_id)){if(FlixjQ(settings[0].image_id).parent().length){retailer_product_img=settings[0].image_id;var retailer_img_height=FlixjQ(retailer_product_img).height();var retailer_img_width=FlixjQ(retailer_product_img).width();FlixServices.flixhotspot.fcounter=10}} if(!retailer_product_img&&settings[0].image_src){if(FlixjQ(settings[0].image_src).length){retailer_image=settings[0].image_src;var allImages=document.getElementsByTagName("img");var target;for(var i=0,max=allImages.length;i0&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0]=='object'&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].no_hotspots&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].no_hotspots==true&&!FlixServices.ismobile()){log3('no hotspots - test g') if(typeof flixtracking!='undefined'){log3('no hotspots - test g------------') setTimeout(function(){if(FlixjQ('#flix_hotspots')&&FlixjQ('#flix_hotspots:not(.ek_hotspots) .flix_hs:not(#flix_desktop_webar)').length<1){flixtracking.products.hotspot('page','Hotspot_'+FlixServices.flixhotspot.data.edvalueT,'beatlog');}},800)}} if(FlixServices.flixhotspot.results_parent.hotspots&&FlixServices.flixhotspot.results_parent.hotspots.desktop_webar&&Object.keys(FlixServices.flixhotspot.results_parent.hotspots.desktop_webar).length>0&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0]=='object'&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].desktop_webar==false&&!FlixServices.ismobile()){log3('no qr - test d') if(typeof flixtracking!='undefined'){setTimeout(function(){flixtracking.products.hotspot('qr_impression','qr_loaded','beatlog');},800)}} if(FlixServices.flixCheckARcompatibility()==true&&FlixServices.flixhotspot.results_parent.hotspots&&FlixServices.flixhotspot.results_parent.hotspots.desktop_webar&&Object.keys(FlixServices.flixhotspot.results_parent.hotspots.desktop_webar).length>0&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0]=='object'&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].desktop_webar==false&&FlixServices.ismobile()){log3('no webar - test d') if(typeof flixtracking!='undefined'){setTimeout(function(){flixtracking.products.hotspot('webar_impressions','webar_loaded','beatlog');},800)}}}} FlixServices.flixhotspot.writeCanvas();clearInterval(refreshId);} if(tryrun===200){clearInterval(refreshId);} tryrun++},100);},extendObj:function(destination,source){for(var property in source){if(typeof destination[property]!=="undefined"){if(typeof source[property]==="object"&&source[property]!==null){destination[property]=destination[property]||{};arguments.callee(destination[property],source[property]);}else{destination[property]=source[property];}}else{destination[property]=source[property]}}},resortingForAbtest:function(){if(typeof window.flixJsCallbacks['ab_'+flixmain_distributor]=='object'&&window.flixJsCallbacks['ab_'+flixmain_distributor]!=null){FlixjQ.each(FlixServices.flixhotspot.hotspot_full.hotspots,function(index,hs){log3(hs) log3(hs.productId) if(typeof window.flixJsCallbacks['ab_'+flixmain_distributor]!='undefined'&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot!='undefined'&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.hotspots!='undefined'&&typeof window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0]=='object'){if(window.flixJsCallbacks['ab_'+flixmain_distributor].targetId==hs.productId){if(index.indexOf("webar")===-1&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].no_hotspots==true){delete FlixServices.flixhotspot.hotspot_full.hotspots[index];FlixServices.flixhotspot.hotspot_full.settings[0].no_hotspots=FlixServices.flixhotspot.results_parent.settings[0].no_hotspots} if((index=='desktop_webar'||index=='product_webar')&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0].desktop_webar==false){delete FlixServices.flixhotspot.hotspot_full.hotspots[index];FlixServices.flixhotspot.hotspot_full.settings[0].desktop_webar=FlixServices.flixhotspot.results_parent.settings[0].desktop_webar} var other_test_keys={"product_gallery":1,"key_features":1,"key_specification":1,"product_video":1,"product-overview":1,"product_view3dfw":1,"product_review":1,"product_comparison":1,"product_ugc":1};if(typeof index!='undefined'&&other_test_keys.hasOwnProperty(index)&&window.flixJsCallbacks['ab_'+flixmain_distributor].hotspot.settings[0][index]==false){delete FlixServices.flixhotspot.hotspot_full.hotspots[index];}}}});}},loadJsCss:function(vars){if(FlixServices.flixhotspot.modular_style_files_loaded==false){var emptyHsUrl=0;var myInterval=setInterval(function(){if(emptyHsUrl===200)return clearInterval(myInterval);if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined'&&FlixServices.flixhotspot.modular_js_url!='null'){FlixServices.flixhotspot.modular_style_files_loaded=true;FlixServices.flixhotspot.modular_css_url.forEach(function(each_css,index){FlixServices.loadFlixJs(each_css);});FlixServices.flixhotspot.modular_js_url.forEach(function(each_js,index){FlixServices.loadFlixJs(each_js);});clearInterval(myInterval);} emptyHsUrl++;},100);}},fcounter:0,fcounterMob:0,data:{product_id:flixmain_product_id,distributor:flixmain_distributor,language:flixmain_language,edvalueT:flixmain_mpn||''||flixmain_product_id,mpn:flixmain_mpn,ean:flixmain_ean,type:'hotspot'},retailer_product_img:null,hotspot_data:null,hotspot_settings:null,hotspot_full:null,writeCanvas:function(){if(!FlixServices.flixhotspot.hotspot_settings){return false;} setTimeout(function(){if(FlixServices==undefined) return false;if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.flixhotspot.fcounter<10&&FlixjQ('#flix_hotspots').length==0){FlixServices.flixhotspot.writeCanvas();FlixServices.flixhotspot.fcounter++;}else{if(!(FlixjQ("#flix_hotspots.ek_hotspots").length>0)){FlixjQ('#flix_hotspots').remove();FlixjQ('
').appendTo(FlixjQ('body'));if(FlixServices.ismobile()=='true'||FlixServices.flixisMobile.iOS()!=null||FlixServices.flixisMobile.Android()!=null){if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data!=undefined&&FlixServices.modular_match_data[0]!=undefined&&FlixServices.modular_match_data[0].settings!=undefined) FlixjQ('#flix_hotspots').addClass('flix_hotspotV2').css('display','none').attr('data-hotv2',FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container) FlixjQ('#flix_hotspots').addClass('flix_hotspot_'+flixmain_language).addClass('flix_hotspot_'+flixmain_distributor);}else{FlixjQ('#flix_hotspots').addClass('flix_hotspotV2').css('display','none').attr('data-hotv2',FlixServices.flixhotspot.hotspot_settings[0].image_container) FlixjQ('#flix_hotspots').addClass('flix_hotspot_'+flixmain_language).addClass('flix_hotspot_'+flixmain_distributor);} if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.loadspeed('start','qr');if(FlixjQ('.flix_hotspotV2:not(".ek_hotspots") svg').length==0){FlixServices.flixhotspot.createHotspots();}}}},600);if(FlixServices.ismobile()&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment!=null&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment!=''){FlixServices.flixhotspot.writeCanvasMob();}},createHotspots:function(){log3('createHotspots');FlixServices.flixhotspot.results=FlixServices.flixhotspot.hotspot_full;hotspots=FlixServices.flixhotspot.hotspot_data||{};settings=FlixServices.flixhotspot.hotspot_settings||{};var mobile_hotspot_available='';var arid,arimg;if(Array.isArray(settings)&&settings.length>0&&settings[0].ar_google==1){if(FlixServices.flixhotspot.results.hotspots.product_webar) var arid=FlixServices.flixhotspot.results.hotspots.product_webar.webar_id if(FlixServices.flixhotspot.results.hotspots.desktop_webar) var arid=FlixServices.flixhotspot.results.hotspots.desktop_webar.webar_id log3('arid',arid);FlixServices.flixhotspot.loadGoogleMeta(arid);} if(settings[0]&&settings[0].css&&settings[0].css.length>0){FlixjQ('#flix_hotspots').after(settings[0].css)} FlixjQ.each(hotspots,function(index,hs){var Hsmodule=hs.module_id;if(Hsmodule==undefined) Hsmodule='';if(FlixServices&&FlixServices.modular_match_data&&FlixServices.modular_match_data[0]&&FlixServices.modular_match_data[0].settings){hs.color_hash=FlixServices.modular_match_data[0].settings.distributor_settings.color_hash;} if(!hs.color_hash||hs.color_hash.search('#')==-1) hs.color_hash='#105DC1';var colorhash=hs.color_hash.replace('#','');if(FlixServices.flixhotspot.results.settings[0].image_container==null) return false;if(index=='desktop_webar'&&FlixServices.flixhotspot.results.settings[0].desktop_webar==false){log3('no flixar'+FlixServices.flixhotspot.results.settings[0].desktop_webar) return true;} if(index=='product_webar'&&FlixServices.flixhotspot.results.settings[0].desktop_webar==false){log3('no flixar'+FlixServices.flixhotspot.results.settings[0].desktop_webar) return true;} if(index.indexOf("webar")===-1&&FlixServices.flixhotspot.results.settings[0].no_hotspots==true){log3('no hotspots'+FlixServices.flixhotspot.results.settings[0].no_hotspots) return true;} if(typeof hotspotwebarstatic!='undefined'&&hotspotwebarstatic==true){if(FlixServices.ismobile()==true) FlixjQ("#flix_hotspots").appendTo(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container);else FlixjQ("#flix_hotspots").appendTo(FlixServices.flixhotspot.results.settings[0].image_container);} if(hs.webar_id) arid=hs.webar_id;if(hs.ui_default){arimg=hs.ui_default;if(hs.ui_default.search('_90x90_')!=-1&&hs.ui_default.search('http')==-1){hs.ui_default='https:\/\/media.flixcar.com\/delivery'+hs.ui_default}} if(typeof hs.html!='undefined'&&hs.html.includes('inpage_selector_3d')){hs.html=hs.html.replace(/&d=6&/g,'&d='+flixmain_distributor+'&')} if((index=='product_webar'&&FlixServices.flixCheckARcompatibility()==true)){log3('product_webar- Show ar--') FlixServices.flixhotspot.flixHotspotWebar(hs.webar_id,hs.ui_default);if((FlixjQ('[data-flix-3d]').length||FlixServices.flixhotspot.results.settings[0].load3dfw==true)&&FlixServices.flixhotspot.results.settings[0].load3dfw!=false) FlixServices.flixhotspot.load3dfw(hs.html,hs.webar_id);}else if(index=='desktop_webar'){if(typeof(hs.webar_id)=='undefined'&&typeof(hs.html)!=='undefined'){var new_webar_id=hs.webar_id=FlixServices.findARIDFromHtml(hs.html);} if(FlixServices.flixCheckARcompatibility()==true){log3('tablet hotspot') FlixServices.flixhotspot.flixHotspotWebar(hs.webar_id,hs.ui_default);}else if(FlixServices.flixhotspot.flixDetectWebGLContext()){var defaulticon='';if(hs.ui_default&&hs.ui_default.search('AR_')!=-1){defaulticon='flix_defaulticon flix_default_en';} deskar='FlixAR augmented reality';FlixjQ('#flix_hotspots').append(deskar);log3('webar-desktop loaded') FlixServices.flixhotspot.loadspeed('stop','qr');if(typeof flixtracking!='undefined'){flixtracking.products.hotspot('qr_impression','qr_loaded');}}else if(FlixServices.flixhotspot.flixDetectWebGLContext()==false){logflix('Hotspot webAR - This application does not work on IE11 as it requires more recent webGL.')} if((FlixjQ('[data-flix-3d]').length||FlixServices.flixhotspot.results.settings[0].load3dfw==true)&&FlixServices.flixhotspot.results.settings[0].load3dfw!=false) FlixServices.flixhotspot.load3dfw(hs.html,hs.webar_id);}else if(index=='comp_product_logo'){var target=settings[0].logo_program_container;var html=FlixServices.flixhotspot.results.hotspots.comp_product_logo.html;FlixjQ(target).append(html);}else if(!FlixServices.ismobile()){log3('Show hot-'+index,FlixServices.ismobile()) if(FlixServices.flixhotspot.flixDetectWebGLContext()==false&&index=='product_view3dfw'){log3('hide 3d hotspot',FlixServices.flixhotspot.flixDetectWebGLContext()) return true;} var hotspotsvg='
' if(index.search('comp_')!=-1){if(!hs.color_hash||hs.color_hash.length==0) hs.color_hash='#105DC1' var hotspotsvg='
'} if(index.search('product_ugc')!=-1){var hotspotsvg='
'} if(index.search('product_sustainability')!=-1){var hotspotsvg='
'} if(index.search('smart_content')!=-1){var hotspotsvg='
'} if(index.search('accessory_widget')!=-1){var hotspotsvg='
'} if(index.search('sis_widget')!=-1){var hotspotsvg='
'+''+''+''+''+''+''+''+'
'} if(typeof hs.tooltip_title!='undefined'&&hs.tooltip_title!=null&&hs.tooltip_title.length>0) FlixjQ('#flix_hotspots').append(hotspotsvg);if(FlixServices.flixhotspot.results.settings[0].alignment){FlixjQ('#flix_hotspots').attr('data-flix-align',FlixServices.flixhotspot.results.settings[0].alignment)}} if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();});if(FlixServices&&FlixServices.flixhotspot&&FlixServices.flixhotspot.results&&FlixServices.flixhotspot.results.settings&&FlixServices.flixhotspot.results.settings[0]&&FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)Single($|\W)/)&&!FlixjQ(".flix_product_single").length){var hotspotsvg2='';FlixjQ("#flix_hotspots").append(hotspotsvg2);FlixjQ('.flix_hs:not(.flix_hs-single)').hide();FlixjQ('.flix_hs-single').on('click',function(){FlixjQ('.flix_hs-single').hide();FlixjQ('.flix_hs:not(.flix_hs-single)').toggle('fast');FlixjQ('.flix_hs-single').show();var title=FlixjQ('#flix_product_single').attr('data-title');var title2=FlixjQ('#flix_product_single').attr('data-title2');FlixjQ('#flix_product_single').tooltip({content:title2});FlixjQ('#flix_product_single').attr('data-title',title2);FlixjQ('#flix_product_single').attr('data-title2',title);FlixjQ('.flix_ui-tooltip').remove();});if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();} function loadJWScript(e,t){if(-1!=e.search(".js")&&0===FlixjQ("script[src='"+e+"']").length){var c=document.createElement("script");c.type="text/javascript",c.src=e,c.onload=t,document.head.appendChild(c)} if(-1!=e.search(".css")&&0===FlixjQ("link[href='"+e+"']").length){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.type="text/css",n.onload=t,document.head.appendChild(n)}} if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data&&typeof FlixServices.modular_match_data[0]!='undefined'&&typeof FlixServices.modular_match_data[0].modules!='undefined'&&((typeof FlixServices.modular_match_data[0].modules.viewWebar!='undefined'&&FlixServices.modular_match_data[0].modules.viewWebar!=null)||(typeof FlixServices.modular_match_data[0].modules.view3dfm!='undefined'&&FlixServices.modular_match_data[0].modules.view3dfm!=null))){if(!window.threedcheck) window.threedcheck=false;if(typeof window.threedfw=='undefined'&&window.threedcheck==false){window.threedcheck=true;FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/3dfw/3dfw.js');}} FlixjQ('#flix_hotspots .flix_hs,#flix_hotspots .ek-desktop').on({click:function(event){var id=this.id if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot.results!='undefined'&&FlixServices.flixhotspot.results.settings[0]!='undefined') id=id.replace(FlixServices.flixhotspot.results.settings[0].prefix,"") var flix_hotspot;if(hotspots[id]){var html=hotspots[id].html;var thisbutton=this;setTimeout(function(){FlixServices.flixhotspot.flixBox(html,id);if(typeof flixModalFocus!='undefined') flixModalFocus('.share-bubble',thisbutton)},100);}},keydown:function(event){if(event.keyCode==13||event.keyCode==32){FlixjQ(this).trigger('click');};}});var tooltipDelayFncount=0;function tooltipDelayFn(){if(FlixjQ('.flix_hs').length>0){FlixjQ('.flix_hs').tooltip({position:{my:"center bottom-20",at:"center top",using:function(position,feedback){FlixjQ(this).css(position);FlixjQ("
").addClass("flix_arrow").addClass(feedback.vertical).addClass(feedback.horizontal).appendTo(this);}}});FlixjQ('.flix_hs').tooltip("option","hide",{effect:"fade",duration:100});tooltipDelayFncount=22}else{if(tooltipDelayFncount<20){setTimeout(function(){tooltipDelayFn();tooltipDelayFncount++;},1000);}}} tooltipDelayFn();FlixjQ(window).resize(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition()});var t;document.addEventListener('scroll',cleartimer);document.addEventListener('wheel',cleartimer2);window.addEventListener('touchend',cleartimer3);window.addEventListener('touchmove',cleartimer4);function cleartimer(){clearTimeout(t);checkScroll();log3(1) document.removeEventListener('wheel',cleartimer2);window.addEventListener('touchend',cleartimer3);} function cleartimer2(){clearTimeout(t);checkScroll();log3(2);} function cleartimer3(){clearTimeout(t);checkScroll();log3(3);} function cleartimer4(){clearTimeout(t);if(FlixjQ(window).scrollTop()<800){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition()} log3(3)} function checkScroll(){t=setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined'&&FlixjQ(window).scrollTop()<800){FlixServices.flixhotspot.updateHotspotPosition() setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},100) setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},200) setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},500);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},1500);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},2500);}},1);}},flixHotspotWebar:function(arid,hsimg){log3('flixHotspotWebar') var arhtml='';var defaulticon='';if(hsimg.search('AR_')!=-1) defaulticon='flix_defaulticon';if(FlixServices.flixisMobile.iOS()){log3('WEBARhotspot - ios') arhtml='FlixAR
FlixAR icon
' FlixjQ('.flix_hotspotV2').append(arhtml);}else if(FlixServices.flixisMobile.Android()){log3('WEBARhotspot - Android') var uri=window.location.href;if(location.href.search('#')!=-1) uri=window.location.href.substr(0,window.location.href.indexOf('#')) arhtml='FlixAR' FlixjQ('.flix_hotspotV2').append(arhtml);} FlixServices.flixhotspot.loadspeed('stop','qr');FlixjQ('.ek-aricon').on('click',function(e){if(typeof flixtracking!='undefined') flixtracking.products.hotspot('webar_click','');if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.loadspeed('start','ar');document.addEventListener('visibilitychange',function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.visibilitychange2()});}) if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},500);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPosition();},1500);},visibilitychange:function(state,type){log5('visibilitychange-'+type) if(document.visibilityState=='hidden'){}else{log5('User is back -'+document.visibilityState);FlixServices.flixhotspot.dwelltimer('stop','qr');log5('run loadspeed artime ',document.visibilityState);setTimeout(function(){if(FlixServices.flixhotspot.artime>0){if(typeof flixtracking!='undefined') flixtracking.products.hotspot('launch','ar_time_'+FlixServices.flixhotspot.artime);} document.removeEventListener('visibilitychange',function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.visibilitychange()});},2000)}},visibilitychange2:function(state,type){log5('visibilitychange2-'+document.visibilityState) if(document.visibilityState=='hidden'){log5('ar model loaded and model viewing starts-'+document.visibilityState);dwelltype='ar' if(FlixjQ('.share-bubble').length) dwelltype='qr' if(FlixjQ('.ek-ios, .ek-android').length||FlixjQ('.flix-qrpopup').length) FlixServices.flixhotspot.dwelltimer('start',dwelltype);if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.loadspeed('stop','ar');}else{log5('visibilitychange2 visible');document.removeEventListener('visibilitychange',function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.visibilitychange2()});}},loadspeed:function(state,type){log5('loadspeed-'+type,state) if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.flixhotspot.loadlast&&state=='stop'){FlixServices.flixhotspot.loaddiff=Date.now()-FlixServices.flixhotspot.loadlast;var artime=FlixServices.flixhotspot.loaddiff;log5(type+'-timer stop2- '+FlixServices.flixhotspot.loaddiff);if(type=='ar'){FlixServices.flixhotspot.artime=artime;}else{if(FlixServices.flixhotspot.loaddiff>0){if(typeof flixtracking!='undefined'&&typeof flixtracking.products!='undefined') flixtracking.products.hotspot('launch',type+'_time_'+artime);}} delete FlixServices.flixhotspot.loadlast} if(state=='start'){log5('Loadspeed timer start');FlixServices.flixhotspot.loadlast=Date.now();}},dwelltimer:function(state){log5('dwelltimer-',state) if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.flixhotspot.lastt&&FlixServices.flixhotspot.lastt!=0&&state=='stop'){FlixServices.flixhotspot.tdiff=Date.now()-FlixServices.flixhotspot.lastt;type='ar' if(FlixjQ('#flix_desktop_webar').length) type='qr' var artime=type+'_time_'+FlixServices.flixhotspot.tdiff;log5(type+'-timer stop33- '+FlixServices.flixhotspot.tdiff);if(FlixServices.flixhotspot.tdiff>0){if(typeof flixtracking!='undefined') flixtracking.products.hotspot('dwelltime',artime);} document.removeEventListener('visibilitychange',function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined'){FlixServices.flixhotspot.visibilitychange2();FlixServices.flixhotspot.visibilitychange();}});FlixServices.flixhotspot.lastt=0;} if(state=='start'&&FlixServices.flixhotspot.lastt!=0){log5('dwelltimer timer start');document.addEventListener('visibilitychange',function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.visibilitychange()});FlixServices.flixhotspot.lastt=Date.now();}},loadGoogleMeta:function(webar_id){log3('loadGoogleMeta',webar_id) var cloudFrontURL=window.FlixServices.webar_cloud_url;var productThumb=window.FlixServices.webar_thumb_url+webar_id+"_thumbnail.jpg";var productGLB=window.FlixServices.webar_glb_url+webar_id+".glb";var productUSDZ=window.FlixServices.webar_usdz_url+webar_id+".usdz";var jsonString={"@context":"http://schema.org/","@type":"3DModel","image":productThumb,"name":document.title,"encoding":[{"@type":"MediaObject","contentUrl":productGLB,"encodingFormat":"model/gltf-binary"},{"@type":"MediaObject","contentUrl":productUSDZ,"encodingFormat":"model/vnd.usdz+zip"}]} var newScript=document.createElement('script');newScript.setAttribute('type','application/ld+json');newScript.innerHTML=JSON.stringify(jsonString);document.querySelector("head").appendChild(newScript);FlixjQ('#flix_hotspots').addClass('flix-googlear3c')},load3dfw:function(html,webar_id){log3('load3dfw',html);if(html==false){var p=flixmain_product_id;var lan=flixmain_language;var mpn=flixmain_mpn;var ean=flixmain_ean;var html='
';}else{if(html.search('/qrpopup')!=-1) html=html.replace('/qrpopup','') if(html.search('&showqrpopup=1')!=-1) html=html.replace('&showqrpopup=1','')} var threedfwlocation=FlixjQ('[data-flix-3d]').attr('data-flix-3d') if(typeof threedfwlocation!='undefined'&&threedfwlocation.length){FlixjQ('div#'+threedfwlocation).each(function(){if(FlixjQ(this).find('#flix_selector_3d').length==0) FlixjQ(this).append(html);});}},flixDetectWebGLContext:function(){var canvas=document.createElement("canvas");var gl=canvas.getContext("webgl")||canvas.getContext("experimental-webgl");if(gl&&gl instanceof WebGLRenderingContext){return true}else{logflix("Failed to get WebGL context. Your browser or device may not support WebGL.") return false}},featpagination:function(){var paginationLi='';FlixjQ('div[class*=feature_hotspot_tab]').hide();var FeatureCount=FlixjQ('div[class*=feature_hotspot_tab]').length;paginationLi+='
  • ';for(var i=2,max=FeatureCount;i<=max;i++){paginationLi+='
  • ';} paginationLi+='
';FlixjQ(paginationLi).appendTo('.paginav');if(FeatureCount<=1) FlixjQ('.paginav').remove();FlixjQ('.feature_hotspot_tab_1').show();var video=FlixjQ('.feature_hotspot_tab_1').find('video');if(video.length){video.find('source').attr('src',video.find('source').attr('data-src')) video[0].load();video[0].play();} FlixjQ('.paginav button').click(function(e){FlixjQ('div[class*=feature_hotspot_tab]').hide();FlixjQ('.feature_hotspot_tab_'+FlixjQ(this).text()).show();FlixjQ('.share-bubble .active').removeClass('active') FlixjQ(this).closest('li').addClass('active') FlixjQ('.hotspot_featdiv').find('video').each(function(){this.pause()}) var video=FlixjQ('.feature_hotspot_tab_'+FlixjQ(this).text()).find('video') if(video.length){if(!video.find('source').attr('src')){video.find('source').attr('src',video.find('source').attr('data-src')) video[0].load();} video[0].play();}});},flixBox:function(pophtml,hotspotid){FlixjQ('.share-bubble').remove();var vid=0 if(hotspotid.search('video')!=-1||(typeof pophtml!='undefined'&&pophtml.includes("flix-jw"))){vid=1;} var sharebubble=' ' FlixjQ('body').append(sharebubble);FlixjQ('.share-bubble').append(pophtml);setTimeout(function(){FlixjQ('.share-bubble .flix_close').focus();var flixESC=function(e){if(e.keyCode==27){FlixjQ('.share-bubble .flix_close').trigger('click') document.removeEventListener('keydown',flixESC);}};document.addEventListener('keydown',flixESC);},800);if(window.document.documentMode) FlixjQ('.share-bubble').addClass('flix-hotspot-ie') FlixServices.flixhotspot.featpagination();var bubble=FlixjQ('.share-bubble');var position=FlixjQ('#flix_'+hotspotid).position();if(position.top<50) position=FlixjQ('#flix_'+hotspotid).offset();var bubblewidth=FlixjQ('.share-bubble').width()||650;var mousex=position.left+FlixjQ('#flix_'+hotspotid).width()+5;var mousey=position.top;var docwidth=FlixjQ(document).width();var winwidth=FlixjQ(window).width();var bubblewinwidth=winwidth*0.9;var bubblewinleft=winwidth*0.05;var popwidth=docwidth-mousex-90;if(mousex<10) mousex=10 if(typeof pophtml!='undefined'&&pophtml.search('showqrpopup=1')!=-1&&popwidth>450){popwidth=470;} if(typeof pophtml!='undefined'&&pophtml.search('/qrpopup/')!=-1&&popwidth>370){popwidth=420;FlixjQ('.share-bubble').addClass('flix-qrpopup') if(pophtml.search('d3nkfb7815bs43')!=-1) FlixjQ('.share-bubble').addClass('eky-qrpopup')} setTimeout(function(){if(FlixjQ('.share-bubble input#flix-3dfwsrc').length) threedfw.init3dfw(FlixjQ('.share-bubble input#flix-3dfwsrc'));},500) if(popwidth>650) popwidth=650;if(winwidth<800||popwidth<650){if(popwidth<650&&winwidth>1100&&typeof pophtml!='undefined'&&pophtml.search('/qrpopup/')==-1&&pophtml.search('showqrpopup=1')==-1){var left=mousex;if((left+bubblewidth+30)>winwidth){left=left-(left+bubblewidth-winwidth)-30} mousey=position.top+35;bubble.css({top:mousey,left:left+'px',width:650+'px',margin:'0'});}else{if(winwidth<1025){mousey=position.top+35;bubble.css({top:mousey,left:bubblewinleft+'px',width:bubblewinwidth+'px',margin:'0'});popwidth=bubblewinwidth;}else{bubble.css({top:mousey,left:mousex,position:'absolute',width:popwidth});}}}else{bubble.css({top:mousey,left:mousex,position:'absolute',width:popwidth});} var FlixjQelem=FlixjQ('.share-bubble');var FlixjQwindow=FlixjQ(window);var docViewTop=FlixjQwindow.scrollTop();var docViewBottom=docViewTop+window.outerHeight;var elemTop=FlixjQelem.offset().top;var elemBottom=elemTop+FlixjQelem.height();var distributor='6' if(distributor==6){var bubble=FlixjQ('.share-bubble');var position=FlixjQ(FlixServices.flixhotspot.results.settings[0].image_container).offset();if(position!='undefined'&&position!=null){bubble.css({top:position.top});}} if(distributor==1365){var hotdiv=FlixjQ('#flix_hotspots').offset();var mousex2=hotdiv.left-120;var mousey2=mousey+35;var popwidth=550;if(mousex2<10){mousex2=10;popwidth=FlixjQ('#flix_hotspots').width()+hotdiv.left-40;} bubble.css({top:mousey2,left:mousex2,width:popwidth});} if(distributor==158){var hotdiv=FlixjQ('#flix_hotspots').offset();var chmousey2=position.top+35;var chwidth=FlixjQ('#flix_hotspots').width();bubble.css({top:chmousey2,left:hotdiv.left,width:chwidth});} if(distributor==1674){var hotdiv=FlixjQ('#flix_hotspots').offset();var chmousey2=position.top+35;var chwidth=FlixjQ('#flix_hotspots').width();bubble.css({top:chmousey2,left:hotdiv.left-100,width:chwidth+200});} if(distributor==3986){var hotdiv=FlixjQ('#flix_hotspots').offset();var hotdivwidth=FlixjQ('#flix_hotspots').width();var popwidth=FlixjQ('#promoCarousel').width()-50;if(hotdivwidth>popwidth&&docwidth>popwidth&&docwidth>800){bubble.css({width:popwidth});} if(docwidth<800){bubble.css({left:'30px'});}} if(distributor==741){var hotdiv=FlixjQ('#flix_hotspots').offset();var hotdivwidth=FlixjQ('#flix_hotspots').width();if(popwidth<650) var popwidth=FlixjQ('.jsProductDetailImage').width()+FlixjQ('.jsProductDetailImage').offset().left;var mousex2=10 if(docwidth>1050){bubble.css({width:popwidth,left:mousex2});}} if(distributor==859){var hotdiv=FlixjQ('#flix_hotspots').offset();var hotdivwidth=FlixjQ('#flix_hotspots').width();if(popwidth<650) var popwidth=FlixjQ('.sc-product-main-block').width()+FlixjQ('.sc-product-main-block').offset().left;var mousex2=10 if(docwidth>800){bubble.css({width:popwidth,left:mousex2});}} if(distributor==135){var hotdiv=FlixjQ('.share-bubble').offset().left;var bubblewidth=FlixjQ('.share-bubble').width();var winwidth=FlixjQ(window).width();if((hotdiv+bubblewidth)>winwidth){var newwidth=bubblewidth-((hotdiv+bubblewidth)-winwidth)-20;bubble.css({width:newwidth});}} if(distributor==2982){var hotdiv=FlixjQ('#flix_hotspots').offset();var chmousey2=position.top+40;var mousex2=FlixjQ('#flix_hotspots').offset().left;var popwidth=FlixjQ('#flix_hotspots').width()-75;if(mousex2<10){mousex2=10;popwidth=FlixjQ('#flix_hotspots').width();} bubble.css({top:chmousey2,left:mousex2,width:popwidth});} if(distributor==1262){var hotdiv=FlixjQ('#flix_hotspots').offset();var mousex2=mousex-800;var mousey2=mousey+35;var popwidth=FlixjQ('#flix_hotspots').width()+hotdiv.left-50;if(hotdiv.left<85){mousex2=10;popwidth=FlixjQ('#flix_hotspots').width();} bubble.css({top:mousey2,left:mousex2,width:popwidth});} if(distributor==13645){var hotdiv=FlixjQ('#flix_hotspots').offset();var popwidth=FlixjQ('#flix_hotspots').width()-100;var mousey=position.top+20;var mousex=position.left-50;bubble.css({top:mousey,left:mousex,width:popwidth});} if(distributor==6544){var mousex2=mousex-650;if((winwidth>=1024)&&(position.left>650)){bubble.css({left:mousex2});}} if(vid==1){if(popwidth<700){var newWidth=popwidth-70;var newHeight=Math.round(newWidth*0.56).toFixed(0);bubble.css({width:popwidth});if(popwidth<650&&winwidth>1100&&distributor!=6){var left=mousex-500;if(left<10) left=10 bubble.css({width:650+'px',left:left+'px',});}} if(typeof FlixjQ.fn.video!='undefined'&&typeof FlixjQ.fn.video.loadJWvideos!='undefined'){setTimeout(function(){if(FlixjQ('.share-bubble input').length>0) FlixjQ.fn.video.loadJWvideos(0);},500);}else if(typeof checkJWVideoType!='undefined'){checkJWVideoType()}else{if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery-alpha.flix360.io/static/jwplayer/js/video.js');}else if(location.href.indexOf('flix-videov3')!==-1||sessionStorage.getItem('videov3')==='1'){FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/videov3.js');}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/video.js');}}} FlixjQ(document).off('click.hotdocument') FlixjQ(document).on('click.hotdocument',function(e){var container=FlixjQ(".share-bubble");if((FlixjQ('.share-bubble').length>0&&!container.is(e.target)&&container.has(e.target).length===0)&&FlixjQ('[id*=lightbox]').length==0||(e.target.className=='flix_close')){if(FlixjQ('#flix_desktop_webar').length&&FlixjQ('.share-bubble #flix_selector_3d').length){if(typeof flixtracking!='undefined') flixtracking.products.hotspot('qr_click','qr_close');} if(typeof flixtracking!='undefined'&&typeof FlixServices!='undefined'&&FlixServices.flixhotspot){FlixServices.flixhotspot.dwelltimer('stop','qr');} var jwid=FlixjQ('.share-bubble .jwplayer').attr('id');if(jwid&&FlixjQ('#'+jwid).length>0){jwplayer(jwid).pause();jwplayer(jwid).remove();} if(FlixjQ('.flix-do-not-close-popup').length==0){FlixjQ('.share-bubble').html('').remove();} FlixjQ('.flix-do-not-close-popup .flix_close').live('click',function(){FlixjQ('.share-bubble').html('').remove();});if(FlixjQ('.flixmodalbutton').length) setTimeout(function(){var jwid=FlixjQ('.share-bubble .jwplayer').attr('id') if(jwid&&FlixjQ('#'+jwid).length>0){jwplayer(jwid).pause();jwplayer(jwid).remove();}},2000);}});if(FlixjQ('.ek-ios, .ek-android').length||FlixjQ('.flix-qrpopup').length){FlixServices.flixhotspot.dwelltimer('start','qr');}},updateHotspotPosition:function(){var distributor='6';if((FlixjQ('.flix_hotspotV2:not(".ek_hotspots") svg').length||FlixjQ('.flix_hotspotV2:not(".ek_hotspots") .ek-aricon').length)&&typeof FlixServices.flixhotspot.results!='undefined'&&typeof FlixServices.flixhotspot.results.settings!='undefined'){var flixhero=FlixjQ(FlixServices.modular_match_data[0].settings.distributor_settings.image_container) if(FlixServices.ismobile()==true&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container!=null&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container!=''){flixhero=FlixjQ(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container)} var flixheropos=flixhero.offset();if(flixhero.length>1&&(flixheropos.left==0||flixheropos.top==0)&&typeof flixhero[1]!='undefined'){var flixheropos=FlixjQ(flixhero[1]).offset();flixhero=FlixjQ(flixhero[1])} if(typeof(flixheropos)!="undefined"){var flixheroarray={top:flixheropos.top,left:flixheropos.left,width:flixhero.width(),height:flixhero.height()};}else{if(typeof flixErrorLogged=='undefined'||typeof flixErrorLogged==undefined){window.flixErrorLogged=true;logflix("flixmedia : image_container not found")} var flixheroarray={top:0,left:0,width:0,height:0};} log3('flixheroarray',flixheroarray);if(typeof hotspotwebarstatic!='undefined'&&hotspotwebarstatic==true){flixheroarray.top=0;flixheroarray.left=0;} var ii=0;FlixjQ('.flix_hs').each(function(index){if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)LeftBottom($|\W)/)){var bottomy=flixheroarray.top+flixheroarray.height/100*90;if(ii==0) FlixjQ(this).css('top',bottomy-120).css('left',flixheroarray.left) if(ii==1) FlixjQ(this).css('top',bottomy-80).css('left',flixheroarray.left) if(ii==2) FlixjQ(this).css('top',bottomy-40).css('left',flixheroarray.left) if(ii==3) FlixjQ(this).css('top',bottomy).css('left',flixheroarray.left)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)LeftTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*10;if(ii==0) FlixjQ(this).css('top',topy).css('left',flixheroarray.left) if(ii==1) FlixjQ(this).css('top',topy+40).css('left',flixheroarray.left) if(ii==2) FlixjQ(this).css('top',topy+80).css('left',flixheroarray.left) if(ii==3) FlixjQ(this).css('top',topy+120).css('left',flixheroarray.left)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)LeftMiddle($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*50;if(ii==0) FlixjQ(this).css('top',topy-60).css('left',flixheroarray.left) if(ii==1) FlixjQ(this).css('top',topy-20).css('left',flixheroarray.left) if(ii==2) FlixjQ(this).css('top',topy+20).css('left',flixheroarray.left) if(ii==3) FlixjQ(this).css('top',topy+60).css('left',flixheroarray.left)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)RightTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*10;if(ii==0) FlixjQ(this).css('top',topy).css('left',flixheroarray.left+flixheroarray.width) if(ii==1) FlixjQ(this).css('top',topy+40).css('left',flixheroarray.left+flixheroarray.width) if(ii==2) FlixjQ(this).css('top',topy+80).css('left',flixheroarray.left+flixheroarray.width) if(ii==3) FlixjQ(this).css('top',topy+120).css('left',flixheroarray.left+flixheroarray.width)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)RightMiddle($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*50;if(ii==0) FlixjQ(this).css('top',topy-60).css('left',flixheroarray.left+flixheroarray.width) if(ii==1) FlixjQ(this).css('top',topy-20).css('left',flixheroarray.left+flixheroarray.width) if(ii==2) FlixjQ(this).css('top',topy+20).css('left',flixheroarray.left+flixheroarray.width) if(ii==3) FlixjQ(this).css('top',topy+60).css('left',flixheroarray.left+flixheroarray.width)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)RightBottom($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*90;if(ii==0) FlixjQ(this).css('top',topy-60).css('left',flixheroarray.left+flixheroarray.width) if(ii==1) FlixjQ(this).css('top',topy-20).css('left',flixheroarray.left+flixheroarray.width) if(ii==2) FlixjQ(this).css('top',topy+20).css('left',flixheroarray.left+flixheroarray.width) if(ii==3) FlixjQ(this).css('top',topy+60).css('left',flixheroarray.left+flixheroarray.width)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)CenterTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*50;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx-20) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+20) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx-60) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+60)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)leftTopHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*25;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx-20) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+20) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx-60) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+60)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)RightTopHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*90;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx-20) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+20) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx-60) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+60)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)leftBottomHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left+flixheroarray.width/100*5;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+40) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx+80) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+120)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)CenterBottom($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left+flixheroarray.width/100*50;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx-20) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+20) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx-60) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+60)}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.match(/(^|\W)BottomLeft($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left;if(ii==0) FlixjQ(this).css('top',topy).css('left',leftx) if(ii==1) FlixjQ(this).css('top',topy).css('left',leftx+40) if(ii==2) FlixjQ(this).css('top',topy).css('left',leftx+80) if(ii==3) FlixjQ(this).css('top',topy).css('left',leftx+120)}else{if(ii==0) FlixjQ(this).css('top',flixheroarray.top+flixheroarray.height/100*50).css('left',flixheroarray.left+flixheroarray.width/100*35) if(ii==1) FlixjQ(this).css('top',flixheroarray.top+flixheroarray.height/100*50).css('left',flixheroarray.left+flixheroarray.width/100*65) if(ii==2) FlixjQ(this).css('top',flixheroarray.top+flixheroarray.height/100*35).css('left',flixheroarray.left+flixheroarray.width/100*50) if(ii==3) FlixjQ(this).css('top',flixheroarray.top+flixheroarray.height/100*65).css('left',flixheroarray.left+flixheroarray.width/100*50)} ii++;}) if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.search('MobLeftBottom')!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*90;var webarposleft=flixheroarray.left+flixheroarray.width/100*1;}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.search('MobRightTop')!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*1;var webarposleft=flixheroarray.left+flixheroarray.width-60;}else if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.search('MobBottomMiddle')!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*90;var webarposleft=flixheroarray.left+flixheroarray.width/100*40;}else{var webarpostop=flixheroarray.top+flixheroarray.height/100*1;var webarposleft=flixheroarray.left+flixheroarray.width/100*1;} if(FlixServices.flixhotspot.results.settings[0].alignment&&FlixServices.flixhotspot.results.settings[0].alignment.search('MobAlignBottomHS')!=-1){if(ii>0){var largestLeft=0,largestTop=0;FlixjQ('.flix_hs').each(function(index){var tempLeft=parseInt(FlixjQ(this).css('left').replace("px","")) var temTop=parseInt(FlixjQ(this).css('top').replace("px","")) if(largestLeft0)){FlixjQ('div#flix_hotspotsmob').remove();FlixjQ('').appendTo(FlixjQ('body'));if(FlixServices&&FlixServices.ismobile()==true&&FlixServices.modular_match_data&&FlixServices.modular_match_data[0]){FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3').attr('data-hotv2',FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container)} FlixjQ('#flix_hotspotsmob').addClass('flix_hotspot_'+flixmain_language).addClass('flix_hotspot_'+flixmain_distributor);if(FlixServices&&FlixjQ('.flix_hotspotV2:not(".ek_hotspots") svg').length==0){FlixServices.flixhotspot.createHotspotsMob();}}}},500);},createHotspotsMob:function(){log3("createHotspots");FlixServices.flixhotspot.results=FlixServices.flixhotspot.hotspot_full;hotspots=FlixServices.flixhotspot.hotspot_data||{};settings=FlixServices.flixhotspot.hotspot_settings||{};var mobile_hotspot_available='';var arid,arimg;if(settings[0]&&settings[0].ar_google&&settings[0].ar_google==1){if(FlixServices.flixhotspot.results.results.hotspots.product_webar)var arid=FlixServices.flixhotspot.results.results.hotspots.product_webar.webar_id;if(FlixServices.flixhotspot.results.hotspots.desktop_webar)var arid=FlixServices.flixhotspot.results.hotspots.desktop_webar.webar_id;log3("arid",arid);FlixServices.flixhotspot.loadGoogleMeta(arid);} if(settings[0]&&settings[0].css&&settings[0].css.length>0){FlixjQ("#flix_hotspotsmob").after(settings[0].css);} FlixjQ.each(hotspots,function(index,hs){var Hsmodule=hs.module_id;if(Hsmodule==undefined) Hsmodule='';if(!hs.color_hash||hs.color_hash.search("#")==-1)hs.color_hash="#105DC1";var colorhash=hs.color_hash.replace("#","");if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container==null)return false;if(index=="desktop_webar"&&FlixServices.flixhotspot.results.settings[0].desktop_webar==false){log3("no flixar"+FlixServices.flixhotspot.results.settings[0].desktop_webar);return true;} if(index=="product_webar"&&FlixServices.flixhotspot.results.settings[0].desktop_webar==false){log3("no flixar"+FlixServices.flixhotspot.results.settings[0].desktop_webar);return true;} if(index.indexOf("webar")===-1&&FlixServices.flixhotspot.results.settings[0].no_hotspots==true){log3("no hotspots"+FlixServices.flixhotspot.results.settings[0].no_hotspots);return true;} if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/)){FlixjQ("#flix_hotspotsmob").appendTo(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container);} if(hs.webar_id)arid=hs.webar_id;if(hs.ui_default){arimg=hs.ui_default;if(hs.ui_default.search("_90x90_")!=-1&&hs.ui_default.search("http")==-1){hs.ui_default="https://media.flixcar.com/delivery"+hs.ui_default;}} if(typeof hs.html!='undefined'&&hs.html.includes('inpage_selector_3d')){hs.html=hs.html.replace(/&d=6&/g,'&d='+flixmain_distributor+'&')} if(index=="comp_product_logo"){var target=settings[0].logo_program_container;var html=FlixServices.flixhotspot.results.hotspots.comp_product_logo.html;FlixjQ(target).append(html);}else if(FlixServices.ismobile()){log3("Show mobile hotspots-"+index,FlixServices.ismobile());if(FlixServices.flixhotspot.flixDetectWebGLContext()==false&&index=="product_view3dfw"){log3("hide 3d hotspot",FlixServices.flixhotspot.flixDetectWebGLContext());return true;} var hotspotsvg='
';if(index.search("comp_")!=-1){if(!hs.color_hash||hs.color_hash.length==0)hs.color_hash="#105DC1";var hotspotsvg='
';} if(index.search("product_ugc")!=-1){var hotspotsvg='
';} if(index.search('product_sustainability')!=-1){var hotspotsvg='
'} if(index.search('smart_content')!=-1){var hotspotsvg='
'} if(index.search('accessory_widget')!=-1){var hotspotsvg='
'} if(index.search('sis_widget')!=-1){var hotspotsvg='
'+''+''+''+''+''+''+''+'
'} if(typeof hs.tooltip_title!="undefined"&&hs.tooltip_title!=null&&hs.tooltip_title.length>0) FlixjQ("#flix_hotspotsmob").append(hotspotsvg);if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment){FlixjQ("#flix_hotspotsmob").attr("data-flix-align",FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment);} FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3mobile');var rgbaCol='rgba('+parseInt(colorhash.slice(-6,-4),16) +','+parseInt(colorhash.slice(-4,-2),16) +','+parseInt(colorhash.slice(-2),16) +',0.6)';FlixjQ('.flix_hotspotV3mobile').css('background-color',rgbaCol)} if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();});if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data&&typeof FlixServices.modular_match_data[0].settings.distributor_settings.mobilehotspot_custom_button!='undefined'&&FlixServices.modular_match_data[0].settings.distributor_settings==true&&!FlixjQ(".flix_product_single").length){FlixjQ('#flix_hotspotsmob').addClass("flix_hotspot_single") var stroke='#005b9c';var fill='#fff';var hotspotsvg2='';FlixjQ("#flix_hotspotsmob").append(hotspotsvg2);FlixjQ(".flix_hsmob:not(.flix_hsmob-single)").hide();if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();} function loadJWScript(e,t){if(-1!=e.search(".js")&&0===FlixjQ("script[src='"+e+"']").length){var c=document.createElement("script");c.type="text/javascript",c.src=e,c.onload=t,document.head.appendChild(c);} if(-1!=e.search(".css")&&0===FlixjQ("link[href='"+e+"']").length){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.type="text/css",n.onload=t,document.head.appendChild(n);}} if(typeof FlixServices!='undefined'&&FlixServices.modular_match_data&&typeof FlixServices.modular_match_data[0]!='undefined'&&typeof FlixServices.modular_match_data[0].modules!='undefined'&&((typeof FlixServices.modular_match_data[0].modules.viewWebar!='undefined'&&FlixServices.modular_match_data[0].modules.viewWebar!=null)||(typeof FlixServices.modular_match_data[0].modules.view3dfm!='undefined'&&FlixServices.modular_match_data[0].modules.view3dfm!=null))){if(!window.threedcheck) window.threedcheck=false;if(typeof window.threedfw=='undefined'&&window.threedcheck==false){window.threedcheck=true;if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery-alpha.flix360.io/js/minify/?url=/static/3dfw/3dfw.js');}else{FlixServices.loadFlixJs('https://media.flixcar.com/delivery/js/minify?url=static/3dfw/3dfw.js');}}} FlixjQ("#flix_hotspotsmob .flix_hsmob,#flix_hotspotsmob .ek-desktop").on({click:function(){var idmob=this.id;if(typeof FlixServices.flixhotspot.results!='undefined'&&FlixServices.flixhotspot.results.settings[0]!='undefined') idmob=idmob.replace(FlixServices.flixhotspot.results.settings[0].prefix,"");var id=idmob.replace('mob','') if(hotspots[id]||id=='product_single'){if(id=='product_single'){var idmob=FlixjQ('.flix_hsmob:eq(0)').attr('id');var id=idmob.replace('mob','').replace('flix_','');} html=hotspots[id].html;setTimeout(function(){FlixServices.flixhotspot.flixBoxMob(html,id);},100);}},keydown:function(event){if(event.keyCode==13){FlixjQ(this).trigger("click");} if(event.keyCode==32){FlixjQ(this).trigger("click");}}});FlixjQ(window).resize(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();});var t;document.addEventListener("scroll",cleartimer);document.addEventListener("wheel",cleartimer2);window.addEventListener("touchend",cleartimer3);window.addEventListener("touchmove",cleartimer4);function cleartimer(){clearTimeout(t);checkScroll();log3(1);document.removeEventListener("wheel",cleartimer2);window.addEventListener("touchend",cleartimer3);} function cleartimer2(){clearTimeout(t);checkScroll();log3(2);} function cleartimer3(){clearTimeout(t);checkScroll();log3(3);} function cleartimer4(){clearTimeout(t);if(FlixjQ(window).scrollTop()<800){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();} log3(3);} function checkScroll(){t=setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined'&&FlixjQ(window).scrollTop()<800&&typeof FlixServices.flixhotspot!='undefined'){FlixServices.flixhotspot.updateHotspotPosition();setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();},100);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();},200);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();},500);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();},1500);setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.flixhotspot!='undefined') FlixServices.flixhotspot.updateHotspotPositionMob();},2500);}},1);}},featpaginationMob:function(){var paginationLi='';FlixjQ('div[class*=feature_hotspot_tab]').hide();var FeatureCount=FlixjQ('.flixtabhtmlproduct_gallery div[class*=feature_hotspot_tab]').length;paginationLi+='
  • ';for(var i=2,max=FeatureCount;i<=max;i++){paginationLi+='
  • ';} paginationLi+='
';FlixjQ(paginationLi).appendTo('.paginav');if(FeatureCount<=1) FlixjQ('.paginav').remove();FlixjQ('.feature_hotspot_tab_1').show();var video=FlixjQ('.feature_hotspot_tab_1').find('video');if(video.length){video.find('source').attr('src',video.find('source').attr('data-src')) video[0].load();video[0].play();} FlixjQ('.paginav button').click(function(e){FlixjQ('div[class*=feature_hotspot_tab]').hide();FlixjQ('.feature_hotspot_tab_'+FlixjQ(this).text()).show();FlixjQ('.share-bubblemob .active').removeClass('active') FlixjQ(this).closest('li').addClass('active') FlixjQ('.hotspot_featdiv').find('video').each(function(){this.pause()}) var video=FlixjQ('.feature_hotspot_tab_'+FlixjQ(this).text()).find('video') if(video.length){if(!video.find('source').attr('src')){video.find('source').attr('src',video.find('source').attr('data-src')) video[0].load();} video[0].play();}});},flixBoxMob:function(pophtml,hotspotid){FlixjQ(".share-bubblemob").remove();var vid=0;if(hotspotid.search("video")!=-1||(typeof pophtml!='undefined'&&pophtml.includes("flix-jw"))){vid=1;} var bubbletype='' var customheader='' var closebtnbtm='',devicetype='' if(FlixServices.ismobile()=='true'||FlixServices.flixisMobile.iOS()!=null||FlixServices.flixisMobile.Android()!=null){bubbletype='flix_hotspotV2mobilebubble flix_hotspotV3mobilebubble'} if(FlixServices.flixisMobile.iOS()!=null){devicetype='flix_hotspotios';} if(FlixServices.flixisMobile.Android()!=null){devicetype='flix_hotspotandroid';} var sharebubble=' ';FlixjQ("body").append(sharebubble);setTimeout(function(){FlixjQ('.flix_hotspotios .flix-mobilehead, .flix_hotspotios .flix-mobilefooter').show();},900);var tabshtml='';FlixjQ.each(FlixServices.flixhotspot.results.hotspots,function(index,hs){var tabname=FlixjQ(this)[0].tooltip_title;var tabhtml=FlixjQ(this)[0].html var active='' var activecontent='' if(index==hotspotid){active='flix-activetab';activecontent='flix-activecontent';} if(index!='comp_product_logo'&&index!='desktop_webar'){tabshtml+='
' FlixjQ('.flix-hotcontent').append('
'+tabhtml+'
')}});FlixjQ('.flix-mobiletabs').append(tabshtml) var bubble=FlixjQ(".share-bubblemob");if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.modular_match_data!='undefined'&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobLeft($|\W)/)||FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/))){FlixjQ(".share-bubblemob").addClass('flix_hotspotV3mobilebubbleleft') bubble.css({left:-(document.body.clientWidth)});setTimeout(function(){bubble.css({left:0});},200)} else if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.modular_match_data!='undefined'&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobRight($|\W)/)){FlixjQ(".share-bubblemob").addClass('flix_hotspotV3mobilebubbleright');bubble.css({right:-(document.body.clientWidth)});setTimeout(function(){bubble.css({right:0});},200)} setTimeout(function(){FlixjQ(".share-bubblemob .flix_close").focus();},800);FlixServices.flixhotspot.featpaginationMob();setTimeout(function(){if(FlixjQ(".share-bubblemob input#flix-3dfwsrc").length)threedfw.init3dfw(FlixjQ(".share-bubblemob input#flix-3dfwsrc"));},500);if(typeof FlixjQ.fn.video!='undefined'&&typeof FlixjQ.fn.video.loadJWvideos!='undefined'){setTimeout(function(){if(FlixjQ('.share-bubblemob input').length>0) FlixjQ.fn.video.loadJWvideos(0);},1000);}else if(typeof checkJWVideoType!='undefined'){checkJWVideoType()}else{if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery-alpha.flix360.io/static/jwplayer/js/video.js');}else if(location.href.indexOf('flix-videov3')!==-1||sessionStorage.getItem('videov3')==='1'){FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/videov3.js');}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/jwplayer/js/video.js');}} FlixjQ('.flix-mobtab').off("click");FlixjQ('.flix-mobtab').on("click",function(e){FlixjQ(".share-bubblemob").scrollTop(0);var target=FlixjQ(this).attr('data-tabname') FlixjQ('.flix-activetab').removeClass('flix-activetab') FlixjQ(this).addClass('flix-activetab') FlixjQ('.flix-activecontent').removeClass('flix-activecontent') FlixjQ('.flixtabhtml'+target).addClass('flix-activecontent') FlixjQ(".share-bubblemob .flix-videodiv").remove();setTimeout(function(){if(FlixjQ('.share-bubblemob input').length>0) FlixjQ.fn.video.loadJWvideos(0);var resizeEvent=window.document.createEvent('UIEvents');resizeEvent.initUIEvent('resize',true,false,window,0);window.dispatchEvent(resizeEvent);},200);}) FlixjQ(document).off("click.hotdocument");FlixjQ(document).on("click.hotdocument",function(e){var container=FlixjQ(".share-bubblemob");if(FlixjQ(".share-bubblemob").length>0&&!container.is(e.target)&&container.has(e.target).length===0&&FlixjQ("[id*=lightbox]").length==0||e.target.classList.contains("flix_close")){closeHotspot(e)}});FlixjQ('.share-bubblemob').touchwipe({wipeLeft:function(){if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobLeft($|\W)/)||FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/))){closeHotspot();}},wipeRight:function(){if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobRight($|\W)/)){closeHotspot();}},min_move_x:20});function closeHotspot(e){if(FlixjQ("#flix_desktop_webar").length&&FlixjQ(".share-bubblemob #flix_selector_3d").length){if(typeof flixtracking!="undefined")flixtracking.products.hotspotmob("qr_click","qr_close");} if(typeof flixtracking!='undefined'&&typeof FlixServices!='undefined'&&FlixServices.flixhotspot){FlixServices.flixhotspot.dwelltimer("stop","qr");} var jwid=FlixjQ(".share-bubblemob .jwplayer").attr("id");if(jwid&&FlixjQ("#"+jwid).length>0){jwplayer(jwid).pause();jwplayer(jwid).remove();} FlixjQ('.flix_hotspotios .flix-mobilehead, .flix-mobilefooter, #flix-hotscroll').hide();var bubble=FlixjQ(".share-bubblemob");if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBottom($|\W)/)){bubble.css({bottom:-screen.height});} else if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobLeft($|\W)/)||FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/))){bubble.css({left:-(document.body.clientWidth)});} else if(typeof FlixServices!='undefined'&&FlixServices&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobRight($|\W)/)){bubble.css({right:-(document.body.clientWidth)});} setTimeout(function(){FlixjQ(".share-bubblemob").html("").remove();},1000);setTimeout(function(){var jwid=FlixjQ(".share-bubblemob .jwplayer").attr("id");if(jwid&&FlixjQ("#"+jwid).length>0){jwplayer(jwid).pause();jwplayer(jwid).remove();}},2000);};setTimeout(function(){FlixjQ("#flix-hotscroll").on("click",function(){document.querySelector('#flix-hotscroll').style.display='none';FlixjQ(".share-bubblemob").animate({scrollTop:0},"slow");});var scrollDemo=document.querySelector('.share-bubblemob');var output=document.querySelector('.output');scrollDemo.addEventListener('scroll',function(){if(scrollDemo.scrollTop>30){document.querySelector('#flix-hotscroll').style.display='block'}else{document.querySelector('#flix-hotscroll').style.display='none'}},{passive:true});},1000) if(FlixjQ(".ek-ios, .ek-android").length||FlixjQ(".flix-qrpopup").length)FlixServices.flixhotspot.dwelltimer("start","qr");},updateHotspotPositionMob:function(){var distributor=flixmain_distributor;if((FlixjQ('.flix_hotspotV3:not(".ek_hotspots") svg').length||FlixjQ('.flix_hotspotV3:not(".ek_hotspots") .ek-aricon').length)&&typeof FlixServices.flixhotspot.results!="undefined"&&typeof FlixServices.flixhotspot.results.settings!="undefined"){var flixhero=FlixjQ(FlixServices.modular_match_data[0].settings.distributor_settings.image_container) if(FlixServices.ismobile()==true&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container!=null&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container!='') flixhero=FlixjQ(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_image_container) var flixheropos=flixhero.offset();if(flixhero.length>1&&(flixheropos.left==0||flixheropos.top==0)&&typeof flixhero[1]!="undefined"){var flixheropos=FlixjQ(flixhero[1]).offset();flixhero=FlixjQ(flixhero[1]);} if(typeof flixheropos!="undefined"){var flixheroarray={top:flixheropos.top,left:flixheropos.left,width:flixhero.width(),height:flixhero.height()};if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&!FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/)) FlixjQ('#flix_hotspotsmob').css({"top":flixheropos.top,"left":flixheropos.left});}else{if(typeof flixErrorLogged=='undefined'||typeof flixErrorLogged==undefined){window.flixErrorLogged=true;logflix("flixmedia : image_container not found")} var flixheroarray={top:0,left:0,width:0,height:0};} log3("flixheroarray",flixheroarray);if(typeof hotspotwebarstatic!="undefined"&&hotspotwebarstatic==true){flixheroarray.top=0;flixheroarray.left=0;} var ii=0;FlixjQ(".flix_hsmob").each(function(index){log3(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment) if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)LeftBottom($|\W)/)){var bottomy=flixheroarray.top+flixheroarray.height/100*90;if(ii==0)FlixjQ(this).css("top",bottomy-120).css("left",flixheroarray.left);if(ii==1)FlixjQ(this).css("top",bottomy-80).css("left",flixheroarray.left);if(ii==2)FlixjQ(this).css("top",bottomy-40).css("left",flixheroarray.left);if(ii==3)FlixjQ(this).css("top",bottomy).css("left",flixheroarray.left);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)LeftTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*10;if(ii==0)FlixjQ(this).css("top",topy).css("left",flixheroarray.left);if(ii==1)FlixjQ(this).css("top",topy+40).css("left",flixheroarray.left);if(ii==2)FlixjQ(this).css("top",topy+80).css("left",flixheroarray.left);if(ii==3)FlixjQ(this).css("top",topy+120).css("left",flixheroarray.left);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)LeftMiddle($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*50;if(ii==0)FlixjQ(this).css("top",topy-60).css("left",flixheroarray.left);if(ii==1)FlixjQ(this).css("top",topy-20).css("left",flixheroarray.left);if(ii==2)FlixjQ(this).css("top",topy+20).css("left",flixheroarray.left);if(ii==3)FlixjQ(this).css("top",topy+60).css("left",flixheroarray.left);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)RightTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*10;if(ii==0)FlixjQ(this).css("top",topy).css("left",flixheroarray.left+flixheroarray.width);if(ii==1)FlixjQ(this).css("top",topy+40).css("left",flixheroarray.left+flixheroarray.width);if(ii==2)FlixjQ(this).css("top",topy+80).css("left",flixheroarray.left+flixheroarray.width);if(ii==3)FlixjQ(this).css("top",topy+120).css("left",flixheroarray.left+flixheroarray.width);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)RightMiddle($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*50;if(ii==0)FlixjQ(this).css("top",topy-60).css("left",flixheroarray.left+flixheroarray.width);if(ii==1)FlixjQ(this).css("top",topy-20).css("left",flixheroarray.left+flixheroarray.width);if(ii==2)FlixjQ(this).css("top",topy+20).css("left",flixheroarray.left+flixheroarray.width);if(ii==3)FlixjQ(this).css("top",topy+60).css("left",flixheroarray.left+flixheroarray.width);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)RightBottom($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*90;if(ii==0)FlixjQ(this).css("top",topy-60).css("left",flixheroarray.left+flixheroarray.width);if(ii==1)FlixjQ(this).css("top",topy-20).css("left",flixheroarray.left+flixheroarray.width);if(ii==2)FlixjQ(this).css("top",topy+20).css("left",flixheroarray.left+flixheroarray.width);if(ii==3)FlixjQ(this).css("top",topy+60).css("left",flixheroarray.left+flixheroarray.width);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)CenterTop($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*50;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx-20);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+20);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx-60);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+60);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)leftTopHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*25;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx-20);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+20);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx-60);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+60);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)RightTopHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*5;var leftx=flixheroarray.left+flixheroarray.width/100*90;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx-20);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+20);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx-60);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+60);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)leftBottomHorizontal($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left+flixheroarray.width/100*5;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+40);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx+80);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+120);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)CenterBottom($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left+flixheroarray.width/100*50;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx-20);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+20);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx-60);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+60);}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)BottomLeft($|\W)/)){var topy=flixheroarray.top+flixheroarray.height/100*95;var leftx=flixheroarray.left;if(ii==0)FlixjQ(this).css("top",topy).css("left",leftx);if(ii==1)FlixjQ(this).css("top",topy).css("left",leftx+40);if(ii==2)FlixjQ(this).css("top",topy).css("left",leftx+80);if(ii==3)FlixjQ(this).css("top",topy).css("left",leftx+120);}else{if(ii==0)FlixjQ(this).css("top",flixheroarray.top+flixheroarray.height/100*50).css("left",flixheroarray.left+flixheroarray.width/100*35);if(ii==1)FlixjQ(this).css("top",flixheroarray.top+flixheroarray.height/100*50).css("left",flixheroarray.left+flixheroarray.width/100*65);if(ii==2)FlixjQ(this).css("top",flixheroarray.top+flixheroarray.height/100*35).css("left",flixheroarray.left+flixheroarray.width/100*50);if(ii==3)FlixjQ(this).css("top",flixheroarray.top+flixheroarray.height/100*65).css("left",flixheroarray.left+flixheroarray.width/100*50);} if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBelow($|\W)/)){FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3mobilebelow').css("top",topy)} else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobBottom($|\W)/)){var topy=screen.height;FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3mobilebottom').css("top",topy)} else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobLeft($|\W)/)){var topy=screen.height/100*50;if(window.orientation==90&&FlixServices.flixisMobile.iOS()!=null&&typeof navigator.userAgentData=='undefined'){topy=screen.width/100*50-20;} FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3mobileleft').css("top",topy-(FlixjQ('#flix_hotspotsmob').height()/2));} else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.match(/(^|\W)HotMobRight($|\W)/)){var topy=screen.height/100*50;if(window.orientation==90&&FlixServices.flixisMobile.iOS()!=null&&typeof navigator.userAgentData=='undefined'){topy=screen.width/100*50-20;} FlixjQ('#flix_hotspotsmob').addClass('flix_hotspotV3mobileright').css("top",topy-(FlixjQ('#flix_hotspotsmob').height()/2));} ii++;});if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.search("MobLeftBottom")!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*90;var webarposleft=flixheroarray.left+flixheroarray.width/100*1;}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.search("MobRightTop")!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*1;var webarposleft=flixheroarray.left+flixheroarray.width-60;}else if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.search("MobBottomMiddle")!=-1){var webarpostop=flixheroarray.top+flixheroarray.height/100*90;var webarposleft=flixheroarray.left+flixheroarray.width/100*40;}else{var webarpostop=flixheroarray.top+flixheroarray.height/100*1;var webarposleft=flixheroarray.left+flixheroarray.width/100*1;} if(FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment&&FlixServices.modular_match_data[0].settings.distributor_settings.mobile_alignment.search("MobAlignBottomHS")!=-1){if(ii>0){var largestLeft=0,largestTop=0;FlixjQ(".flix_hsmob").each(function(index){var tempLeft=parseInt(FlixjQ(this).css("left").replace("px",""));var temTop=parseInt(FlixjQ(this).css("top").replace("px",""));if(largestLeft>2;e2=(c1&3)<<4|c2>>4;e3=(c2&15)<<2|c3>>6;e4=c3&63;if(isNaN(c2)){e3=e4=64}else if(isNaN(c3)){e4=64}r+=this.c(this.d[e1])+this.c(this.d[e2])+this.c(this.d[e3])+this.c(this.d[e4])}return r},c:function(k){return String.fromCharCode(k)},d:function(){var r=[];var q={45:1,48:57,61:1,65:90,95:1,97:122};for(var i in q){if(q[i]==1){r.push(i)}else{for(var z=i;z<=q[i];z++)r.push(z)}}return r}(),b:function(s){s=s.replace(/\r\n/g,"\n");var r="";for(var n=0,l=s.length;n127&&c<2048){r+=this.c(c>>6|192);r+=this.c(c&63|128)}else{r+=this.c(c>>12|224);r+=this.c(c>>6&63|128);r+=this.c(c&63|128)}}return r}};var process=function(str){var permitted={'m':'','p':'','d':'','l':'','et':'','ed':'d','sid':'','vtime':'','gvid':'','ut':'','br':'d','price':'','ref':'d','currency':'','pn':'d','h1':'d','ti':'d','img':'d','r1cat':'d','om':'d','mpn':'d','ean':'','sku':'d'},s1=str.split('?'),s2=s1[1]?s1[1].split('&'):"",o1={},get,m,url="",u=[],p=[],s=[],e=null;for(var i=0,l=s2.length;i0?data.product:data.product_id;var distributor=data.d>0?data.d:data.distributor_id;if(product>0) {return cookie_type+"_"+distributor+"_"+data.l;}else if(data.legacy!=''){return cookie_type+"_"+distributor+"_"+data.l;}else if(data.mpn!=""){return cookie_type+"_"+distributor+"_"+data.l;}else if(data.ean!=""){return cookie_type+"_"+distributor+"_"+data.l;}else if(data.sku!=""){return cookie_type+"_"+distributor+"_"+data.l;}};_getCookie=function(name){var cookieArr=document.cookie.split(";");for(var i=0;i1){for(var i=0;i=0){if(e.target&&e.target!=null) e.target.onmousedown=function(){};}};if(identifier!=='alert'){var NodeList=document.querySelectorAll(identifier);var ArrayList=Array.prototype.slice.call(NodeList,0);} if(identifier==='alert'||!ArrayList.length){data.event_type="alert";data.event_detail='a2cX';var ticks=10;;(function nTicks(){if(window.flixJsCallbacks.gvid==='undefined'&&ticks){setTimeout(function(){ticks--;nTicks();},100);} else{flixLogging(data);}}());} else{for(var n=0,l=ArrayList.length;n=9){log3('Android >9') return true;}else if(os.name.search('iOS')!=-1&&osversion<11){log3('iOS<11') return false;}else if(os.name.search('iOS')!=-1&&osversion>=11){log3('iPhone') var canvas=document.createElement("canvas");if(canvas){var context=canvas.getContext("webgl")||canvas.getContext("experimental-webgl");if(context){var info=context.getExtension("WEBGL_debug_renderer_info");if(info){var renderer=context.getParameter(info.UNMASKED_RENDERER_WEBGL);}}} log3(window.screen.height+"__"+window.screen.width+"__"+window.devicePixelRatio+"__"+renderer) var ratio=window.devicePixelRatio;if(window.screen.height/window.screen.width==896/414){log3('iPhone XR, iPhone XS Max, iphone 11 , iphone 11 pro max') switch(ratio){default:return true;case 2:return true;case 3:return true;}} else if((window.screen.height/window.screen.width==812/375)&&(window.devicePixelRatio==3)){log3('iPhone X') return true;} else if((window.screen.height/window.screen.width==896/414)&&(window.devicePixelRatio==3)){log3('iPhone Xs max, iphone 11 , iphone 11 pro max') return true;}else if((window.screen.height/window.screen.width==812/375)&&(window.devicePixelRatio==3)){log3('iphone 11 pro') return true;}else if((window.screen.height/window.screen.width==736/414)&&(window.devicePixelRatio==3)){log3('iPhone 6+/6s+/7+ and 8+') switch(renderer){default:return true;case"Apple A8 GPU":return false;case"Apple A9 GPU":return true;case"Apple A10 GPU":return true;case"Apple A11 GPU":return true;case"Apple A12 GPU":return true;}}else if((window.screen.height/window.screen.width==667/375)&&(window.devicePixelRatio==3)){log3('iPhone 6+/6s+/7+ and 8+ in zoom mode') switch(renderer){default:return true;case"Apple A8 GPU":return false;case"Apple A9 GPU":return true;case"Apple A10 GPU":return true;case"Apple A11 GPU":return true;case"Apple A12 GPU":return true;}}else if((window.screen.height/window.screen.width==667/375)&&(window.devicePixelRatio==2)){log3('iPhone 6/6s/7 and 8') switch(renderer){default:return true;case"Apple A8 GPU":return false;case"Apple A9 GPU":return true;case"Apple A10 GPU":return true;case"Apple A11 GPU":return true;case"Apple A12 GPU":return true;}}else if((window.screen.height/window.screen.width==1.775)&&(window.devicePixelRatio==2)){log3('iPhone 5/5C/5s/SE or 6/6s/7 and 8 in zoom mode') switch(renderer){default:return true;case"PowerVR SGX 543":return false;case"Apple A7 GPU":return false;case"Apple A8 GPU":return false;case"Apple A9 GPU":return true;case"Apple A10 GPU":return true;case"Apple A11 GPU":return true;case"Apple A12 GPU":return true;}}else if((window.screen.height/window.screen.width==1.5)&&(window.devicePixelRatio==2)){log3('iPhone 4/4s') return false;}else if((window.screen.height/window.screen.width==1.5)&&(window.devicePixelRatio==1)){log3('iPhone 1/3G/3GS') return false;}else if(window.screen.height/window.screen.width==1024/768){if(window.devicePixelRatio==1){log3('iPad, iPad 2, iPad Mini') return false;}else{log3('iPad 3, 4, 5, Mini 2, Mini 3, Mini 4, Air, Air 2-----') if(renderer.indexOf('PowerVR SGX 543')!=-1){log3(renderer) return false;}else if(renderer.indexOf('PowerVR SGX 554')!=-1){log3(renderer) return false;}else if(renderer.indexOf('Apple A7 GPU')!=-1){log3(renderer) return false;}else if(renderer.indexOf('Apple A8X GPU')!=-1){log3(renderer) return false;}else if(renderer.indexOf('Apple A8 GPU')!=-1){log3(renderer) return false;}else if(renderer.indexOf('Apple A9 GPU')!=-1){log3(renderer) return true;}else if(renderer.indexOf('Apple A9X GPU')!=-1){log3(renderer) return true;}else if(renderer.indexOf('Apple A10 GPU')!=-1){log3(renderer) return true;}else{return true;}}}else if(window.screen.height/window.screen.width==1112/834){log3('iPad Pro 10.5') return true;}else if(window.screen.height/window.screen.width==1366/1024){log3('iPad Pro 12.9, Pro 12.9 (2nd Gen)') return true;}else if(window.screen.height/window.screen.width==1194/834){log3('iPad Pro 11 2018') return true;}else if(window.screen.height/window.screen.width==844/390){log3('iPhone 12/iPhone 12 Pro');return true;}else if(window.screen.height/window.screen.width==780/360){log3('iPhone 12 Mini');return true;}else if(window.screen.height/window.screen.width==926/428){log3('iPhone 12 Pro Max');return true;}else{log3('iPhone/iPad old model ') return false;}}else if(os.name.search('iOS')==-1&&os.name.search('Android')==-1){log3('Not iOS or Android') return false;}else{log3('Other no brand');if(device.vendor=='LGM') device.vendor='LG' if(location.href.search('flix-2qa')!=-1){log3(device.vendor+"__"+device.model+"__"+osversion);} var found=0;if(typeof device.vendor=='undefined'){var useragent=navigator.userAgent.split(';') if(location.href.search('flix-2qa')!=-1){log3(useragent);} var model=useragent[2].split(' Build') if(location.href.search('flix-2qa')!=-1){log3(model[0]);} FlixjQ.each(flixAllowedModel.brand,function(index,element){FlixjQ.each(element,function(index2,element2){if(model[0].toLowerCase().indexOf(index2.toLowerCase())!=-1){if(location.href.search('flix-2qa')!=-1){log3('Model in list'+index2)} found=1 return true;}});});}else{log3('Other - check mobile clist: ',device.model) var isittrue=false FlixjQ.each(flixAllowedModel.brand[device.vendor],function(index,element){if(location.href.search('flix-2qa')!=-1){log3(osversion+"__"+element) log3(device.model.toLowerCase()+"__"+index.toLowerCase())} if(device.model.toLowerCase().search(index.toLowerCase())!=-1){if(location.href.search('flix-2qa')!=-1){log3('Model in list'+index)} if(osversion>=element){if(location.href.search('flix-2qa')!=-1){log3('Phone is AR compatible')} found=1 isittrue=true;return true;}else{if(location.href.search('flix-2qa')!=-1){log3('Low OS: '+element+' < '+osversion)} isittrue=false;return false;}}});if(isittrue==true){log3('Other - isittrue') return true;}else{log3('Other - No match') return false;}} if(found==0){log3('No phone model') return false;}}},flixisMobile:{Android:function(){return navigator.userAgent.match(/Android/i);},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i);},iOS:function(){return navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPod")||(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1);},Opera:function(){return navigator.userAgent.match(/Opera Mini/i);},Windows:function(){return navigator.userAgent.match(/IEMobile/i);},any:function(){return(flixisMobile.Android()||flixisMobile.BlackBerry()||flixisMobile.iOS()||flixisMobile.Opera()||flixisMobile.Windows());}},flixGetURL:function(){var pnurl='';if(window.parent){pnurl=(window.location!=window.parent.location)?document.referrer:top.document.URL;}else{pnurl=document.location.href;} if(pnurl=='') pnurl=document.location.href;return encodeURIComponent(pnurl);},checkModuleViewport:function(target){return new Promise(function(resolve){const sections=document.querySelectorAll(target);const config={rootMargin:'200px 0px 200px 0px',threshold:0};let isLeaving=false;let observer=new IntersectionObserver(function(entries,self){var delay=0;entries.forEach(function(entry){if(entry.isIntersecting){resolve(document.querySelector(target));delay+=100;self.unobserve(entry.target);if(entry.target){}}else if(isLeaving){isLeaving=false;}});},config);if('IntersectionObserver'in window){sections.forEach(function(section){observer.observe(section);});}else{resolve(document.querySelector(target));self.unobserve(entry.target);}});},checkModuleExists:function(target){return new Promise(resolve=>{if(document.querySelector(target)){return resolve(document.querySelector(target));} const observer=new MutationObserver(mutations=>{if(document.querySelector(target)){resolve(document.querySelector(target));observer.disconnect();}});observer.observe(document.body,{childList:true,subtree:true});});},lazyViewportReplace:function(target,replacewhat,replacewith){return new Promise(function(resolve){const sections=document.querySelectorAll(target);const config={rootMargin:'200px 0px 200px 0px',threshold:0};let isLeaving=false;let observer=new IntersectionObserver(function(entries,self){var delay=0;entries.forEach(function(entry){if(entry.isIntersecting){if(entry.target.getAttribute(replacewhat)) entry.target.setAttribute(replacewith,entry.target.getAttribute(replacewhat));try{if(entry.target.getElementsByTagName("source")[0]&&entry.target.getElementsByTagName("source")[0].getAttribute(replacewith)==null){entry.target.getElementsByTagName("source")[0].setAttribute(replacewith,entry.target.getElementsByTagName("source")[0].getAttribute(replacewhat));entry.target.load();}}catch(e){} resolve(document.querySelector(target));delay+=100;self.unobserve(entry.target);if(entry.target){}}else if(isLeaving){isLeaving=false;}});},config);if('IntersectionObserver'in window){sections.forEach(function(section){observer.observe(section);});}else{resolve(document.querySelector(target));self.unobserve(entry.target);}});},xnlmsStringcheck:function(flixHtml){var xnlmsdistributorIds=[8776];if(/xmlns="[^"]*"/.test(flixHtml)&&xnlmsdistributorIds.indexOf(parseInt(flixmain_distributor,10))!==-1){flixHtml=flixHtml.replace(/ xmlns="[^"]*"/g,'').replace(/(\s?)\/>/g,'>').replace(/\u00A0/g,' ');log2('xmlns replaced')} return flixHtml;},loadinpage:function(){if(FlixServices==undefined){return false;} if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.modular_match_data!='undefined'&&!FlixServices.is_content_loaded&&FlixServices.modular_match_data!=null&&typeof(FlixServices.modular_match_data)=='object'&&FlixServices.modular_updated&&Array.isArray(FlixServices.modular_match_data)){FlixServices.flixinpage.init({distributor:flixmain_distributor,language:flixmain_language,product:flixmain_product_id,pagedata:'',urlMain:flixmain_base_url,thisef:"#flixinpage_"+flixmain_product_id+FlixServices.time_stamp});setTimeout(function(){if(FlixServices==undefined) return false;FlixServices.flixinpage.loadJsCss();FlixjQ('.flix-privacy-policy-link').live('click',function(e){e.preventDefault();FlixjQ(this).parent().next().find('.flix-privacy-policy-text').slideToggle();});if(typeof FlixjQ.fn.video!='undefined'&&typeof FlixjQ.fn.video.loadJWvideos!='undefined'&&FlixjQ('.flix-jw').length>0&&FlixjQ('.flix-videodiv').length==0){FlixjQ.fn.video.loadJWvideos(0);}},100);if(ENV=='-alpha'){FlixServices.loadFlixJs('https://delivery'+ENV+'.flix360.io/static/inpage/js/jquery.jcarousel.min.js');setTimeout(function(){FlixServices.loadFlixJs('https://delivery'+ENV+'.flix360.io/static/modular/reviews/attach.js');FlixServices.loadFlixJs('https://delivery'+ENV+'.flix360.io/static/inpage/js/lightbox.js');FlixServices.loadFlixJs('https://delivery'+ENV+'.flix360.io/static/inpage/js/inpage.js');},100);}else{FlixServices.loadFlixJs(flixmain_base_modular_url+'js/minify/'+flixmain_distributor+'/?url=/static/inpage/js/jquery.jcarousel.min.js,/static/modular/reviews/attach.js,/static/inpage/js/lightbox.js,/static/inpage/js/inpage.js');} FlixServices.is_content_loaded=true;}else{setTimeout(function(){if(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.modular_match_data!='undefined'&&FlixServices.modular_match_data!=null){if(typeof FlixServices.modular_match_data.oem!='undefined'&&FlixServices.modular_match_data.oem.not_migrated!='undefined'){if(typeof(window.flixJsCallbacks)==="object"&&typeof(window.flixJsCallbacks["_loadNoshowCallback"])==="function"){logflix('no show callback 2') var flixCBfunctions=window.flixJsCallbacks["_loadNoshowCallback"];flixCBfunctions();window.flixJsCallbacks["_loadNoshowCallback"]=function(){};}}else{if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.loadinpage();}}else{if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.loadinpage();}},300)}},loadMinisite:function(){},loadHotspot:function(){},loadHotspotMob:function(){},startFlix:function(type){if(!FlixServices.time_stamp&&(!window.Flixstartturl||window.Flixstartturl!=FlixServices.flixGetURL()||(window.Flixstartturl==FlixServices.flixGetURL()&&FlixjQ('#inpage_container').length===0))){window.Flixstartturl=FlixServices.flixGetURL();try{if(typeof FlixjQ!='undefined'&&typeof FlixjQ.fn.inPage!='undefined') delete FlixjQ.fn.inPage;if(typeof flixmain_ean!='undefined') delete flixmain_ean;if(typeof flixmain_mpn!='undefined') delete flixmain_mpn;if(typeof flixmain_product_id!='undefined') delete flixmain_product_id;}catch(e){} window.FlixServices.init({'flixmain_api_base_url':flixmain_api_base_url});} if(document.querySelector('script[data-flix-distributor]')!=null){var innodename=document.querySelector('script[data-flix-distributor]').getAttribute('data-flix-inpage');setTimeout(function(){if(document.querySelector('#flix-inpage')==null&&innodename!=null&&innodename.length>0&&document.querySelector('#'+innodename)==null){var loadernode=document.createElement('div');loadernode.id=innodename;var distnnode=document.querySelector('script[data-flix-distributor]');if(innodename!='undefined'&&innodename.length>0&&distnnode!=null&&typeof distnnode.parentNode!=null) distnnode.parentNode.insertBefore(loadernode,distnnode.nextSibling);}},2000) if(innodename!=null&&innodename.length>0&&document.querySelector('#'+innodename)!=null){FlixServices.inpcontainername='#'+innodename;} var minodename=document.querySelector('script[data-flix-distributor]').getAttribute('data-flix-button');if(minodename!=null) minodename=minodename.replace('\"','') if(minodename!=null&&minodename.length>0&&document.querySelector('#'+minodename)!=null){FlixServices.mipcontainername=minodename;} if(document.querySelector('script[data-flix-distributor]').getAttribute('data-flix-autoload')) FlixServices.autoloaded_modules=document.querySelector('script[data-flix-distributor]').getAttribute('data-flix-autoload');if(FlixServices.autoloaded_modules){}} if(document.querySelector('script[src*="js/inpage/"]')!=null&&document.querySelector('#flix-inpage')==null){var loadernode=document.createElement('div');loadernode.id='flix-inpage';var inpagenode=document.querySelector('script[src*="js/inpage/"]');inpagenode.parentNode.insertBefore(loadernode,inpagenode.nextSibling);} var myIntervalcc=0 var myInterval=setInterval(function(){if(typeof FlixServices==="undefined"){return false;} if(window.self!==window.top&&flixmain_distributor=='370'){clearInterval(myInterval);return false;} if(type=='hotspot'||(!type&&flixmain_distributor!='6408')||(!type&&typeof FlixServices.autoloaded_modules=='undefined'&&flixmain_distributor=='6408')){if(FlixServices.modular_match_data!=null&&typeof FlixServices.modular_match_data=='object'&&FlixServices.modular_updated&&FlixServices.modular_match_data[0]&&FlixServices.modular_match_data[0]!=null){if(FlixServices.ismobile()&&!FlixServices.hotspot_loaded){FlixServices.hotspot_loaded=true;FlixServices.flixhotspot.init();}else if(!FlixServices.hotspot_loaded){FlixServices.hotspot_loaded=true;FlixServices.flixhotspot.init()} if(!FlixServices.hotspotCss_loaded){FlixServices.hotspotCss_loaded=true;FlixServices.flixhotspot.loadJsCss();} if(window.flixJsCallbacks._loadInpageCallback&&typeof(window.flixJsCallbacks._loadInpageCallback)==="function"){}}}else{if(flixmain_distributor=='6408') logflix('distributorid==6408 - dont load hotspots')} if(type=='button'||!FlixServices.autoloaded_modules||FlixServices.autoloaded_modules.search('minisite')!=-1){if(!FlixServices.minisite_loaded&&FlixServices.modular_match_data!=null&&typeof(FlixServices.modular_match_data)=='object'&&FlixServices.modular_updated&&!document.querySelector('script[data-flix-distributor]')&&FlixServices.ismobile()==false){FlixServices.minisite_loaded=true;FlixServices.flixminisite.init(FlixServices.mipcontainername,flixmain_distributor,flixmain_language);clearInterval(myInterval);}else if(!FlixServices.minisite_loaded&&FlixServices.modular_match_data!=null&&typeof(FlixServices.modular_match_data)=='object'&&FlixServices.modular_updated&&document.querySelector('script[data-flix-distributor]')&&document.querySelector('script[data-flix-button]')&&document.querySelector('script[data-flix-button]').getAttribute('data-flix-button').length>0&&FlixServices.ismobile()==false){if(typeof(flixmain_distributor)!='undefined'&&flixmain_distributor=='18287'){FlixjQ('#flix-minisite').append(FlixjQ(''));} FlixServices.minisite_loaded=true;FlixServices.flixminisite.init(FlixServices.mipcontainername,flixmain_distributor,flixmain_language);try{var cbk=['load','loadMinisite'];for(flixx in cbk){if(typeof(window.flixJsCallbacks)==="object"&&typeof(window.flixJsCallbacks["_"+cbk[flixx]+"Callback"])==="function"){var f=window.flixJsCallbacks["_"+cbk[flixx]+"Callback"];f();window.flixJsCallbacks["_"+cbk[flixx]+"Callback"]=function(){};}} logflix('No show call back 3') window.flixJsCallbacks["_loadNoshowCallback"]=function(){};}catch(e){try{console.log(e)}catch(e1){}} clearInterval(myInterval);}}else{} if(myIntervalcc>=100) clearInterval(myInterval) myIntervalcc++},100);if(type=='inpage'||!FlixServices.autoloaded_modules||FlixServices.autoloaded_modules.search('inpage')!=-1){var subTryrun=0,refreshIdSub=setInterval(function(){if(type=='inpage'||(typeof FlixServices!='undefined'&&FlixServices&&typeof FlixServices.is_content_loaded!='undefined'&&!FlixServices.is_content_loaded&&FlixServices.modular_match_data&&typeof(FlixServices.modular_match_data)=='object')){if(FlixServices&&FlixServices.modular_match_data&&typeof FlixServices.modular_match_data.oem=='undefined'){if(typeof type!='undefined') FlixjQ(FlixServices.inpcontainername).append(FlixjQ('
'));FlixjQ(FlixServices.inpcontainername).append(FlixjQ('
').append(FlixjQ('
').append(FlixjQ('
 
'))));var Remove_callback_controlled_retailers=false;if(flixmain_distributor==7137&&FlixServices.modular_match_data.length==1&&typeof FlixServices.modular_match_data[0].product_meta!='undefined'&&typeof FlixServices.modular_match_data[0].product_meta.isComplementary!='undefined') Remove_callback_controlled_retailers=true;if(!Remove_callback_controlled_retailers){try{var cbk=['load','loadInpage'];for(flixx in cbk){if(typeof(window.flixJsCallbacks)==="object"&&typeof(window.flixJsCallbacks["_"+cbk[flixx]+"Callback"])==="function"){var f=window.flixJsCallbacks["_"+cbk[flixx]+"Callback"];f();window.flixJsCallbacks["_"+cbk[flixx]+"Callback"]=function(){};}} window.flixJsCallbacks["_loadNoshowCallback"]=function(){};}catch(e){try{console.log(e)}catch(e1){}}}} clearInterval(refreshIdSub);} if(subTryrun===200){clearInterval(refreshIdSub);} subTryrun++;},100);FlixServices.checkModuleExists(FlixServices.inpcontainername).then((elm)=>{FlixServices.checkModuleViewport(FlixServices.inpcontainername).then(function(elm){if(typeof FlixServices!='undefined'&&FlixServices) FlixServices.loadinpage();});});}else{} if(flixmain_distributor==75||location.href.search('fnac.')!=-1){var arrayChangeHandler={get:function(target,property){return target[property];},set:function(target,property,value,receiver){target[property]=value;setTimeout(function(){executeFunctionQueue(flixJsQueue)},100) return true;}};var originalArray=[];if(typeof flixJsQueue!='undefined') originalArray=flixJsQueue window.flixJsQueue=new Proxy(originalArray,arrayChangeHandler);function executeFunctionQueue(fns){if(!flixJsQueue.length){return} var fun1=flixJsQueue.pop();FlixjQ.when(fun1()).then(function(){executeFunctionQueue(flixJsQueue)});} window.executeFunctionQueue=executeFunctionQueue;if(typeof flixJsQueue!='undefined') executeFunctionQueue(flixJsQueue)}}};if(true){!function(i,S){"use strict";var s="function",$="undefined",M="object",e="model",o="name",r="type",a="vendor",n="version",G="architecture",d="console",t="mobile",A="tablet",l="smarttv",w="wearable",u={extend:function(i,S){var s={};for(var $ in i)S[$]&&S[$].length%2==0?s[$]=S[$].concat(i[$]):s[$]=i[$];return s},has:function(i,S){return"string"==typeof i&&-1!==S.toLowerCase().indexOf(i.toLowerCase())},lowerize:function(i){return i.toLowerCase()},major:function(i){return"string"==typeof i?i.replace(/[^\d\.]/g,"").split(".")[0]:S},trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},L={rgx:function(i,$){for(var e,o,r,a,n,G,d=0;d<$.length&&!n;){var t=$[d],A=$[d+1];for(e=o=0;e0?2==a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,G):this[a[0]]=a[1]:3==a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=G?G.replace(a[1],a[2]):S:this[a[0]]=G?a[1].call(this,G,a[2]):S:4==a.length&&(this[a[0]]=G?a[3].call(this,G.replace(a[1],a[2])):S):this[a]=G||S;d+=2}},str:function(i,s){for(var $ in s)if(typeof s[$]===M&&s[$].length>0){for(var e=0;e