function SetSplashBackground(n){SetBackgroundScript(n,!0)}function SetBackground(n){SetBackgroundScript(n,!1)}function SetBackgroundScript(n,t){$("#page").length&&$("#page, #skinHeader").live("click",function(t){var i=t.target||t.srcElement;i==this&&(window.location=n)});var i;i=t?$("#popup-container, .ui-dialog, #warning, #logo, #header-middle-zone, #container, #main-nav, #main-content, #live-page, #footer, #arjel-banner, #carouselOutput, .registerButton, .colBox .grid-3, .subnav, #landing section:not(#headerSplash), #cookie-banner-container"):$("#popup-container, .ui-dialog, #warning, #logo, #header-middle-zone, #container, #main-nav, .subnav, #main-content, #live-page, #footer, #arjel-banner, #cookie-banner-container");i.length&&i.live("click",function(n){n.stopPropagation()})}this.Handlebars={},function(n){n.VERSION="1.0.rc.1";n.helpers={};n.partials={};n.registerHelper=function(n,t,i){i&&(t.not=i);this.helpers[n]=t};n.registerPartial=function(n,t){this.partials[n]=t};n.registerHelper("helperMissing",function(n){if(arguments.length===2)return undefined;throw new Error("Could not find property '"+n+"'");});var t=Object.prototype.toString,i="[object Function]";n.registerHelper("blockHelperMissing",function(r,u){var f=u.inverse||function(){},e=u.fn,o=t.call(r);return o===i&&(r=r.call(this)),r===!0?e(this):r===!1||r==null?f(this):o==="[object Array]"?r.length>0?n.helpers.each(r,u):f(this):e(r)});n.K=function(){};n.createFrame=Object.create||function(t){n.K.prototype=t;var i=new n.K;return n.K.prototype=null,i};n.registerHelper("each",function(t,i){var o=i.fn,s=i.inverse,u="",f,r,e;if(i.data&&(f=n.createFrame(i.data)),t&&t.length>0)for(r=0,e=t.length;r<e;r++)f&&(f.index=r),u=u+o(t[r],{data:f});else u=s(this);return u});n.registerHelper("if",function(r,u){var f=t.call(r);return f===i&&(r=r.call(this)),!r||n.Utils.isEmpty(r)?u.inverse(this):u.fn(this)});n.registerHelper("unless",function(t,i){var r=i.fn,u=i.inverse;return i.fn=u,i.inverse=r,n.helpers["if"].call(this,t,i)});n.registerHelper("with",function(n,t){return t.fn(n)});n.registerHelper("log",function(t){n.log(t)})}(this.Handlebars);var handlebars=function(){function t(){this.yy={}}var n={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,statements:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,OPEN_PARTIAL:24,params:25,hash:26,DATA:27,param:28,STRING:29,INTEGER:30,BOOLEAN:31,hashSegments:32,hashSegment:33,ID:34,EQUALS:35,pathSegments:36,SEP:37,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",27:"DATA",29:"STRING",30:"INTEGER",31:"BOOLEAN",34:"ID",35:"EQUALS",37:"SEP"},productions_:[0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[17,1],[25,2],[25,1],[28,1],[28,1],[28,1],[28,1],[28,1],[26,1],[32,2],[32,1],[33,3],[33,3],[33,3],[33,3],[33,3],[21,1],[36,3],[36,1]],performAction:function(n,t,i,r,u,f){var e=f.length-1;switch(u){case 1:return f[e-1];case 2:this.$=new r.ProgramNode(f[e-2],f[e]);break;case 3:this.$=new r.ProgramNode(f[e]);break;case 4:this.$=new r.ProgramNode([]);break;case 5:this.$=[f[e]];break;case 6:f[e-1].push(f[e]);this.$=f[e-1];break;case 7:this.$=new r.BlockNode(f[e-2],f[e-1].inverse,f[e-1],f[e]);break;case 8:this.$=new r.BlockNode(f[e-2],f[e-1],f[e-1].inverse,f[e]);break;case 9:this.$=f[e];break;case 10:this.$=f[e];break;case 11:this.$=new r.ContentNode(f[e]);break;case 12:this.$=new r.CommentNode(f[e]);break;case 13:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1]);break;case 14:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1]);break;case 15:this.$=f[e-1];break;case 16:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1]);break;case 17:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1],!0);break;case 18:this.$=new r.PartialNode(f[e-1]);break;case 19:this.$=new r.PartialNode(f[e-2],f[e-1]);break;case 21:this.$=[[f[e-2]].concat(f[e-1]),f[e]];break;case 22:this.$=[[f[e-1]].concat(f[e]),null];break;case 23:this.$=[[f[e-1]],f[e]];break;case 24:this.$=[[f[e]],null];break;case 25:this.$=[[new r.DataNode(f[e])],null];break;case 26:f[e-1].push(f[e]);this.$=f[e-1];break;case 27:this.$=[f[e]];break;case 28:this.$=f[e];break;case 29:this.$=new r.StringNode(f[e]);break;case 30:this.$=new r.IntegerNode(f[e]);break;case 31:this.$=new r.BooleanNode(f[e]);break;case 32:this.$=new r.DataNode(f[e]);break;case 33:this.$=new r.HashNode(f[e]);break;case 34:f[e-1].push(f[e]);this.$=f[e-1];break;case 35:this.$=[f[e]];break;case 36:this.$=[f[e-2],f[e]];break;case 37:this.$=[f[e-2],new r.StringNode(f[e])];break;case 38:this.$=[f[e-2],new r.IntegerNode(f[e])];break;case 39:this.$=[f[e-2],new r.BooleanNode(f[e])];break;case 40:this.$=[f[e-2],new r.DataNode(f[e])];break;case 41:this.$=new r.IdNode(f[e]);break;case 42:f[e-2].push(f[e]);this.$=f[e-2];break;case 43:this.$=[f[e]]}},table:[{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,27:[1,24],34:[1,26],36:25},{17:27,21:23,27:[1,24],34:[1,26],36:25},{17:28,21:23,27:[1,24],34:[1,26],36:25},{17:29,21:23,27:[1,24],34:[1,26],36:25},{21:30,34:[1,26],36:25},{1:[2,1]},{6:31,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,32],21:23,27:[1,24],34:[1,26],36:25},{10:33,20:[1,34]},{10:35,20:[1,34]},{18:[1,36]},{18:[2,24],21:41,25:37,26:38,27:[1,45],28:39,29:[1,42],30:[1,43],31:[1,44],32:40,33:46,34:[1,47],36:25},{18:[2,25]},{18:[2,41],27:[2,41],29:[2,41],30:[2,41],31:[2,41],34:[2,41],37:[1,48]},{18:[2,43],27:[2,43],29:[2,43],30:[2,43],31:[2,43],34:[2,43],37:[2,43]},{18:[1,49]},{18:[1,50]},{18:[1,51]},{18:[1,52],21:53,34:[1,26],36:25},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:54,34:[1,26],36:25},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:41,26:55,27:[1,45],28:56,29:[1,42],30:[1,43],31:[1,44],32:40,33:46,34:[1,47],36:25},{18:[2,23]},{18:[2,27],27:[2,27],29:[2,27],30:[2,27],31:[2,27],34:[2,27]},{18:[2,33],33:57,34:[1,58]},{18:[2,28],27:[2,28],29:[2,28],30:[2,28],31:[2,28],34:[2,28]},{18:[2,29],27:[2,29],29:[2,29],30:[2,29],31:[2,29],34:[2,29]},{18:[2,30],27:[2,30],29:[2,30],30:[2,30],31:[2,30],34:[2,30]},{18:[2,31],27:[2,31],29:[2,31],30:[2,31],31:[2,31],34:[2,31]},{18:[2,32],27:[2,32],29:[2,32],30:[2,32],31:[2,32],34:[2,32]},{18:[2,35],34:[2,35]},{18:[2,43],27:[2,43],29:[2,43],30:[2,43],31:[2,43],34:[2,43],35:[1,59],37:[2,43]},{34:[1,60]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,61]},{18:[1,62]},{18:[2,21]},{18:[2,26],27:[2,26],29:[2,26],30:[2,26],31:[2,26],34:[2,26]},{18:[2,34],34:[2,34]},{35:[1,59]},{21:63,27:[1,67],29:[1,64],30:[1,65],31:[1,66],34:[1,26],36:25},{18:[2,42],27:[2,42],29:[2,42],30:[2,42],31:[2,42],34:[2,42],37:[2,42]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,36],34:[2,36]},{18:[2,37],34:[2,37]},{18:[2,38],34:[2,38]},{18:[2,39],34:[2,39]},{18:[2,40],34:[2,40]}],defaultActions:{16:[2,1],24:[2,25],38:[2,23],55:[2,21]},parseError:function(n){throw new Error(n);},parse:function(n){function it(){var n;return n=k.lexer.lex()||1,typeof n!="number"&&(n=k.symbols_[n]||n),n}var k=this,r=[0],f=[null],t=[],h=this.table,d="",c=0,g=0,y=0,l,nt,i,p,o,u,w,s,a,e,tt,v,b;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={}),l=this.lexer.yylloc,t.push(l),nt=this.lexer.options&&this.lexer.options.ranges,typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError),s={};;){if(o=r[r.length-1],this.defaultActions[o]?u=this.defaultActions[o]:((i===null||typeof i=="undefined")&&(i=it()),u=h[o]&&h[o][i]),(typeof u=="undefined"||!u.length||!u[0])&&(b="",!y)){v=[];for(a in h[o])this.terminals_[a]&&a>2&&v.push("'"+this.terminals_[a]+"'");b=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(c+1)+": Unexpected "+(i==1?"end of input":"'"+(this.terminals_[i]||i)+"'");this.parseError(b,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:l,expected:v})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+o+", token: "+i);switch(u[0]){case 1:r.push(i);f.push(this.lexer.yytext);t.push(this.lexer.yylloc);r.push(u[1]);i=null;p?(i=p,p=null):(g=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,l=this.lexer.yylloc,y>0&&y--);break;case 2:if(e=this.productions_[u[1]][1],s.$=f[f.length-e],s._$={first_line:t[t.length-(e||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(e||1)].first_column,last_column:t[t.length-1].last_column},nt&&(s._$.range=[t[t.length-(e||1)].range[0],t[t.length-1].range[1]]),w=this.performAction.call(s,d,g,c,this.yy,u[1],f,t),typeof w!="undefined")return w;e&&(r=r.slice(0,-2*e),f=f.slice(0,-1*e),t=t.slice(0,-1*e));r.push(this.productions_[u[1]][0]);f.push(s.$);t.push(s._$);tt=h[r[r.length-2]][r[r.length-1]];r.push(tt);break;case 3:return!0}}return!0}},i=function(){var n={EOF:1,parseError:function(n,t){if(this.yy.parser)this.yy.parser.parseError(n,t);else throw new Error(n);},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},next:function(){var f,n,r,e,t,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length;i++)if(r=this._input.match(this.rules[u[i]]),r&&(!n||r[0].length>n[0].length)&&(n=r,e=i,!this.options.flex))break;return n?(t=n[0].match(/(?:\r\n?|\n).*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-t[t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,u[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)?f:void 0:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n!="undefined"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return n.options={},n.performAction=function(n,t,i,r){var u=r;switch(i){case 0:if(t.yytext.slice(-1)!=="\\"&&this.begin("mu"),t.yytext.slice(-1)==="\\"&&(t.yytext=t.yytext.substr(0,t.yyleng-1),this.begin("emu")),t.yytext)return 14;break;case 1:return 14;case 2:return t.yytext.slice(-1)!=="\\"&&this.popState(),t.yytext.slice(-1)==="\\"&&(t.yytext=t.yytext.substr(0,t.yyleng-1)),14;case 3:return 24;case 4:return 16;case 5:return 20;case 6:return 19;case 7:return 19;case 8:return 23;case 9:return 23;case 10:return t.yytext=t.yytext.substr(3,t.yyleng-5),this.popState(),15;case 11:return 22;case 12:return 35;case 13:return 34;case 14:return 34;case 15:return 37;case 17:return this.popState(),18;case 18:return this.popState(),18;case 19:return t.yytext=t.yytext.substr(1,t.yyleng-2).replace(/\\"/g,'"'),29;case 20:return t.yytext=t.yytext.substr(1,t.yyleng-2).replace(/\\"/g,'"'),29;case 21:return t.yytext=t.yytext.substr(1),27;case 22:return 31;case 23:return 31;case 24:return 30;case 25:return 34;case 26:return t.yytext=t.yytext.substr(1,t.yyleng-2),34;case 27:return"INVALID";case 28:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/,/^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[} ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@[a-zA-Z]+)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:[0-9]+(?=[}\s]))/,/^(?:[a-zA-Z0-9_$-]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],inclusive:!1},emu:{rules:[2],inclusive:!1},INITIAL:{rules:[0,1,28],inclusive:!0}},n}();return n.lexer=i,t.prototype=n,n.Parser=t,new t}();typeof require!="undefined"&&typeof exports!="undefined"&&(exports.parser=handlebars,exports.Parser=handlebars.Parser,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(n){if(!n[1])throw new Error("Usage: "+n[0]+" FILE");var t;return t=typeof process!="undefined"?require("fs").readFileSync(require("path").resolve(n[1]),"utf8"):require("file").path(require("file").cwd()).join(n[1]).read({charset:"utf-8"}),exports.parser.parse(t)},typeof module!="undefined"&&require.main===module&&exports.main(typeof process!="undefined"?process.argv.slice(1):require("system").args));Handlebars.Parser=handlebars;Handlebars.parse=function(n){return Handlebars.Parser.yy=Handlebars.AST,Handlebars.Parser.parse(n)};Handlebars.print=function(n){return(new Handlebars.PrintVisitor).accept(n)};Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(){}};Handlebars.log=function(n,t){Handlebars.logger.log(n,t)},function(){Handlebars.AST={};Handlebars.AST.ProgramNode=function(n,t){this.type="program";this.statements=n;t&&(this.inverse=new Handlebars.AST.ProgramNode(t))};Handlebars.AST.MustacheNode=function(n,t,i){this.type="mustache";this.escaped=!i;this.hash=t;var r=this.id=n[0],u=this.params=n.slice(1),f=this.eligibleHelper=r.isSimple;this.isHelper=f&&(u.length||t)};Handlebars.AST.PartialNode=function(n,t){this.type="partial";this.id=n;this.context=t};var n=function(n,t){if(n.original!==t.original)throw new Handlebars.Exception(n.original+" doesn't match "+t.original);};Handlebars.AST.BlockNode=function(t,i,r,u){n(t.id,u);this.type="block";this.mustache=t;this.program=i;this.inverse=r;this.inverse&&!this.program&&(this.isInverse=!0)};Handlebars.AST.ContentNode=function(n){this.type="content";this.string=n};Handlebars.AST.HashNode=function(n){this.type="hash";this.pairs=n};Handlebars.AST.IdNode=function(n){var i,r,u,f,t;for(this.type="ID",this.original=n.join("."),i=[],r=0,u=0,f=n.length;u<f;u++)t=n[u],t===".."?r++:t==="."||t==="this"?this.isScoped=!0:i.push(t);this.parts=i;this.string=i.join(".");this.depth=r;this.isSimple=n.length===1&&!this.isScoped&&r===0};Handlebars.AST.DataNode=function(n){this.type="DATA";this.id=n};Handlebars.AST.StringNode=function(n){this.type="STRING";this.string=n};Handlebars.AST.IntegerNode=function(n){this.type="INTEGER";this.integer=n};Handlebars.AST.BooleanNode=function(n){this.type="BOOLEAN";this.bool=n};Handlebars.AST.CommentNode=function(n){this.type="comment";this.comment=n}}();Handlebars.Exception=function(){var n=Error.prototype.constructor.apply(this,arguments),t;for(t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);this.message=n.message};Handlebars.Exception.prototype=new Error;Handlebars.SafeString=function(n){this.string=n};Handlebars.SafeString.prototype.toString=function(){return this.string.toString()},function(){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},t=/[&<>"'`]/g,i=/[&<>"'`]/,r=function(t){return n[t]||"&amp;"};Handlebars.Utils={escapeExpression:function(n){return n instanceof Handlebars.SafeString?n.toString():n==null||n===!1?"":i.test(n)?n.replace(t,r):n},isEmpty:function(n){return typeof n=="undefined"?!0:n===null?!0:n===!1?!0:Object.prototype.toString.call(n)==="[object Array]"&&n.length===0?!0:!1}}}();Handlebars.Compiler=function(){};Handlebars.JavaScriptCompiler=function(){},function(n,t){var i,f,e,r,u;for(n.prototype={compiler:n,disassemble:function(){for(var e=this.opcodes,n,u=[],f,t,r,i=0,o=e.length;i<o;i++)if(n=e[i],n.opcode==="DECLARE")u.push("DECLARE "+n.name+"="+n.value);else{for(f=[],r=0;r<n.args.length;r++)t=n.args[r],typeof t=="string"&&(t='"'+t.replace("\n","\\n")+'"'),f.push(t);u.push(n.opcode+" "+f.join(" "))}return u.join("\n")},guid:0,compile:function(n,t){var i,r;if(this.children=[],this.depths={list:[]},this.options=t,i=this.options.knownHelpers,this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0},i)for(r in i)this.options.knownHelpers[r]=i[r];return this.program(n)},accept:function(n){return this[n.type](n)},program:function(n){var u=n.statements,i,t,r;for(this.opcodes=[],t=0,r=u.length;t<r;t++)i=u[t],this[i.type](i);return this.isSimple=r===1,this.depths.list=this.depths.list.sort(function(n,t){return n-t}),this},compileProgram:function(n){var t=(new this.compiler).compile(n,this.options),u=this.guid++,r,i,f;for(this.usePartial=this.usePartial||t.usePartial,this.children[u]=t,i=0,f=t.depths.list.length;i<f;i++)if(r=t.depths.list[i],r<2)continue;else this.addDepth(r-1);return u},block:function(n){var r=n.mustache,t=n.program,i=n.inverse,u;t&&(t=this.compileProgram(t));i&&(i=this.compileProgram(i));u=this.classifyMustache(r);u==="helper"?this.helperMustache(r,t,i):u==="simple"?(this.simpleMustache(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("pushLiteral","{}"),this.opcode("blockValue")):(this.ambiguousMustache(r,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("pushLiteral","{}"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(n){var r=n.pairs,i,u,t,f;for(this.opcode("push","{}"),t=0,f=r.length;t<f;t++)i=r[t],u=i[1],this.accept(u),this.opcode("assignToHash",i[0])},partial:function(n){var t=n.id;this.usePartial=!0;n.context?this.ID(n.context):this.opcode("push","depth0");this.opcode("invokePartial",t.original);this.opcode("append")},content:function(n){this.opcode("appendContent",n.string)},mustache:function(n){var i=this.options,t=this.classifyMustache(n);t==="simple"?this.simpleMustache(n):t==="helper"?this.helperMustache(n):this.ambiguousMustache(n);n.escaped&&!i.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousMustache:function(n,t,i){var r=n.id,u=r.parts[0];this.opcode("getContext",r.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",i);this.opcode("invokeAmbiguous",u)},simpleMustache:function(n){var t=n.id;t.type==="DATA"?this.DATA(t):t.parts.length?this.ID(t):(this.addDepth(t.depth),this.opcode("getContext",t.depth),this.opcode("pushContext"));this.opcode("resolvePossibleLambda")},helperMustache:function(n,t,i){var u=this.setupFullMustacheParams(n,t,i),r=n.id.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",u.length,r);else if(this.knownHelpersOnly)throw new Error("You specified knownHelpersOnly, but used the unknown helper "+r);else this.opcode("invokeHelper",u.length,r)},ID:function(n){var i,t,r;for(this.addDepth(n.depth),this.opcode("getContext",n.depth),i=n.parts[0],i?this.opcode("lookupOnContext",n.parts[0]):this.opcode("pushContext"),t=1,r=n.parts.length;t<r;t++)this.opcode("lookup",n.parts[t])},DATA:function(n){this.options.data=!0;this.opcode("lookupData",n.id)},STRING:function(n){this.opcode("pushString",n.string)},INTEGER:function(n){this.opcode("pushLiteral",n.integer)},BOOLEAN:function(n){this.opcode("pushLiteral",n.bool)},comment:function(){},opcode:function(n){this.opcodes.push({opcode:n,args:[].slice.call(arguments,1)})},declare:function(n,t){this.opcodes.push({opcode:"DECLARE",name:n,value:t})},addDepth:function(n){if(isNaN(n))throw new Error("EWOT");n!==0&&(this.depths[n]||(this.depths[n]=!0,this.depths.list.push(n)))},classifyMustache:function(n){var t=n.isHelper,i=n.eligibleHelper,r=this.options,u;return i&&!t&&(u=n.id.parts[0],r.knownHelpers[u]?t=!0:r.knownHelpersOnly&&(i=!1)),t?"helper":i?"ambiguous":"simple"},pushParams:function(n){for(var i=n.length,t;i--;)t=n[i],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.string)):this[t.type](t)},setupMustacheParams:function(n){var t=n.params;return this.pushParams(t),n.hash?this.hash(n.hash):this.opcode("pushLiteral","{}"),t},setupFullMustacheParams:function(n,t,i){var r=n.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.hash?this.hash(n.hash):this.opcode("pushLiteral","{}"),r}},i=function(n){this.value=n},t.prototype={nameLookup:function(n,i){return/^[0-9]+$/.test(i)?n+"["+i+"]":t.isValidJavaScriptVariableName(i)?n+"."+i:n+"['"+i+"']"},appendToBuffer:function(n){return this.environment.isSimple?"return "+n+";":"buffer += "+n+";"},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(n,t,i,r){this.environment=n;this.options=t||{};Handlebars.log(Handlebars.logger.DEBUG,this.environment.disassemble()+"\n\n");this.name=this.environment.name;this.isChild=!!i;this.context=i||{programs:[],aliases:{}};this.preamble();this.stackSlot=0;this.stackVars=[];this.registers={list:[]};this.compileStack=[];this.compileChildren(n,t);var e=n.opcodes,f;for(this.i=0,u=e.length;this.i<u;this.i++)f=e[this.i],f.opcode==="DECLARE"?this[f.name]=f.value:this[f.opcode].apply(this,f.args);return this.createFunctionContext(r)},nextOpcode:function(){var n=this.environment.opcodes,t=n[this.i+1];return n[this.i+1]},eat:function(){this.i=this.i+1},preamble:function(){var t=[],i,n;this.isChild?t.push(""):(i=this.namespace,n="helpers = helpers || "+i+".helpers;",this.environment.usePartial&&(n=n+" partials = partials || "+i+".partials;"),this.options.data&&(n=n+" data = data || {};"),t.push(n));this.environment.isSimple?t.push(""):t.push(", buffer = "+this.initializeBuffer());this.lastContext=0;this.source=t},createFunctionContext:function(n){var f=this.stackVars.concat(this.registers.list),o,r,t,i,e,u;if(f.length>0&&(this.source[1]=this.source[1]+", "+f.join(", ")),!this.isChild){o=[];for(r in this.context.aliases)this.source[1]=this.source[1]+", "+r+"="+this.context.aliases[r]}for(this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.source.push("return buffer;"),t=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"],i=0,e=this.environment.depths.list.length;i<e;i++)t.push("depth"+this.environment.depths.list[i]);return n?(t.push(this.source.join("\n  ")),Function.apply(this,t)):(u="function "+(this.name||"")+"("+t.join(",")+") {\n  "+this.source.join("\n  ")+"}",Handlebars.log(Handlebars.logger.DEBUG,u+"\n\n"),u)},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var n=["depth0"];this.setupParams(0,n);this.replaceStack(function(t){return n.splice(1,0,t),t+" = blockHelperMissing.call("+n.join(", ")+")"})},ambiguousBlockValue:function(){var n,t;this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";n=["depth0"];this.setupParams(0,n);t=this.topStack();n.splice(1,0,t);this.source.push("if (!"+this.lastHelper+") { "+t+" = blockHelperMissing.call("+n.join(", ")+"); }")},appendContent:function(n){this.source.push(this.appendToBuffer(this.quotedString(n)))},append:function(){var n=this.popStack();this.source.push("if("+n+" || "+n+" === 0) { "+this.appendToBuffer(n)+" }");this.environment.isSimple&&this.source.push("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){var n=this.nextOpcode(),t="";this.context.aliases.escapeExpression="this.escapeExpression";n&&n.opcode==="appendContent"&&(t=" + "+this.quotedString(n.args[0]),this.eat(n));this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"+t))},getContext:function(n){this.lastContext!==n&&(this.lastContext=n)},lookupOnContext:function(n){this.pushStack(this.nameLookup("depth"+this.lastContext,n,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"';this.replaceStack(function(n){return"typeof "+n+" === functionType ? "+n+"() : "+n})},lookup:function(n){this.replaceStack(function(t){return t+" == null || "+t+" === false ? "+t+" : "+this.nameLookup(t,n,"context")})},lookupData:function(n){this.pushStack(this.nameLookup("data",n,"data"))},pushStringParam:function(n){this.pushStackLiteral("depth"+this.lastContext);this.pushString(n)},pushString:function(n){this.pushStackLiteral(this.quotedString(n))},push:function(n){this.pushStack(n)},pushLiteral:function(n){this.pushStackLiteral(n)},pushProgram:function(n){n!=null?this.pushStackLiteral(this.programExpression(n)):this.pushStackLiteral(null)},invokeHelper:function(n,t){this.context.aliases.helperMissing="helpers.helperMissing";var i=this.lastHelper=this.setupHelper(n,t);this.register("foundHelper",i.name);this.pushStack("foundHelper ? foundHelper.call("+i.callParams+") : helperMissing.call("+i.helperMissingParams+")")},invokeKnownHelper:function(n,t){var i=this.setupHelper(n,t);this.pushStack(i.name+".call("+i.callParams+")")},invokeAmbiguous:function(n){var i,r,u,t;this.context.aliases.functionType='"function"';this.pushStackLiteral("{}");i=this.setupHelper(0,n);r=this.lastHelper=this.nameLookup("helpers",n,"helper");this.register("foundHelper",r);u=this.nameLookup("depth"+this.lastContext,n,"context");t=this.nextStack();this.source.push("if (foundHelper) { "+t+" = foundHelper.call("+i.callParams+"); }");this.source.push("else { "+t+" = "+u+"; "+t+" = typeof "+t+" === functionType ? "+t+"() : "+t+"; }")},invokePartial:function(n){var t=[this.nameLookup("partials",n,"partial"),"'"+n+"'",this.popStack(),"helpers","partials"];this.options.data&&t.push("data");this.context.aliases.self="this";this.pushStack("self.invokePartial("+t.join(", ")+");")},assignToHash:function(n){var t=this.popStack(),i=this.topStack();this.source.push(i+"['"+n+"'] = "+t+";")},compiler:t,compileChildren:function(n,t){for(var f=n.children,i,e,u,r=0,o=f.length;r<o;r++)i=f[r],e=new this.compiler,this.context.programs.push(""),u=this.context.programs.length,i.index=u,i.name="program"+u,this.context.programs[u]=e.compile(i,t,this.context)},programExpression:function(n){var i,e;if(this.context.aliases.self="this",n==null)return"self.noop";var r=this.environment.children[n],u=r.depths.list,f,t=[r.index,r.name,"data"];for(i=0,e=u.length;i<e;i++)f=u[i],f===1?t.push("depth0"):t.push("depth"+(f-1));return u.length===0?"self.program("+t.join(", ")+")":(t.shift(),"self.programWithDepth("+t.join(", ")+")")},register:function(n,t){this.useRegister(n);this.source.push(n+" = "+t+";")},useRegister:function(n){this.registers[n]||(this.registers[n]=!0,this.registers.list.push(n))},pushStackLiteral:function(n){return this.compileStack.push(new i(n)),n},pushStack:function(n){return this.source.push(this.incrStack()+" = "+n+";"),this.compileStack.push("stack"+this.stackSlot),"stack"+this.stackSlot},replaceStack:function(n){var t=n.call(this,this.topStack());return this.source.push(this.topStack()+" = "+t+";"),"stack"+this.stackSlot},nextStack:function(){var n=this.incrStack();return this.compileStack.push("stack"+this.stackSlot),n},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),"stack"+this.stackSlot},popStack:function(){var n=this.compileStack.pop();return n instanceof i?n.value:(this.stackSlot--,n)},topStack:function(){var n=this.compileStack[this.compileStack.length-1];return n instanceof i?n.value:n},quotedString:function(n){return'"'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'},setupHelper:function(n,t){var i=[],r;return this.setupParams(n,i),r=this.nameLookup("helpers",t,"helper"),{params:i,name:r,callParams:["depth0"].concat(i).join(", "),helperMissingParams:["depth0",this.quotedString(t)].concat(i).join(", ")}},setupParams:function(n,t){var i=[],e=[],o,r,u,f;for(i.push("hash:"+this.popStack()),r=this.popStack(),u=this.popStack(),(u||r)&&(u||(this.context.aliases.self="this",u="self.noop"),r||(this.context.aliases.self="this",r="self.noop"),i.push("inverse:"+r),i.push("fn:"+u)),f=0;f<n;f++)o=this.popStack(),t.push(o),this.options.stringParams&&e.push(this.popStack());return this.options.stringParams&&i.push("contexts:["+e.join(",")+"]"),this.options.data&&i.push("data:data"),t.push("{"+i.join(",")+"}"),t.join(", ")}},f="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),e=t.RESERVED_WORDS={},r=0,u=f.length;r<u;r++)e[f[r]]=!0;t.isValidJavaScriptVariableName=function(n){return!t.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(n)?!0:!1}}(Handlebars.Compiler,Handlebars.JavaScriptCompiler);Handlebars.precompile=function(n,t){t=t||{};var i=Handlebars.parse(n),r=(new Handlebars.Compiler).compile(i,t);return(new Handlebars.JavaScriptCompiler).compile(r,t)};Handlebars.compile=function(n,t){function r(){var i=Handlebars.parse(n),r=(new Handlebars.Compiler).compile(i,t),u=(new Handlebars.JavaScriptCompiler).compile(r,t,undefined,!0);return Handlebars.template(u)}t=t||{};var i;return function(n,t){return i||(i=r()),i.call(this,n,t)}};Handlebars.VM={template:function(n){var t={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(n,t,i){var r=this.programs[n];return i?Handlebars.VM.program(t,i):r?r:this.programs[n]=Handlebars.VM.program(t)},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop};return function(i,r){return r=r||{},n.call(t,Handlebars,i,r.helpers,r.partials,r.data)}},programWithDepth:function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(r,u){return u=u||{},n.apply(this,[r,u.data||t].concat(i))}},program:function(n,t){return function(i,r){return r=r||{},n(i,r.data||t)}},noop:function(){return""},invokePartial:function(n,t,i,r,u,f){var e={helpers:r,partials:u,data:f};if(n===undefined)throw new Handlebars.Exception("The partial "+t+" could not be found");else{if(n instanceof Function)return n(i,e);if(Handlebars.compile)return u[t]=Handlebars.compile(n,{data:f!==undefined}),u[t](i,e);throw new Handlebars.Exception("The partial "+t+" could not be compiled when running in runtime-only mode");}}};Handlebars.template=Handlebars.VM.template;Handlebars.registerHelper("SafeString",function(n){var t=" "+n;return new Handlebars.SafeString(t)});Handlebars.registerHelper("NumMarketInfo",function(n){return new Handlebars.SafeString(AvailableBetsCountTTipTrad.replace("%nb%",n))});Handlebars.registerHelper("LinkFormat",function(n){return rootLink+n});Handlebars.registerHelper("DateFormat",function(n){var i,t,r;return n==null?"":(i=n.KeyDay,n.KeyDay==7439?i=Jour0Trad:n.KeyDay==7479?i=JourOneTrad:n.KeyDay==7441?i=JourTwoTrad:n.KeyDay==7480?i=JourThreeTrad:n.KeyDay==7481?i=JourFourTrad:n.KeyDay==7444?i=JourFiveTrad:n.KeyDay==7445&&(i=JourSixTrad),t=n.KeyMonth,n.KeyMonth==7487?t=Mois0:n.KeyMonth==7488?t=MoisOne:n.KeyMonth==7505?t=MoisTwo:n.KeyMonth==7486?t=MoisThree:n.KeyMonth==7410?t=MoisFour:n.KeyMonth==7492?t=MoisFive:n.KeyMonth==7377?t=MoisSix:n.KeyMonth==7509?t=MoisSeven:n.KeyMonth==7494?t=MoisHeight:n.KeyMonth==7495?t=MoisNine:n.KeyMonth==7490?t=MoisOne0:n.KeyMonth==7452&&(t=MoisOneOne),r=DateFormatTrad.replace("%LibJour%",i).replace("%Jour%",n.Day).replace("%LibMois%",t).replace("%Annee%",n.Year),r+" - "+n.HourStr)});Handlebars.registerHelper("ClassDivSelectionCarousel",function(n){return n.length==2?"halves":"thirds"});Handlebars.registerHelper("isLastEvent",function(){return this.isLast==1?"last":""});Handlebars.registerHelper("ClassWinScore",function(){return this.IsWinner==1?" win":""});Handlebars.registerHelper("ClassRunningScore",function(){return this.IsRunning==1?" running":""});Handlebars.registerHelper("ClassTime",function(n){return n==1?"countdown":"match-time"});Handlebars.registerHelper("HasMoreMarket",function(n,t){return n>1?t.fn(this):""});Handlebars.registerHelper("FormatNumOfMarkets",function(n){return n-1});Handlebars.registerHelper("CarouselOnClick",function(n,t){var r=Handlebars.Utils.escapeExpression(this.Title),n=Handlebars.Utils.escapeExpression(n),i=typeof t=="string",u=i?"bcTrack.trackAndChangeLocation":"bcTrack.trackOnClick",f=i?"'"+rootLink+Handlebars.Utils.escapeExpression(t)+"'":"this";return"return "+u+"("+f+", bcTrack.categories.carousel, bcTrack.actions.position + '"+n+"', '"+r+"');"}),function(n){var t={},r={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,touchEnabled:!0,swipeThreshold:50,video:!1,useCSS:!0,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};n.fn.bxSlider=function(u){var f,e,w,b;if(this.length!=0){if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={};e=this;t.el=this;var rt=function(){f.settings=n.extend({},r,u);f.children=e.children(f.settings.slideSelector);f.settings.randomStart&&(f.settings.startSlide=Math.floor(Math.random()*f.children.length));f.active={index:f.settings.startSlide};f.carousel=f.settings.minSlides>1||f.settings.maxSlides>1;f.minThreshold=f.settings.minSlides*f.settings.slideWidth+(f.settings.minSlides-1)*f.settings.slideMargin;f.maxThreshold=f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin;f.working=!1;f.controls={};f.animProp=f.settings.mode=="vertical"?"top":"left";f.usingCSS=f.settings.useCSS&&f.settings.mode!="fade"&&function(){var i=document.createElement("div"),n=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==void 0)return f.cssPrefix=n[t].replace("Perspective","").toLowerCase(),f.animProp="-"+f.cssPrefix+"-transform",!0;return!1}();f.settings.mode=="vertical"&&(f.settings.maxSlides=f.settings.minSlides);ut()},ut=function(){if(e.wrap('<div class="bx-wrapper"><div class="bx-viewport"><\/div><\/div>'),f.viewport=e.parent(),f.loader=n('<div class="bx-loading" />'),f.viewport.prepend(f.loader),e.css({width:f.settings.mode=="horizontal"?f.children.length*215+"%":"auto",position:"relative"}),f.usingCSS&&f.settings.easing?e.css("-"+f.cssPrefix+"-transition-timing-function",f.settings.easing):f.settings.easing||(f.settings.easing="swing"),f.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),f.children.css({float:f.settings.mode=="horizontal"?"left":"none",listStyle:"none"}),f.children.width(k()),f.settings.mode=="horizontal"&&f.settings.slideMargin>0&&f.children.css("marginRight",f.settings.slideMargin),f.settings.mode=="vertical"&&f.settings.slideMargin>0&&f.children.css("marginBottom",f.settings.slideMargin),f.settings.mode=="fade"&&(f.children.css({position:"absolute",zIndex:0,display:"none"}),f.children.eq(f.settings.startSlide).css({zIndex:50,display:"block"})),f.controls.el=n('<div class="bx-controls" />'),f.settings.captions&&st(),f.settings.infiniteLoop&&f.settings.mode!="fade"&&!f.settings.ticker){var t=f.settings.mode=="vertical"?f.settings.minSlides:f.settings.maxSlides,i=f.children.slice(0,t).clone().addClass("bx-clone"),r=f.children.slice(-t).clone().addClass("bx-clone");e.append(i).prepend(r)}f.active.last=f.settings.startSlide==s()-1;f.settings.video&&e.fitVids();f.settings.ticker||(f.settings.pager&&ft(),f.settings.controls&&et(),f.settings.auto&&f.settings.autoControls&&ot(),(f.settings.controls||f.settings.autoControls||f.settings.pager)&&f.viewport.after(f.controls.el));e.children().imagesLoaded(function(){f.loader.remove();d();f.settings.mode=="vertical"&&(f.settings.adaptiveHeight=!0);f.viewport.height(c());f.settings.onSliderLoad(f.active.index);f.settings.auto&&f.settings.autoStart&&yt();f.settings.ticker&&pt();f.settings.pager&&v(f.settings.startSlide);f.settings.controls&&nt();f.settings.touchEnabled&&!f.settings.ticker&&wt()})},c=function(){var r=0,t=n(),u;if(f.settings.mode=="vertical"||f.settings.adaptiveHeight)if(f.carousel)for(u=f.settings.moveSlides==1?f.active.index:f.active.index*h(),t=f.children.eq(u),i=1;f.settings.maxSlides-1>=i;i++)t=u+i>=f.children.length?t.add(f.children.eq(i-1)):t.add(f.children.eq(u+i));else t=f.children.eq(f.active.index);else t=f.children;return f.settings.mode=="vertical"?(t.each(function(){r+=n(this).outerHeight()}),f.settings.slideMargin>0&&(r+=f.settings.slideMargin*(f.settings.minSlides-1))):r=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),r},k=function(){var t=f.settings.slideWidth,n=f.viewport.width()+1;return f.settings.slideWidth==0?t=n:n>f.maxThreshold?t=(n-f.settings.slideMargin*(f.settings.maxSlides-1))/f.settings.maxSlides:f.minThreshold>n&&(t=(n-f.settings.slideMargin*(f.settings.minSlides-1))/f.settings.minSlides),t},l=function(){var n=1,t;return f.settings.mode=="horizontal"?f.minThreshold>f.viewport.width()?n=f.settings.minSlides:f.viewport.width()>f.maxThreshold?n=f.settings.maxSlides:(t=f.children.first().width(),n=Math.floor(f.viewport.width()/t)):f.settings.mode=="vertical"&&(n=f.settings.minSlides),n},s=function(){var n=0,t,i;if(f.settings.moveSlides>0)if(f.settings.infiniteLoop)n=f.children.length/h();else for(t=0,i=0;f.children.length>t;)++n,t=i+l(),i+=l()>=f.settings.moveSlides?f.settings.moveSlides:l();else n=Math.ceil(f.children.length/l());return n},h=function(){return f.settings.moveSlides>0&&l()>=f.settings.moveSlides?f.settings.moveSlides:l()},d=function(){var t,i,n;f.active.last?f.settings.mode=="horizontal"?(t=f.children.last(),n=t.position(),o(-(n.left-(f.viewport.width()-t.width())),"reset",0)):f.settings.mode=="vertical"&&(i=f.children.length-f.settings.minSlides,n=f.children.eq(i).position(),o(-n.top,"reset",0)):(n=f.children.eq(f.active.index*h()).position(),f.active.index==s()-1&&(f.active.last=!0),n!=void 0&&(f.settings.mode=="horizontal"?o(-n.left,"reset",0):f.settings.mode=="vertical"&&o(-n.top,"reset",0)))},o=function(n,t,i,r){var u,s;f.usingCSS?(u=f.settings.mode=="vertical"?"translate3d(0, "+n+"px, 0)":"translate3d("+n+"px, 0, 0)",e.css("-"+f.cssPrefix+"-transition-duration",i/1e3+"s"),t=="slide"?(e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");y()})):t=="reset"?e.css(f.animProp,u):t=="ticker"&&(e.css("-"+f.cssPrefix+"-transition-timing-function","linear"),e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");o(r.resetValue,"reset",0);a()}))):(s={},s[f.animProp]=n,t=="slide"?e.animate(s,i,f.settings.easing,function(){y()}):t=="reset"?e.css(f.animProp,n):t=="ticker"&&e.animate(s,speed,"linear",function(){o(r.resetValue,"reset",0);a()}))},g=function(){var r="",t,i;for(pagerQty=s(),t=0;pagerQty>t;t++)i="",f.settings.buildPager&&n.isFunction(f.settings.buildPager)?(i=f.settings.buildPager(t),f.pagerEl.addClass("bx-custom-pager")):(i=t+1,f.pagerEl.addClass("bx-default-pager")),r+='<div class="bx-pager-item"><a href="" data-slide-index="'+t+'" class="bx-pager-link">'+i+"<\/a><\/div>";f.pagerEl.html(r)},ft=function(){f.settings.pagerCustom?f.pagerEl=n(f.settings.pagerCustom):(f.pagerEl=n('<div class="bx-pager" />'),f.settings.pagerSelector?n(f.settings.pagerSelector).html(f.pagerEl):f.controls.el.addClass("bx-has-pager").append(f.pagerEl),g());f.pagerEl.delegate("a","click",vt)},et=function(){f.controls.next=n('<a class="bx-next" href="">'+f.settings.nextText+"<\/a>");f.controls.prev=n('<a class="bx-prev" href="">'+f.settings.prevText+"<\/a>");f.controls.next.bind("click",ht);f.controls.prev.bind("click",ct);f.settings.nextSelector&&n(f.settings.nextSelector).append(f.controls.next);f.settings.prevSelector&&n(f.settings.prevSelector).append(f.controls.prev);f.settings.nextSelector||f.settings.prevSelector||(f.controls.directionEl=n('<div class="bx-controls-direction" />'),f.controls.directionEl.append(f.controls.prev).append(f.controls.next),f.controls.el.addClass("bx-has-controls-direction").append(f.controls.directionEl))},ot=function(){f.controls.start=n('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+f.settings.startText+"<\/a><\/div>");f.controls.stop=n('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+f.settings.stopText+"<\/a><\/div>");f.controls.autoEl=n('<div class="bx-controls-auto" />');f.controls.autoEl.delegate(".bx-start","click",lt);f.controls.autoEl.delegate(".bx-stop","click",at);f.settings.autoControlsCombine?f.controls.autoEl.append(f.controls.start):f.controls.autoEl.append(f.controls.start).append(f.controls.stop);f.settings.autoControlsSelector?n(f.settings.autoControlsSelector).html(f.controls.autoEl):f.controls.el.addClass("bx-has-controls-auto").append(f.controls.autoEl);p(f.settings.autoStart?"stop":"start")},st=function(){f.children.each(function(){var t=n(this).find("img:first").attr("title");t!=void 0&&n(this).append('<div class="bx-caption"><span>'+t+"<\/span><\/div>")})},ht=function(n){f.settings.auto&&e.stopAuto();e.goToNextSlide();n.preventDefault()},ct=function(n){f.settings.auto&&e.stopAuto();e.goToPrevSlide();n.preventDefault()},lt=function(n){e.startAuto();n.preventDefault()},at=function(n){e.stopAuto();n.preventDefault()},vt=function(t){f.settings.auto&&e.stopAuto();var r=n(t.currentTarget),i=parseInt(r.attr("data-slide-index"));i!=f.active.index&&e.goToSlide(i);t.preventDefault()},v=function(n){return f.settings.pagerType=="short"?(f.pagerEl.html(n+1+f.settings.pagerShortSeparator+f.children.length),void 0):(f.pagerEl.find("a").removeClass("active"),f.pagerEl.find("a").eq(n).addClass("active"),void 0)},y=function(){if(f.settings.infiniteLoop){var n="";f.active.index==0?n=f.children.eq(0).position():f.active.index==s()-1&&f.carousel?n=f.children.eq((s()-1)*h()).position():f.active.index==f.children.length-1&&(n=f.children.eq(f.children.length-1).position());f.settings.mode=="horizontal"?o(-n.left,"reset",0):f.settings.mode=="vertical"&&o(-n.top,"reset",0)}f.working=!1;f.settings.onSlideAfter(f.children.eq(f.active.index),f.oldIndex,f.active.index)},p=function(n){f.settings.autoControlsCombine?f.controls.autoEl.html(f.controls[n]):(f.controls.autoEl.find("a").removeClass("active"),f.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},nt=function(){!f.settings.infiniteLoop&&f.settings.hideControlOnEnd&&(f.active.index==0?(f.controls.prev.addClass("disabled"),f.controls.next.removeClass("disabled")):f.active.index==s()-1?(f.controls.next.addClass("disabled"),f.controls.prev.removeClass("disabled")):(f.controls.prev.removeClass("disabled"),f.controls.next.removeClass("disabled")))},yt=function(){f.settings.autoDelay>0?setTimeout(e.startAuto,f.settings.autoDelay):e.startAuto();f.settings.autoHover&&e.hover(function(){f.interval&&(e.stopAuto(!0),f.autoPaused=!0)},function(){f.autoPaused&&(e.startAuto(!0),f.autoPaused=null)})},pt=function(){var i=0,t;f.settings.autoDirection=="next"?e.append(f.children.clone().addClass("bx-clone")):(e.prepend(f.children.clone().addClass("bx-clone")),t=f.children.first().position(),i=f.settings.mode=="horizontal"?-t.left:-t.top);o(i,"reset",0);f.settings.pager=!1;f.settings.controls=!1;f.settings.autoControls=!1;f.settings.tickerHover&&!f.usingCSS&&f.viewport.hover(function(){e.stop()},function(){var t=0;f.children.each(function(){t+=f.settings.mode=="horizontal"?n(this).outerWidth(!0):n(this).outerHeight(!0)});var i=f.settings.speed/t,r=f.settings.mode=="horizontal"?"left":"top",u=i*(t-Math.abs(parseInt(e.css(r))));a(u)});a()},a=function(n){var t,i;speed=n?n:f.settings.speed;t={left:0,top:0};i={left:0,top:0};f.settings.autoDirection=="next"?t=e.find(".bx-clone").first().position():i=f.children.first().position();var r=f.settings.mode=="horizontal"?-t.left:-t.top,u=f.settings.mode=="horizontal"?-i.left:-i.top,s={resetValue:u};o(r,"ticker",speed,s)},wt=function(){f.touch={start:{x:0,y:0},end:{x:0,y:0}};f.viewport.bind("touchstart",bt)},bt=function(n){if(f.working)n.preventDefault();else{f.touch.originalPos=e.position();var t=n.originalEvent;f.touch.start.x=t.changedTouches[0].pageX;f.touch.start.y=t.changedTouches[0].pageY;f.viewport.bind("touchmove",tt);f.viewport.bind("touchend",it)}},tt=function(n){var r,i,t;(n.preventDefault(),f.settings.mode!="fade")&&(r=n.originalEvent,i=0,f.settings.mode=="horizontal"?(t=r.changedTouches[0].pageX-f.touch.start.x,i=f.touch.originalPos.left+t):(t=r.changedTouches[0].pageY-f.touch.start.y,i=f.touch.originalPos.top+t),o(i,"reset",0))},it=function(n){var r,i,t;f.viewport.unbind("touchmove",tt);r=n.originalEvent;i=0;(f.touch.end.x=r.changedTouches[0].pageX,f.touch.end.y=r.changedTouches[0].pageY,f.settings.mode=="fade")?(t=Math.abs(f.touch.start.x-f.touch.end.x),t>=f.settings.swipeThreshold&&(f.touch.start.x>f.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(t=0,f.settings.mode=="horizontal"?(t=f.touch.end.x-f.touch.start.x,i=f.touch.originalPos.left):(t=f.touch.end.y-f.touch.start.y,i=f.touch.originalPos.top),!f.settings.infiniteLoop&&(f.active.index==0&&t>0||f.active.last&&0>t)?o(i,"reset",200):Math.abs(t)>=f.settings.swipeThreshold?(0>t?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):o(i,"reset",200));f.viewport.unbind("touchend",it)};return e.goToSlide=function(t,i){var l,r,a,p,u,w,b;f.working||f.active.index==t||((f.working=!0,f.oldIndex=f.active.index,f.active.index=0>t?s()-1:t>=s()?0:t,f.settings.onSlideBefore(f.children.eq(f.active.index),f.oldIndex,f.active.index),i=="next"?f.settings.onSlideNext(f.children.eq(f.active.index),f.oldIndex,f.active.index):i=="prev"&&f.settings.onSlidePrev(f.children.eq(f.active.index),f.oldIndex,f.active.index),f.active.last=f.active.index>=s()-1,f.settings.pager&&v(f.active.index),f.settings.controls&&nt(),f.settings.mode=="fade")?(f.settings.adaptiveHeight&&f.viewport.height()!=c()&&f.viewport.animate({height:c()},f.settings.adaptiveHeightSpeed),f.children.filter(":visible").fadeOut(f.settings.speed).css({zIndex:0}),f.children.eq(f.active.index).css("zIndex",51).fadeIn(f.settings.speed,function(){n(this).css("zIndex",50);y()})):(f.settings.adaptiveHeight&&f.viewport.height()!=c()&&f.viewport.animate({height:c()},f.settings.adaptiveHeightSpeed),l=0,r={left:0,top:0},!f.settings.infiniteLoop&&f.carousel&&f.active.last?f.settings.mode=="horizontal"?(u=f.children.eq(f.children.length-1),r=u.position(),l=f.viewport.width()-u.width()):(a=f.children.length-f.settings.minSlides,r=f.children.eq(a).position()):f.carousel&&f.active.last&&i=="prev"?(p=f.settings.moveSlides==1?f.settings.maxSlides-h():(s()-1)*h()-(f.children.length-f.settings.maxSlides),u=e.children(".bx-clone").eq(p),r=u.position()):i=="next"&&f.active.index==0?(r=e.find(".bx-clone").eq(f.settings.maxSlides).position(),f.active.last=!1):t>=0&&(w=t*h(),r=f.children.eq(w).position()),b=f.settings.mode=="horizontal"?-(r.left-l):-r.top,o(b,"slide",f.settings.speed)))},e.goToNextSlide=function(){if(f.settings.infiniteLoop||!f.active.last){var n=f.active.index+1;e.goToSlide(n,"next")}},e.goToPrevSlide=function(){if(f.settings.infiniteLoop||f.active.index!=0){var n=f.active.index-1;e.goToSlide(n,"prev")}},e.startAuto=function(n){f.interval||(f.interval=setInterval(function(){f.settings.autoDirection=="next"?e.goToNextSlide():e.goToPrevSlide()},f.settings.pause),f.settings.autoControls&&n!=1&&p("stop"))},e.stopAuto=function(n){f.interval&&(clearInterval(f.interval),f.interval=null,f.settings.autoControls&&n!=1&&p("start"))},e.getCurrentSlide=function(){return f.active.index},e.getSlideCount=function(){return f.children.length},w=n(window).width(),b=n(window).height(),n(window).resize(function(){var t=n(window).width(),i=n(window).height();(w!=t||b!=i)&&(w=t,b=i,f.children.add(e.find(".bx-clone")).width(k()),f.viewport.css("height",c()),f.active.last&&(f.active.index=s()-1),f.active.index>=s()&&(f.active.last=!0),f.settings.pager&&!f.settings.pagerCustom&&(g(),v(f.active.index)),f.settings.ticker||d())}),rt(),this}}}(jQuery),function(n,t){var i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";n.fn.imagesLoaded=function(r){function l(){var t=n(c),i=n(o);u&&(o.length?u.reject(f,t,i):u.resolve(f));n.isFunction(r)&&r.call(e,f,t,i)}function s(t,r){t.src===i||-1!==n.inArray(t,h)||(h.push(t),r?o.push(t):c.push(t),n.data(t,"imagesLoaded",{isBroken:r,src:t.src}),a&&u.notifyWith(n(t),[r,f,n(c),n(o)]),f.length===h.length&&(setTimeout(l),f.unbind(".imagesLoaded")))}var e=this,u=n.isFunction(n.Deferred)?n.Deferred():0,a=n.isFunction(u.notify),f=e.find("img").add(e.filter("img")),h=[],c=[],o=[];return n.isPlainObject(r)&&n.each(r,function(n,t){"callback"===n?r=t:u&&u[n](t)}),f.length?f.bind("load.imagesLoaded error.imagesLoaded",function(n){s(n.target,"error"===n.type)}).each(function(r,u){var e=u.src,f=n.data(u,"imagesLoaded");f&&f.src===e?s(u,f.isBroken):u.complete&&u.naturalWidth!==t?s(u,0===u.naturalWidth||0===u.naturalHeight):(u.readyState||u.complete)&&(u.src=i,u.src=e)}):l(),u?u.promise(e):e}}(jQuery)