/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement){cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close()}d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border"){for(;e=0===c})}function S(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function K(){return !0}function J(){return !1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return !1}}return !0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else{d=b}}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0){return}A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(n.test(b.replace(o,"@").replace(p,"]").replace(q,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c){return null}var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent){for(n in {submit:1,change:1,focusin:1}){m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o}}j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b){return}n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c)}g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c]){return g.events}k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1){return !0}}return !1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get" in c&&(d=c.get(g,"value"))!==b){return d}d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn){return f(a)[c](d)}if(typeof a.getAttribute=="undefined"){return f.prop(a,c,d)}i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set" in h&&i&&(g=h.set(a,d,c))!==b){return g}a.setAttribute(c,""+d);return d}if(h&&"get" in h&&i&&(g=h.get(a,c))!==null){return g}g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h]){return}c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j){j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0)}return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1){return}r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode){r.push([m,s]),n=m}n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b)){if(w.length===2&&o.relative[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}}}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else{if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t])}}else{for(t=0;k[t]!=null;t++){k[t]&&k[t].nodeType===1&&e.push(j[t])}}}}else{s(k,e)}l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&m.error(a[0])}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=m(b[3],null,null,c)}else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f){return f(a,c,b,d)}}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match){o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))}o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return s(e.getElementsByTagName(b),f)}if(h[2]&&o.find.CLASS&&e.getElementsByClassName){return s(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return s([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return s([],f)}if(i.id===h[3]){return s([i],f)}}try{return s(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p){return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}}catch(r){}finally{l||k.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){m[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a)){try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return !1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a)){f+=d[0],a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0){for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a=="string"){return f.inArray(this[0],f(a))}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b){return c.nodeType===1?c.innerHTML.replace(W,""):null}if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g){e[g]&&bk(d[g],e[g])}}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g){bj(d[g],e[g])}}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l){continue}if(typeof l=="string"){if(!_.test(l)){l=b.createTextNode(l)}else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--){p=p.lastChild}if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i){f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}}var u;if(!f.support.appendChecked){if(l[0]&&typeof(u=l.length)=="number"){for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d)){return}h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(by){return by(a,c)}},swap:function(a,b,c){var d={},e,f;for(f in b){d[f]=a.style[f],a.style[f]=b[f]}e=c.call(a);for(f in b){a.style[f]=d[f]}return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c){return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})}},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++){f[a+bx[d]+b]=e[d]||e[d-2]||e[0]}return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR){return bR.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified")){f.lastModified[k]=y}if(z=v.getResponseHeader("Etag")){f.etag[k]=z}}if(a===304){w="notmodified",o=!0}else{try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}}else{u=w;if(!w||a){w="error",a<0&&(a=0)}}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=bZ(bT,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2){w(-1,z)}else{throw z}}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){b_(g,a[g],c,e)}}return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg){cg[a](0,1)}}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(ct("show",3),a,b,c)}for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){i.animatedProperties[b]!==!0&&(g=!1)}if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show){for(b in i.animatedProperties){f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0)}}d=i.complete,d&&(i.complete=!1,d.call(h))}return !1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b){return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e]}h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e]){return i[d]}return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); (function(a){a.fn.menuAim=function(c){this.each(function(){b.call(this,c)});return this};function b(c){var d=a(this),q=null,g=[],r=null,p=null,s=a.extend({rowSelector:"> li",submenuSelector:"*",submenuDirection:"right",tolerance:75,enter:a.noop,exit:a.noop,activate:a.noop,deactivate:a.noop,exitMenu:a.noop},c);var j=3,f=300;var e=function(t){g.push({x:t.pageX,y:t.pageY});if(g.length>j){g.shift()}};var o=function(){if(p){clearTimeout(p)}if(s.exitMenu(this)){if(q){s.deactivate(q)}q=null}};var l=function(){if(p){clearTimeout(p)}s.enter(this);h(this)},k=function(){s.exit(this)};var m=function(){i(this)};var i=function(t){if(t==q){return}if(q){s.deactivate(q)}s.activate(t);q=t};var h=function(u){var t=n();if(t){p=setTimeout(function(){h(u)},t)}else{i(u)}};var n=function(){if(!q||!a(q).is(s.submenuSelector)){return 0}var x=d.offset(),t={x:x.left,y:x.top-s.tolerance},E={x:x.left+d.outerWidth(),y:t.y},G={x:x.left,y:x.top+d.outerHeight()+s.tolerance},y={x:x.left+d.outerWidth(),y:G.y},z=g[g.length-1],D=g[0];if(!z){return 0}if(!D){D=z}if(D.xy.x||D.yy.y){return 0}if(r&&z.x==r.x&&z.y==r.y){return 0}function A(I,H){return(H.y-I.y)/(H.x-I.x)}var C=E,u=y;if(s.submenuDirection=="left"){C=G;u=t}else{if(s.submenuDirection=="below"){C=y;u=G}else{if(s.submenuDirection=="above"){C=t;u=E}}}var v=A(z,C),B=A(z,u),F=A(D,C),w=A(D,u);if(vw){r=z;return f}r=null;return 0};d.mouseleave(o).find(s.rowSelector).mouseenter(l).mouseleave(k).click(m);a(document).mousemove(e)}})(jQuery); !function(b){b(function(){b.support.transition=function(){var c=function(){var e=document.createElement("bootstrap"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},f;for(f in d){if(e.style[f]!==undefined){return d[f]}}}();return c&&{end:c}}()})}(window.jQuery),!function(g){function i(){h(g(f)).removeClass("open")}function h(a){var k=a.attr("data-target"),e;return k||(k=a.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,"")),e=g(k),e.length||(e=a.parent()),e}var f="[data-toggle=dropdown]",j=function(a){var d=g(a).on("click.dropdown.data-api",this.toggle);g("html").on("click.dropdown.data-api",function(){d.parent().removeClass("open")})};j.prototype={constructor:j,toggle:function(a){var k=g(this),e,d;if(k.is(".disabled, :disabled")){return}return e=h(k),d=e.hasClass("open"),i(),d||(e.toggleClass("open"),k.focus()),!1},keydown:function(a){var o,n,m,l,k,e;if(!/(38|40|27)/.test(a.keyCode)){return}o=g(this),a.preventDefault(),a.stopPropagation();if(o.is(".disabled, :disabled")){return}l=h(o),k=l.hasClass("open");if(!k||k&&a.keyCode==27){return o.click()}n=g("[role=menu] li:not(.divider) a",l);if(!n.length){return}e=n.index(n.filter(":focus")),a.keyCode==38&&e>0&&e--,a.keyCode==40&&e a",this.$body=d("body"),this.refresh(),this.process()}c.prototype={constructor:c,refresh:function(){var a=this,e;this.offsets=d([]),this.targets=d([]),e=this.$body.find(this.selector).map(function(){var f=d(this),h=f.data("target")||f.attr("href"),g=/^#\w/.test(h)&&d(h);return g&&g.length&&[[g.position().top,h]]||null}).sort(function(g,f){return g[0]-f[0]}).each(function(){a.offsets.push(this[0]),a.targets.push(this[1])})},process:function(){var i=this.$scrollElement.scrollTop()+this.options.offset,h=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=h-this.$scrollElement.height(),m=this.offsets,l=this.targets,k=this.activeTarget,j;if(i>=n){return k!=(j=l.last()[0])&&this.activate(j)}for(j=m.length;j--;){k!=l[j]&&i>=m[j]&&(!m[j+1]||i<=m[j+1])&&this.activate(l[j])}},activate:function(a){var f,e;this.activeTarget=a,d(this.selector).parent(".active").removeClass("active"),e=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',f=d(e).parent("li").addClass("active"),f.parent(".dropdown-menu").length&&(f=f.closest("li.dropdown").addClass("active")),f.trigger("activate")}},d.fn.scrollspy=function(a){return this.each(function(){var h=d(this),g=h.data("scrollspy"),b=typeof a=="object"&&a;g||h.data("scrollspy",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.scrollspy.Constructor=c,d.fn.scrollspy.defaults={offset:10},d(window).on("load",function(){d('[data-spy="scroll"]').each(function(){var a=d(this);a.scrollspy(a.data())})})}(window.jQuery),!function(d){var c=function(a){this.element=d(a)};c.prototype={constructor:c,show:function(){var a=this.element,l=a.closest("ul:not(.dropdown-menu)"),k=a.attr("data-target"),j,i,h;k||(k=a.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,""));if(a.parent("li").hasClass("active")){return}j=l.find(".active a").last()[0],h=d.Event("show",{relatedTarget:j}),a.trigger(h);if(h.isDefaultPrevented()){return}i=d(k),this.activate(a.parent("li"),l),this.activate(i,i.parent(),function(){a.trigger({type:"shown",relatedTarget:j})})},activate:function(a,l,k){function h(){j.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),i?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active"),k&&k()}var j=l.find("> .active"),i=k&&d.support.transition&&j.hasClass("fade");i?j.one(d.support.transition.end,h):h(),j.removeClass("in")}},d.fn.tab=function(a){return this.each(function(){var f=d(this),b=f.data("tab");b||f.data("tab",b=new c(this)),typeof a=="string"&&b[a]()})},d.fn.tab.Constructor=c,d(function(){d("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(a){a.preventDefault(),d(this).tab("show")})})}(window.jQuery),!function(d){var c=function(f,e){this.init("tooltip",f,e)};c.prototype={constructor:c,init:function(a,j,i){var h,g;this.type=a,this.$element=d(j),this.options=this.getOptions(i),this.enabled=!0,this.options.trigger=="click"?this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this)):this.options.trigger!="manual"&&(h=this.options.trigger=="hover"?"mouseenter":"focus",g=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(h+"."+this.type,this.options.selector,d.proxy(this.enter,this)),this.$element.on(g+"."+this.type,this.options.selector,d.proxy(this.leave,this))),this.options.selector?this._options=d.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(a){return a=d.extend({},d.fn[this.type].defaults,a,this.$element.data()),a.delay&&typeof a.delay=="number"&&(a.delay={show:a.delay,hide:a.delay}),a},enter:function(a){var e=d(a.currentTarget)[this.type](this._options).data(this.type);if(!e.options.delay||!e.options.delay.show){return e.show()}clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){e.hoverState=="in"&&e.show()},e.options.delay.show)},leave:function(a){var e=d(a.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!e.options.delay||!e.options.delay.hide){return e.hide()}e.hoverState="out",this.timeout=setTimeout(function(){e.hoverState=="out"&&e.hide()},e.options.delay.hide)},show:function(){var i,h,n,m,l,k,j;if(this.hasContent()&&this.enabled){i=this.tip(),this.setContent(),this.options.animation&&i.addClass("fade"),k=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,h=/in/.test(k),i.remove().css({top:0,left:0,display:"block"}).appendTo(h?this.$element:document.body),n=this.getPosition(h),m=i[0].offsetWidth,l=i[0].offsetHeight;switch(h?k.split(" ")[1]:k){case"bottom":j={top:n.top+n.height,left:n.left+n.width/2-m/2};break;case"top":j={top:n.top-l,left:n.left+n.width/2-m/2};break;case"left":j={top:n.top+n.height/2-l/2,left:n.left-m};break;case"right":j={top:n.top+n.height/2-l/2,left:n.left+n.width}}i.css(j).addClass(k).addClass("in")}},setContent:function(){var f=this.tip(),e=this.getTitle();f.find(".tooltip-inner")[this.options.html?"html":"text"](e),f.removeClass("fade in top bottom left right")},hide:function(){function e(){var g=setTimeout(function(){if(f.hoverState==="out"){f.off(d.support.transition.end).remove()}},500);f.one(d.support.transition.end,function(){clearTimeout(g),f.remove()})}var a=this,f=this.tip();return d.support.transition&&this.$tip.hasClass("fade")?e():f.remove(),f.removeClass("in"),this},fixTitle:function(){var b=this.$element;(b.attr("title")||typeof b.attr("data-original-title")!="string")&&b.attr("data-original-title",b.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(a){return d.extend({},a?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var f,e=this.$element,g=this.options;return f=e.attr("data-original-title")||(typeof g.title=="function"?g.title.call(e[0]):g.title),f},tip:function(){return this.$tip=this.$tip||d(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}},d.fn.tooltip=function(a){return this.each(function(){var h=d(this),g=h.data("tooltip"),b=typeof a=="object"&&a;g||h.data("tooltip",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.tooltip.Constructor=c,d.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover",title:"",delay:0,html:!0}}(window.jQuery),!function(d){var c=function(f,e){this.init("popover",f,e)};c.prototype=d.extend({},d.fn.tooltip.Constructor.prototype,{constructor:c,setContent:function(){var f=this.tip(),e=this.getTitle(),g=this.getContent();f.find(".popover-title")[this.options.html?"html":"text"](e),f.find(".popover-content > *")[this.options.html?"html":"text"](g),f.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var f,e=this.$element,g=this.options;return f=e.attr("data-content")||(typeof g.content=="function"?g.content.call(e[0]):g.content),f},tip:function(){return this.$tip||(this.$tip=d(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}}),d.fn.popover=function(a){return this.each(function(){var h=d(this),g=h.data("popover"),b=typeof a=="object"&&a;g||h.data("popover",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.popover.Constructor=c,d.fn.popover.defaults=d.extend({},d.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'})}(window.jQuery),!function(d){var c=function(a,e){this.options=d.extend({},d.fn.affix.defaults,e),this.$window=d(window).on("scroll.affix.data-api",d.proxy(this.checkPosition,this)),this.$element=d(a),this.checkPosition()};c.prototype.checkPosition=function(){if(!this.$element.is(":visible")){return}var a=d(document).height(),p=this.$window.scrollTop(),o=this.$element.offset(),n=this.options.offset,m=n.bottom,l=n.top,k="affix affix-top affix-bottom",j;typeof n!="object"&&(m=l=n),typeof l=="function"&&(l=n.top()),typeof m=="function"&&(m=n.bottom()),j=this.unpin!=null&&p+this.unpin<=o.top?!1:m!=null&&o.top+this.$element.height()>=a-m?"bottom":l!=null&&p<=l?"top":!1;if(this.affixed===j){return}this.affixed=j,this.unpin=j=="bottom"?o.top-p:null,this.$element.removeClass(k).addClass("affix"+(j?"-"+j:""))},d.fn.affix=function(a){return this.each(function(){var h=d(this),g=h.data("affix"),b=typeof a=="object"&&a;g||h.data("affix",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.affix.Constructor=c,d.fn.affix.defaults={offset:0},d(window).on("load",function(){d('[data-spy="affix"]').each(function(){var a=d(this),e=a.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),a.affix(e)})})}(window.jQuery),!function(e){var d='[data-dismiss="alert"]',f=function(a){e(a).on("click",d,this.close)};f.prototype.close=function(a){function g(){h.trigger("closed").remove()}var j=e(this),i=j.attr("data-target"),h;i||(i=j.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),h=e(i),a&&a.preventDefault(),h.length||(h=j.hasClass("alert")?j:j.parent()),h.trigger(a=e.Event("close"));if(a.isDefaultPrevented()){return}h.removeClass("in"),e.support.transition&&h.hasClass("fade")?h.on(e.support.transition.end,g):g()},e.fn.alert=function(a){return this.each(function(){var c=e(this),b=c.data("alert");b||c.data("alert",b=new f(this)),typeof a=="string"&&b[a].call(c)})},e.fn.alert.Constructor=f,e(function(){e("body").on("click.alert.data-api",d,f.prototype.close)})}(window.jQuery),!function(d){var c=function(a,e){this.$element=d(a),this.options=d.extend({},d.fn.button.defaults,e)};c.prototype.setState=function(g){var f="disabled",j=this.$element,i=j.data(),h=j.is("input")?"val":"html";g+="Text",i.resetText||j.data("resetText",j[h]()),j[h](i[g]||this.options[g]),setTimeout(function(){g=="loadingText"?j.addClass(f).attr(f,f):j.removeClass(f).removeAttr(f)},0)},c.prototype.toggle=function(){var b=this.$element.parent('[data-toggle="buttons-radio"]');b&&b.find(".active").removeClass("active"),this.$element.toggleClass("active")},d.fn.button=function(a){return this.each(function(){var h=d(this),g=h.data("button"),b=typeof a=="object"&&a;g||h.data("button",g=new c(this,b)),a=="toggle"?g.toggle():a&&g.setState(a)})},d.fn.button.defaults={loadingText:"loading..."},d.fn.button.Constructor=c,d(function(){d("body").on("click.button.data-api","[data-toggle^=button]",function(a){var e=d(a.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle")})})}(window.jQuery),!function(d){var c=function(a,e){this.$element=d(a),this.options=d.extend({},d.fn.collapse.defaults,e),this.options.parent&&(this.$parent=d(this.options.parent)),this.options.toggle&&this.toggle()};c.prototype={constructor:c,dimension:function(){var b=this.$element.hasClass("width");return b?"width":"height"},show:function(){var a,h,g,f;if(this.transitioning){return}a=this.dimension(),h=d.camelCase(["scroll",a].join("-")),g=this.$parent&&this.$parent.find("> .accordion-group > .in");if(g&&g.length){f=g.data("collapse");if(f&&f.transitioning){return}g.collapse("hide"),f||g.data("collapse",null)}this.$element[a](0),this.transition("addClass",d.Event("show"),"shown"),d.support.transition&&this.$element[a](this.$element[0][h])},hide:function(){var a;if(this.transitioning){return}a=this.dimension(),this.reset(this.$element[a]()),this.transition("removeClass",d.Event("hide"),"hidden"),this.$element[a](0)},reset:function(f){var e=this.dimension();return this.$element.removeClass("collapse")[e](f||"auto")[0].offsetWidth,this.$element[f!==null?"addClass":"removeClass"]("collapse"),this},transition:function(a,j,i){var h=this,g=function(){j.type=="show"&&h.reset(),h.transitioning=0,h.$element.trigger(i)};this.$element.trigger(j);if(j.isDefaultPrevented()){return}this.transitioning=1,this.$element[a]("in"),d.support.transition&&this.$element.hasClass("collapse")?this.$element.one(d.support.transition.end,g):g()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},d.fn.collapse=function(a){return this.each(function(){var h=d(this),g=h.data("collapse"),b=typeof a=="object"&&a;g||h.data("collapse",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.collapse.defaults={toggle:!0},d.fn.collapse.Constructor=c,d(function(){d("body").on("click.collapse.data-api","[data-toggle=collapse]",function(a){var j=d(this),i,h=j.attr("data-target")||a.preventDefault()||(i=j.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),g=d(h).data("collapse")?"toggle":j.data();j[d(h).hasClass("in")?"addClass":"removeClass"]("collapsed"),d(h).collapse(g)})})}(window.jQuery),!function(d){var c=function(a,e){this.$element=d(a),this.options=d.extend({},d.fn.typeahead.defaults,e),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=d(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};c.prototype={constructor:c,select:function(){var b=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(b)).change(),this.hide()},updater:function(b){return b},show:function(){var a=d.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:a.top+a.height,left:a.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(a){var e;return this.query=this.$element.val(),!this.query||this.query.length"+g+""})},render:function(a){var e=this;return a=d(a).map(function(f,g){return f=d(e.options.item).attr("data-value",g),f.find("a").html(e.highlighter(g)),f[0]}),a.first().addClass("active"),this.$menu.html(a),this},next:function(a){var f=this.$menu.find(".active").removeClass("active"),e=f.next();e.length||(e=d(this.$menu.find("li")[0])),e.addClass("active")},prev:function(f){var e=this.$menu.find(".active").removeClass("active"),g=e.prev();g.length||(g=this.$menu.find("li").last()),g.addClass("active")},listen:function(){this.$element.on("blur",d.proxy(this.blur,this)).on("keypress",d.proxy(this.keypress,this)).on("keyup",d.proxy(this.keyup,this)),(d.browser.webkit||d.browser.msie)&&this.$element.on("keydown",d.proxy(this.keydown,this)),this.$menu.on("click",d.proxy(this.click,this)).on("mouseenter","li",d.proxy(this.mouseenter,this))},move:function(b){if(!this.shown){return}switch(b.keyCode){case 9:case 13:case 27:b.preventDefault();break;case 38:b.preventDefault(),this.prev();break;case 40:b.preventDefault(),this.next()}b.stopPropagation()},keydown:function(a){this.suppressKeyPressRepeat=!~d.inArray(a.keyCode,[40,38,9,13,27]),this.move(a)},keypress:function(b){if(this.suppressKeyPressRepeat){return}this.move(b)},keyup:function(b){switch(b.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown){return}this.select();break;case 27:if(!this.shown){return}this.hide();break;default:this.lookup()}b.stopPropagation(),b.preventDefault()},blur:function(f){var e=this;setTimeout(function(){e.hide()},150)},click:function(b){b.stopPropagation(),b.preventDefault(),this.select()},mouseenter:function(a){this.$menu.find(".active").removeClass("active"),d(a.currentTarget).addClass("active")}},d.fn.typeahead=function(a){return this.each(function(){var h=d(this),g=h.data("typeahead"),b=typeof a=="object"&&a;g||h.data("typeahead",g=new c(this,b)),typeof a=="string"&&g[a]()})},d.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},d.fn.typeahead.Constructor=c,d(function(){d("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(a){var e=d(this);if(e.data("typeahead")){return}a.preventDefault(),e.typeahead(e.data())})})}(window.jQuery); window.JSON||(window.JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i){return"null"}gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c")&&f[0]){}return e>4?e:!1}();return c},p.isInternetExplorer=function(){var c=p.isInternetExplorer.cached=typeof p.isInternetExplorer.cached!="undefined"?p.isInternetExplorer.cached:Boolean(p.getInternetExplorerMajorVersion());return c},p.emulated={pushState:!Boolean(B.history&&B.history.pushState&&B.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(x.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(x.userAgent)),hashChange:Boolean(!("onhashchange" in B||"onhashchange" in y)||p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<8)},p.enabled=!p.emulated.pushState,p.bugs={setHash:Boolean(!p.emulated.pushState&&x.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(x.userAgent)),safariPoll:Boolean(!p.emulated.pushState&&x.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(x.userAgent)),ieDoubleCheck:Boolean(p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<7)},p.isEmptyObject=function(d){for(var c in d){return !1}return !0},p.cloneObject=function(e){var d,f;return e?(d=r.stringify(e),f=r.parse(d)):f={},f},p.getRootUrl=function(){var c=y.location.protocol+"//"+(y.location.hostname||y.location.host);if(y.location.port||!1){c+=":"+y.location.port}return c+="/",c},p.getBaseHref=function(){var e=y.getElementsByTagName("base"),d=null,f="";return e.length===1&&(d=e[0],f=d.href.replace(/[^\/]+$/,"")),f=f.replace(/\/+$/,""),f&&(f+="/"),f},p.getBaseUrl=function(){var c=p.getBaseHref()||p.getBasePageUrl()||p.getRootUrl();return c},p.getPageUrl=function(){var e=p.getState(!1,!1),d=(e||{}).url||y.location.href,f;return f=d.replace(/\/+$/,"").replace(/[^\/]+$/,function(h,g,i){return/\./.test(h)?h:h+"/"}),f},p.getBasePageUrl=function(){var c=y.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,d,f){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/";return c},p.getFullUrl=function(f,e){var h=f,g=f.substring(0,1);return e=typeof e=="undefined"?!0:e,/[a-z]+\:\/\//.test(f)||(g==="/"?h=p.getRootUrl()+f.replace(/^\/+/,""):g==="#"?h=p.getPageUrl().replace(/#.*/,"")+f:g==="?"?h=p.getPageUrl().replace(/[\?#].*/,"")+f:e?h=p.getBaseUrl()+f.replace(/^(\.\/)+/,""):h=p.getBasePageUrl()+f.replace(/^(\.\/)+/,"")),h.replace(/\#$/,"")},p.getShortUrl=function(f){var e=f,h=p.getBaseUrl(),g=p.getRootUrl();return p.emulated.pushState&&(e=e.replace(h,"")),e=e.replace(g,"/"),p.isTraditionalAnchor(e)&&(e="./"+e),e=e.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),e},p.store={},p.idToState=p.idToState||{},p.stateToId=p.stateToId||{},p.urlToId=p.urlToId||{},p.storedStates=p.storedStates||[],p.savedStates=p.savedStates||[],p.normalizeStore=function(){p.store.idToState=p.store.idToState||{},p.store.urlToId=p.store.urlToId||{},p.store.stateToId=p.store.stateToId||{}},p.getState=function(e,d){typeof e=="undefined"&&(e=!0),typeof d=="undefined"&&(d=!0);var f=p.getLastSavedState();return !f&&d&&(f=p.createStateObject()),e&&(f=p.cloneObject(f),f.url=f.cleanUrl||f.url),f},p.getIdByState=function(e){var d=p.extractId(e.url),f;if(!d){f=p.getStateString(e);if(typeof p.stateToId[f]!="undefined"){d=p.stateToId[f]}else{if(typeof p.store.stateToId[f]!="undefined"){d=p.store.stateToId[f]}else{for(;;){d=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof p.idToState[d]=="undefined"&&typeof p.store.idToState[d]=="undefined"){break}}p.stateToId[f]=d,p.idToState[d]=e}}}return d},p.normalizeState=function(e){var d,f;if(!e||typeof e!="object"){e={}}if(typeof e.normalized!="undefined"){return e}if(!e.data||typeof e.data!="object"){e.data={}}d={},d.normalized=!0,d.title=e.title||"",d.url=p.getFullUrl(p.unescapeString(e.url||y.location.href)),d.hash=p.getShortUrl(d.url),d.data=p.cloneObject(e.data),d.id=p.getIdByState(d),d.cleanUrl=d.url.replace(/\??\&_suid.*/,""),d.url=d.cleanUrl,f=!p.isEmptyObject(d.data);if(d.title||f){d.hash=p.getShortUrl(d.url).replace(/\??\&_suid.*/,""),/\?/.test(d.hash)||(d.hash+="?"),d.hash+="&_suid="+d.id}return d.hashedUrl=p.getFullUrl(d.hash),(p.emulated.pushState||p.bugs.safariPoll)&&p.hasUrlDuplicate(d)&&(d.url=d.hashedUrl),d},p.createStateObject=function(f,e,h){var g={data:f,title:e,url:h};return g=p.normalizeState(g),g},p.getStateById=function(d){d=String(d);var e=p.idToState[d]||p.store.idToState[d]||A;return e},p.getStateString=function(f){var e,h,g;return e=p.normalizeState(f),h={data:e.data,title:f.title,url:f.url},g=r.stringify(h),g},p.getStateId=function(e){var d,f;return d=p.normalizeState(e),f=d.id,f},p.getHashByState=function(e){var d,f;return d=p.normalizeState(e),f=d.hash,f},p.extractId=function(f){var e,h,g;return h=/(.*)\&_suid=([0-9]+)$/.exec(f),g=h?h[1]||f:f,e=h?String(h[2]||""):"",e||!1},p.isTraditionalAnchor=function(d){var c=!/[\/\?\.]/.test(d);return c},p.extractState=function(g,f){var j=null,i,h;return f=f||!1,i=p.extractId(g),i&&(j=p.getStateById(i)),j||(h=p.getFullUrl(g),i=p.getIdByUrl(h)||!1,i&&(j=p.getStateById(i)),!j&&f&&!p.isTraditionalAnchor(g)&&(j=p.createStateObject(null,null,h))),j},p.getIdByUrl=function(d){var e=p.urlToId[d]||p.store.urlToId[d]||A;return e},p.getLastSavedState=function(){return p.savedStates[p.savedStates.length-1]||A},p.getLastStoredState=function(){return p.storedStates[p.storedStates.length-1]||A},p.hasUrlDuplicate=function(e){var d=!1,f;return f=p.extractState(e.url),d=f&&f.id!==e.id,d},p.storeState=function(c){return p.urlToId[c.url]=c.id,p.storedStates.push(p.cloneObject(c)),c},p.isLastSavedState=function(g){var f=!1,j,i,h;return p.savedStates.length&&(j=g.id,i=p.getLastSavedState(),h=i.id,f=j===h),f},p.saveState=function(c){return p.isLastSavedState(c)?!1:(p.savedStates.push(p.cloneObject(c)),!0)},p.getStateByIndex=function(d){var c=null;return typeof d=="undefined"?c=p.savedStates[p.savedStates.length-1]:d<0?c=p.savedStates[p.savedStates.length+d]:c=p.savedStates[d],c},p.getHash=function(){var c=p.unescapeHash(y.location.hash);return c},p.unescapeString=function(e){var g=e,f;for(;;){f=B.unescape(g);if(f===g){break}g=f}return g},p.unescapeHash=function(d){var c=p.normalizeHash(d);return c=p.unescapeString(c),c},p.normalizeHash=function(d){var c=d.replace(/[^#]*#/,"").replace(/#.*/,"");return c},p.setHash=function(g,d){var j,i,h;return d!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.setHash,args:arguments,queue:d}),!1):(j=p.escapeHash(g),p.busy(!0),i=p.extractState(g,!0),i&&!p.emulated.pushState?p.pushState(i.data,i.title,i.url,!1):y.location.hash!==j&&(p.bugs.setHash?(h=p.getPageUrl(),p.pushState(null,null,h+"#"+j,!1)):y.location.hash=j),p)},p.escapeHash=function(d){var e=p.normalizeHash(d);return e=B.escape(e),p.bugs.hashEscape||(e=e.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),e},p.getHashByUrl=function(d){var c=String(d).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return c=p.unescapeHash(c),c},p.setTitle=function(f){var d=f.title,h;d||(h=p.getStateByIndex(0),h&&h.url===f.url&&(d=h.title||p.options.initialTitle));try{y.getElementsByTagName("title")[0].innerHTML=d.replace("<","<").replace(">",">").replace(" & "," & ")}catch(g){}return y.title=d,p},p.queues=[],p.busy=function(d){typeof d!="undefined"?p.busy.flag=d:typeof p.busy.flag=="undefined"&&(p.busy.flag=!1);if(!p.busy.flag){u(p.busy.timeout);var c=function(){var e,g,f;if(p.busy.flag){return}for(e=p.queues.length-1;e>=0;--e){g=p.queues[e];if(g.length===0){continue}f=g.shift(),p.fireQueueItem(f),p.busy.timeout=v(c,p.options.busyDelay)}};p.busy.timeout=v(c,p.options.busyDelay)}return p.busy.flag},p.busy.flag=!1,p.fireQueueItem=function(c){return c.callback.apply(c.scope||p,c.args||[])},p.pushQueue=function(c){return p.queues[c.queue||0]=p.queues[c.queue||0]||[],p.queues[c.queue||0].push(c),p},p.queue=function(d,c){return typeof d=="function"&&(d={callback:d}),typeof c!="undefined"&&(d.queue=c),p.busy()?p.pushQueue(d):p.fireQueueItem(d),p},p.clearQueue=function(){return p.busy.flag=!1,p.queues=[],p},p.stateChanged=!1,p.doubleChecker=!1,p.doubleCheckComplete=function(){return p.stateChanged=!0,p.doubleCheckClear(),p},p.doubleCheckClear=function(){return p.doubleChecker&&(u(p.doubleChecker),p.doubleChecker=!1),p},p.doubleCheck=function(c){return p.stateChanged=!1,p.doubleCheckClear(),p.bugs.ieDoubleCheck&&(p.doubleChecker=v(function(){return p.doubleCheckClear(),p.stateChanged||c(),!0},p.options.doubleCheckInterval)),p},p.safariStatePoll=function(){var d=p.extractState(y.location.href),e;if(!p.isLastSavedState(d)){e=d}else{return}return e||(e=p.createStateObject()),p.Adapter.trigger(B,"popstate"),p},p.back=function(c){return c!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.back,args:arguments,queue:c}),!1):(p.busy(!0),p.doubleCheck(function(){p.back(!1)}),o.go(-1),!0)},p.forward=function(c){return c!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.forward,args:arguments,queue:c}),!1):(p.busy(!0),p.doubleCheck(function(){p.forward(!1)}),o.go(1),!0)},p.go=function(e,d){var f;if(e>0){for(f=1;f<=e;++f){p.forward(d)}}else{if(!(e<0)){throw new Error("History.go: History.go requires a positive or negative integer passed.")}for(f=-1;f>=e;--f){p.back(d)}}return p};if(p.emulated.pushState){var b=function(){};p.pushState=p.pushState||b,p.replaceState=p.replaceState||b}else{p.onPopState=function(d,m){var l=!1,k=!1,j,i;return p.doubleCheckComplete(),j=p.getHash(),j?(i=p.extractState(j||y.location.href,!0),i?p.replaceState(i.data,i.title,i.url,!1):(p.Adapter.trigger(B,"anchorchange"),p.busy(!1)),p.expectedStateId=!1,!1):(l=p.Adapter.extractEventData("state",d,m)||!1,l?k=p.getStateById(l):p.expectedStateId?k=p.getStateById(p.expectedStateId):k=p.extractState(y.location.href),k||(k=p.createStateObject(null,null,y.location.href)),p.expectedStateId=!1,p.isLastSavedState(k)?(p.busy(!1),!1):(p.storeState(k),p.saveState(k),p.setTitle(k),p.Adapter.trigger(B,"statechange"),p.busy(!1),!0))},p.Adapter.bind(B,"popstate",p.onPopState),p.pushState=function(g,k,j,i){if(p.getHashByUrl(j)&&p.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(i!==!1&&p.busy()){return p.pushQueue({scope:p,callback:p.pushState,args:arguments,queue:i}),!1}p.busy(!0);var h=p.createStateObject(g,k,j);return p.isLastSavedState(h)?p.busy(!1):(p.storeState(h),p.expectedStateId=h.id,o.pushState(h.id,h.title,h.url),p.Adapter.trigger(B,"popstate")),!0},p.replaceState=function(g,k,j,i){if(p.getHashByUrl(j)&&p.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(i!==!1&&p.busy()){return p.pushQueue({scope:p,callback:p.replaceState,args:arguments,queue:i}),!1}p.busy(!0);var h=p.createStateObject(g,k,j);return p.isLastSavedState(h)?p.busy(!1):(p.storeState(h),p.expectedStateId=h.id,o.replaceState(h.id,h.title,h.url),p.Adapter.trigger(B,"popstate")),!0}}if(w){try{p.store=r.parse(w.getItem("History.store"))||{}}catch(a){p.store={}}p.normalizeStore()}else{p.store={},p.normalizeStore()}p.Adapter.bind(B,"beforeunload",p.clearAllIntervals),p.Adapter.bind(B,"unload",p.clearAllIntervals),p.saveState(p.storeState(p.extractState(y.location.href,!0))),w&&(p.onUnload=function(){var e,d;try{e=r.parse(w.getItem("History.store"))||{}}catch(f){e={}}e.idToState=e.idToState||{},e.urlToId=e.urlToId||{},e.stateToId=e.stateToId||{};for(d in p.idToState){if(!p.idToState.hasOwnProperty(d)){continue}e.idToState[d]=p.idToState[d]}for(d in p.urlToId){if(!p.urlToId.hasOwnProperty(d)){continue}e.urlToId[d]=p.urlToId[d]}for(d in p.stateToId){if(!p.stateToId.hasOwnProperty(d)){continue}e.stateToId[d]=p.stateToId[d]}p.store=e,p.normalizeStore(),w.setItem("History.store",r.stringify(e))},p.intervalList.push(t(p.onUnload,p.options.storeInterval)),p.Adapter.bind(B,"beforeunload",p.onUnload),p.Adapter.bind(B,"unload",p.onUnload));if(!p.emulated.pushState){p.bugs.safariPoll&&p.intervalList.push(t(p.safariStatePoll,p.options.safariPollInterval));if(x.vendor==="Apple Computer, Inc."||(x.appCodeName||"")==="Mozilla"){p.Adapter.bind(B,"hashchange",function(){p.Adapter.trigger(B,"popstate")}),p.getHash()&&p.Adapter.onDomLoad(function(){p.Adapter.trigger(B,"hashchange")})}}},p.init()}(window); /*! jQuery UI - v1.9.1 - 2012-11-09 * http://jqueryui.com * Includes: jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */ jQuery.effects||function(c,a){var d=c.uiBackCompat!==!1,b="ui-effects-";c.effects={effect:{}},function(D,k){function g(i,f,l){var h=A[f.type]||{};return i==null?l||!f.def?null:f.def:(i=h.floor?~~i:parseFloat(i),isNaN(i)?f.def:h.mod?(i+h.mod)%h.mod:0>i?0:h.max")[0],z,w=D.each;m.style.cssText="background-color:rgba(1,1,1,.5)",x.rgba=m.style.backgroundColor.indexOf("rgba")>-1,w(C,function(h,f){f.cache="_"+h,f.props.alpha={idx:3,type:"percent",def:1}}),j.fn=D.extend(j.prototype,{parse:function(u,p,t,n){if(u===k){return this._rgba=[null,null,null,null],this}if(u.jquery||u.nodeType){u=D(u).css(p),p=k}var F=this,h=D.type(u),o=this._rgba=[];p!==k&&(u=[u,p,t,n],h="array");if(h==="string"){return this.parse(y(u)||z._default)}if(h==="array"){return w(C.rgba.props,function(i,f){o[f.idx]=g(u[f.idx],f)}),this}if(h==="object"){return u instanceof j?w(C,function(i,f){u[f.cache]&&(F[f.cache]=u[f.cache].slice())}):w(C,function(l,r){var f=r.cache;w(r.props,function(s,i){if(!F[f]&&r.to){if(s==="alpha"||u[s]==null){return}F[f]=r.to(F._rgba)}F[f][i.idx]=g(u[s],i,!0)}),F[f]&&c.inArray(null,F[f].slice(0,3))<0&&(F[f][3]=1,r.from&&(F._rgba=r.from(F[f])))}),this}},is:function(i){var f=j(i),l=!0,h=this;return w(C,function(r,n){var p,t=f[n.cache];return t&&(p=h[n.cache]||n.to&&n.to(h._rgba)||[],w(n.props,function(s,o){if(t[o.idx]!=null){return l=t[o.idx]===p[o.idx],l}})),l}),l},_space:function(){var h=[],f=this;return w(C,function(l,i){f[i.cache]&&h.push(l)}),h.pop()},transition:function(G,p){var H=j(G),v=H._space(),o=C[v],u=this.alpha()===0?j("transparent"):this,F=u[o.cache]||o.to(u._rgba),h=F.slice();return H=H[o.cache],w(o.props,function(I,t){var l=t.idx,n=F[l],J=H[l],f=A[t.type]||{};if(J===null){return}n===null?h[l]=J:(f.mod&&(J-n>f.mod/2?n+=f.mod:n-J>f.mod/2&&(n-=f.mod)),h[l]=g((J-n)*p+n,t))}),this[v](h)},blend:function(l){if(this._rgba[3]===1){return this}var o=this._rgba.slice(),h=o.pop(),f=j(l)._rgba;return j(D.map(o,function(n,i){return(1-h)*f[i]+h*n}))},toRgbaString:function(){var f="rgba(",h=D.map(this._rgba,function(l,i){return l==null?i>2?1:0:l});return h[3]===1&&(h.pop(),f="rgb("),f+h.join()+")"},toHslaString:function(){var f="hsla(",h=D.map(this.hsla(),function(l,i){return l==null&&(l=i>2?1:0),i&&i<3&&(l=Math.round(l*100)+"%"),l});return h[3]===1&&(h.pop(),f="hsl("),f+h.join()+")"},toHexString:function(h){var i=this._rgba.slice(),f=i.pop();return h&&i.push(~~(f*255)),"#"+D.map(i,function(l){return l=(l||0).toString(16),l.length===1?"0"+l:l}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,C.hsla.to=function(I){if(I[0]==null||I[1]==null||I[2]==null){return[null,null,null,I[3]]}var M=I[0]/255,v=I[1]/255,h=I[2]/255,G=I[3],N=Math.max(M,v,h),p=Math.min(M,v,h),L=N-p,K=N+p,H=K*0.5,F,J;return p===N?F=0:M===N?F=60*(v-h)/L+360:v===N?F=60*(h-M)/L+120:F=60*(M-v)/L+240,H===0||H===1?J=H:H<=0.5?J=L/K:J=L/(2-K),[Math.round(F)%360,J,H,G==null?1:G]},C.hsla.from=function(u){if(u[0]==null||u[1]==null||u[2]==null){return[null,null,null,u[3]]}var h=u[0]/360,F=u[1],p=u[2],f=u[3],l=p<=0.5?p*(1+F):p+F-p*F,v=2*p-l;return[Math.round(B(v,l,h+1/3)*255),Math.round(B(v,l,h)*255),Math.round(B(v,l,h-1/3)*255),f]},w(C,function(p,n){var l=n.props,i=n.cache,h=n.to,o=n.from;j.fn[p]=function(u){h&&!this[i]&&(this[i]=h(this._rgba));if(u===k){return this[i].slice()}var t,s=D.type(u),f=s==="array"||s==="object"?u:arguments,v=this[i].slice();return w(l,function(F,r){var G=f[s==="object"?F:r.idx];G==null&&(G=v[r.idx]),v[r.idx]=g(G,r)}),o?(t=j(o(v)),t[i]=v,t):j(v)},w(l,function(s,f){if(j.fn[s]){return}j.fn[s]=function(F){var H=D.type(F),v=s==="alpha"?this._hsla?"hsla":"rgba":p,t=this[v](),G=t[f.idx],r;return H==="undefined"?G:(H==="function"&&(F=F.call(this,G),H=D.type(F)),F==null&&f.empty?this:(H==="string"&&(r=q.exec(F),r&&(F=G+parseFloat(r[2])*(r[1]==="+"?1:-1))),t[f.idx]=F,this[v](t)))}})}),w(e,function(f,h){D.cssHooks[h]={set:function(G,F){var t,v,p="";if(D.type(F)!=="string"||(t=y(F))){F=j(t||F);if(!x.rgba&&F._rgba[3]!==1){v=h==="backgroundColor"?G.parentNode:G;while((p===""||p==="transparent")&&v&&v.style){try{p=D.css(v,"backgroundColor"),v=v.parentNode}catch(o){}}F=F.blend(p&&p!=="transparent"?p:"_default")}F=F.toRgbaString()}try{G.style[h]=F}catch(n){}}},D.fx.step[h]=function(i){i.colorInit||(i.start=j(i.elem,h),i.end=j(i.end),i.colorInit=!0),D.cssHooks[h].set(i.elem,i.start.transition(i.end,i.pos))}}),D.cssHooks.borderColor={expand:function(h){var f={};return w(["Top","Right","Bottom","Left"],function(l,i){f["border"+i+"Color"]=h}),f}},z=D.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"}}(jQuery),function(){function e(){var k=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,m={},l,j;if(k&&k.length&&k[0]&&k[k[0]]){j=k.length;while(j--){l=k[j],typeof k[l]=="string"&&(m[c.camelCase(l)]=k[l])}}else{for(l in k){typeof k[l]=="string"&&(m[l]=k[l])}}return m}function f(k,p){var j={},l,m;for(l in p){m=p[l],k[l]!==m&&!g[l]&&(c.fx.step[l]||!isNaN(parseFloat(m)))&&(j[l]=m)}return j}var h=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(i,j){c.fx.step[j]=function(k){if(k.end!=="none"&&!k.setAttr||k.pos===1&&!k.setAttr){jQuery.style(k.elem,j,k.end),k.setAttr=!0}}}),c.effects.animateClass=function(k,l,m,j){var i=c.speed(l,m,j);return this.queue(function(){var p=c(this),s=p.attr("class")||"",n,q=i.children?p.find("*").andSelf():p;q=q.map(function(){var o=c(this);return{el:o,start:e.call(this)}}),n=function(){c.each(h,function(o,r){k[r]&&p[r+"Class"](k[r])})},n(),q=q.map(function(){return this.end=e.call(this.el[0]),this.diff=f(this.start,this.end),this}),p.attr("class",s),q=q.map(function(){var o=this,v=c.Deferred(),u=jQuery.extend({},i,{queue:!1,complete:function(){v.resolve(o)}});return this.el.animate(this.diff,u),v.promise()}),c.when.apply(c,q.get()).done(function(){n(),c.each(arguments,function(){var o=this.el;c.each(this.diff,function(r){o.css(r,"")})}),i.complete.call(p[0])})})},c.fn.extend({_addClass:c.fn.addClass,addClass:function(k,m,l,j){return m?c.effects.animateClass.call(this,{add:k},m,l,j):this._addClass(k)},_removeClass:c.fn.removeClass,removeClass:function(k,m,l,j){return m?c.effects.animateClass.call(this,{remove:k},m,l,j):this._removeClass(k)},_toggleClass:c.fn.toggleClass,toggleClass:function(p,l,j,k,m){return typeof l=="boolean"||l===a?j?c.effects.animateClass.call(this,l?{add:p}:{remove:p},j,k,m):this._toggleClass(p,l):c.effects.animateClass.call(this,{toggle:p},l,j,k)},switchClass:function(k,o,m,j,l){return c.effects.animateClass.call(this,{add:o,remove:k},m,j,l)}})}(),function(){function e(h,k,j,g){c.isPlainObject(h)&&(k=h,h=h.effect),h={effect:h},k==null&&(k={}),c.isFunction(k)&&(g=k,j=null,k={});if(typeof k=="number"||c.fx.speeds[k]){g=j,j=k,k={}}return c.isFunction(j)&&(g=j,j=null),k&&c.extend(h,k),j=j||k.duration,h.duration=c.fx.off?0:typeof j=="number"?j:j in c.fx.speeds?c.fx.speeds[j]:c.fx.speeds._default,h.complete=g||k.complete,h}function f(g){return !g||typeof g=="number"||c.fx.speeds[g]?!0:typeof g=="string"&&!c.effects.effect[g]?d&&c.effects[g]?!1:!0:!1}c.extend(c.effects,{version:"1.9.1",save:function(h,g){for(var i=0;i
    ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),g={width:h.width(),height:h.height()},j=document.activeElement;try{j.id}catch(l){j=document.body}return h.wrap(k),(h[0]===j||c.contains(h[0],j))&&c(j).focus(),k=h.parent(),h.css("position")==="static"?(k.css({position:"relative"}),h.css({position:"relative"})):(c.extend(m,{position:h.css("position"),zIndex:h.css("z-index")}),c.each(["top","left","bottom","right"],function(n,i){m[i]=h.css(i),isNaN(parseInt(m[i],10))&&(m[i]="auto")}),h.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),h.css(g),k.css(m).show()},removeWrapper:function(g){var h=document.activeElement;return g.parent().is(".ui-effects-wrapper")&&(g.parent().replaceWith(g),(g[0]===h||c.contains(g[0],h))&&c(h).focus()),g},setTransition:function(h,k,j,g){return g=g||{},c.each(k,function(l,m){var i=h.cssUnit(m);i[0]>0&&(g[m]=i[0]*j+i[1])}),g}}),c.fn.extend({effect:function(){function g(t){function m(){c.isFunction(o)&&o.call(q[0]),c.isFunction(t)&&t()}var q=c(this),o=i.complete,p=i.mode;(q.is(":hidden")?p==="hide":p==="show")?m():l.call(q[0],i,m)}var i=e.apply(this,arguments),k=i.mode,j=i.queue,l=c.effects.effect[i.effect],h=!l&&d&&c.effects[i.effect];return c.fx.off||!l&&!h?k?this[k](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):l?j===!1?this.each(g):this.queue(j||"fx",g):h.call(this,{options:i,duration:i.duration,callback:i.complete,mode:i.mode})},_show:c.fn.show,show:function(h){if(f(h)){return this._show.apply(this,arguments)}var g=e.apply(this,arguments);return g.mode="show",this.effect.call(this,g)},_hide:c.fn.hide,hide:function(h){if(f(h)){return this._hide.apply(this,arguments)}var g=e.apply(this,arguments);return g.mode="hide",this.effect.call(this,g)},__toggle:c.fn.toggle,toggle:function(g){if(f(g)||typeof g=="boolean"||c.isFunction(g)){return this.__toggle.apply(this,arguments)}var h=e.apply(this,arguments);return h.mode="toggle",this.effect.call(this,h)},cssUnit:function(g){var i=this.css(g),h=[];return c.each(["em","px","%","pt"],function(k,j){i.indexOf(j)>0&&(h=[parseFloat(i),j])}),h}})}(),function(){var e={};c.each(["Quad","Cubic","Quart","Quint","Expo"],function(f,g){e[g]=function(h){return Math.pow(h,f+2)}}),c.extend(e,{Sine:function(f){return 1-Math.cos(f*Math.PI/2)},Circ:function(f){return 1-Math.sqrt(1-f*f)},Elastic:function(f){return f===0||f===1?f:-Math.pow(2,8*(f-1))*Math.sin(((f-1)*80-7.5)*Math.PI/15)},Back:function(f){return f*f*(3*f-2)},Bounce:function(g){var f,h=4;while(g<((f=Math.pow(2,--h))-1)/11){}return 1/Math.pow(4,3-h)-7.5625*Math.pow((f*3-2)/22-g,2)}}),c.each(e,function(f,g){c.easing["easeIn"+f]=g,c.easing["easeOut"+f]=function(h){return 1-g(1-h)},c.easing["easeInOut"+f]=function(h){return h<0.5?g(h*2)/2:1-g(h*-2+2)/2}})}()}(jQuery);(function(c,a){var d=/up|down|vertical/,b=/up|left|vertical|horizontal/;c.effects.effect.blind=function(D,q){var E=c(this),j=["position","top","bottom","left","right","height","width"],C=c.effects.setMode(E,D.mode||"hide"),A=D.direction||"up",x=d.test(A),n=x?"height":"width",z=x?"top":"left",r=b.test(A),e={},y=C==="show",B,k,w;E.parent().is(".ui-effects-wrapper")?c.effects.save(E.parent(),j):c.effects.save(E,j),E.show(),B=c.effects.createWrapper(E).css({overflow:"hidden"}),k=B[n](),w=parseFloat(B.css(z))||0,e[n]=y?k:0,r||(E.css(x?"bottom":"right",0).css(x?"top":"left","auto").css({position:"absolute"}),e[z]=y?w:k+w),y&&(B.css(n,0),r||B.css(z,w+k)),B.animate(e,{duration:D.duration,easing:D.easing,queue:!1,complete:function(){C==="hide"&&E.hide(),c.effects.restore(E,j),c.effects.removeWrapper(E),q()}})}})(jQuery);(function(b,a){b.effects.effect.bounce=function(x,D){var A=b(this),G=["position","top","bottom","left","right","height","width"],z=b.effects.setMode(A,x.mode||"effect"),C=z==="hide",q=z==="show",N=x.direction||"up",J=x.distance,F=x.times||5,L=F*2+(q||C?1:0),H=x.duration/L,B=x.easing,K=N==="up"||N==="down"?"top":"left",k=N==="up"||N==="left",E,I,e,M=A.queue(),j=M.length;(q||C)&&G.push("opacity"),b.effects.save(A,G),A.show(),b.effects.createWrapper(A),J||(J=A[K==="top"?"outerHeight":"outerWidth"]()/3),q&&(e={opacity:1},e[K]=0,A.css("opacity",0).css(K,k?-J*2:J*2).animate(e,H,B)),C&&(J/=Math.pow(2,F-1)),e={},e[K]=0;for(E=0;E1&&M.splice.apply(M,[1,0].concat(M.splice(j,L+1))),A.dequeue()}})(jQuery);(function(b,a){b.effects.effect.clip=function(B,k){var e=b(this),q=["position","top","bottom","left","right","height","width"],C=b.effects.setMode(e,B.mode||"hide"),j=C==="show",A=B.direction||"vertical",z=A==="vertical",w=z?"height":"width",m=z?"top":"left",y={},v,g,x;b.effects.save(e,q),e.show(),v=b.effects.createWrapper(e).css({overflow:"hidden"}),g=e[0].tagName==="IMG"?v:e,x=g[w](),j&&(g.css(w,0),g.css(m,x/2)),y[w]=j?x:0,y[m]=j?0:x/2,g.animate(y,{queue:!1,duration:B.duration,easing:B.easing,complete:function(){j||e.hide(),b.effects.restore(e,q),b.effects.removeWrapper(e),k()}})}})(jQuery);(function(b,a){b.effects.effect.drop=function(v,g){var d=b(this),j=["position","top","bottom","left","right","opacity","height","width"],w=b.effects.setMode(d,v.mode||"hide"),e=w==="show",q=v.direction||"left",p=q==="up"||q==="down"?"top":"left",k=q==="up"||q==="left"?"pos":"neg",h={opacity:e?1:0},m;b.effects.save(d,j),d.show(),b.effects.createWrapper(d),m=v.distance||d[p==="top"?"outerHeight":"outerWidth"](!0)/2,e&&d.css("opacity",0).css(p,k==="pos"?-m:m),h[p]=(e?k==="pos"?"+=":"-=":k==="pos"?"-=":"+=")+m,d.animate(h,{queue:!1,duration:v.duration,easing:v.easing,complete:function(){w==="hide"&&d.hide(),b.effects.restore(d,j),b.effects.removeWrapper(d),g()}})}})(jQuery);(function(b,a){b.effects.effect.explode=function(q,B){function e(){J.push(this),J.length===x*E&&K()}function K(){w.css({visibility:"visible"}),b(J).remove(),k||w.hide(),B()}var x=q.pieces?Math.round(Math.sqrt(q.pieces)):3,E=x,w=b(this),A=b.effects.setMode(w,q.mode||"hide"),k=A==="show",L=w.show().css("visibility","hidden").offset(),H=Math.ceil(w.outerWidth()/E),D=Math.ceil(w.outerHeight()/x),J=[],F,z,I,j,C,G;for(F=0;F").css({position:"absolute",visibility:"visible",left:-z*H,top:-F*D}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:H,height:D,left:I+(k?C*H:0),top:j+(k?G*D:0),opacity:k?0:1}).animate({left:I+(k?0:C*H),top:j+(k?0:G*D),opacity:k?1:0},q.duration||500,q.easing,e)}}}})(jQuery);(function(b,a){b.effects.effect.fade=function(d,f){var e=b(this),c=b.effects.setMode(e,d.mode||"toggle");e.animate({opacity:c},{queue:!1,duration:d.duration,easing:d.easing,complete:f})}})(jQuery);(function(b,a){b.effects.effect.fold=function(H,q){var e=b(this),y=["position","top","bottom","left","right","height","width"],I=b.effects.setMode(e,H.mode||"hide"),k=I==="show",G=I==="hide",E=H.size||15,B=/([0-9]+)%/.exec(E),x=!!H.horizFirst,D=k!==x,z=D?["width","height"]:["height","width"],j=H.duration/2,C,F,w={},A={};b.effects.save(e,y),e.show(),C=b.effects.createWrapper(e).css({overflow:"hidden"}),F=D?[C.width(),C.height()]:[C.height(),C.width()],B&&(E=parseInt(B[1],10)/100*F[G?0:1]),k&&C.css(x?{height:0,width:E}:{height:E,width:0}),w[z[0]]=k?F[0]:E,A[z[1]]=k?F[1]:0,C.animate(w,j,H.easing).animate(A,j,H.easing,function(){G&&e.hide(),b.effects.restore(e,y),b.effects.removeWrapper(e),q()})}})(jQuery);(function(b,a){b.effects.effect.highlight=function(d,h){var f=b(this),c=["backgroundImage","backgroundColor","opacity"],e=b.effects.setMode(f,d.mode||"show"),g={backgroundColor:f.css("backgroundColor")};e==="hide"&&(g.opacity=0),b.effects.save(f,c),f.show().css({backgroundImage:"none",backgroundColor:d.color||"#ffff99"}).animate(g,{queue:!1,duration:d.duration,easing:d.easing,complete:function(){e==="hide"&&f.hide(),b.effects.restore(f,c),h()}})}})(jQuery);(function(b,a){b.effects.effect.pulsate=function(z,j){var d=b(this),m=b.effects.setMode(d,z.mode||"show"),A=m==="show",g=m==="hide",y=A||m==="hide",x=(z.times||5)*2+(y?1:0),v=z.duration/x,k=0,w=d.queue(),q=w.length,e;if(A||!d.is(":visible")){d.css("opacity",0).show(),k=1}for(e=1;e1&&w.splice.apply(w,[1,0].concat(w.splice(q,x+1))),d.dequeue()}})(jQuery);(function(b,a){b.effects.effect.puff=function(f,k){var h=b(this),e=b.effects.setMode(h,f.mode||"hide"),g=e==="hide",j=parseInt(f.percent,10)||150,d=j/100,c={height:h.height(),width:h.width()};b.extend(f,{effect:"scale",queue:!1,fade:!0,mode:e,complete:k,percent:g?j:100,from:g?c:{height:c.height*d,width:c.width*d}}),h.effect(f)},b.effects.effect.scale=function(p,e){var c=b(this),h=b.extend(!0,{},p),q=b.effects.setMode(c,p.mode||"effect"),d=parseInt(p.percent,10)||(parseInt(p.percent,10)===0?0:q==="hide"?0:100),m=p.direction||"both",k=p.origin,j={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()},g={y:m!=="horizontal"?d/100:1,x:m!=="vertical"?d/100:1};h.effect="size",h.queue=!1,h.complete=e,q!=="effect"&&(h.origin=k||["middle","center"],h.restore=!0),h.from=p.from||(q==="show"?{height:0,width:0}:j),h.to={height:j.height*g.y,width:j.width*g.x,outerHeight:j.outerHeight*g.y,outerWidth:j.outerWidth*g.x},h.fade&&(q==="show"&&(h.from.opacity=0,h.to.opacity=1),q==="hide"&&(h.from.opacity=1,h.to.opacity=0)),c.effect(h)},b.effects.effect.size=function(q,B){var x,E,w,A=b(this),k=["position","top","bottom","left","right","width","height","overflow","opacity"],L=["position","top","bottom","left","right","overflow","opacity"],H=["width","height","overflow"],D=["fontSize"],J=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],F=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],z=b.effects.setMode(A,q.mode||"effect"),I=q.restore||z!=="effect",j=q.scale||"both",C=q.origin||["middle","center"],G=A.css("position"),e=I?k:L,K={height:0,width:0};z==="show"&&A.show(),x={height:A.height(),width:A.width(),outerHeight:A.outerHeight(),outerWidth:A.outerWidth()},q.mode==="toggle"&&z==="show"?(A.from=q.to||K,A.to=q.from||x):(A.from=q.from||(z==="show"?K:x),A.to=q.to||(z==="hide"?K:x)),w={from:{y:A.from.height/x.height,x:A.from.width/x.width},to:{y:A.to.height/x.height,x:A.to.width/x.width}};if(j==="box"||j==="both"){w.from.y!==w.to.y&&(e=e.concat(J),A.from=b.effects.setTransition(A,J,w.from.y,A.from),A.to=b.effects.setTransition(A,J,w.to.y,A.to)),w.from.x!==w.to.x&&(e=e.concat(F),A.from=b.effects.setTransition(A,F,w.from.x,A.from),A.to=b.effects.setTransition(A,F,w.to.x,A.to))}(j==="content"||j==="both")&&w.from.y!==w.to.y&&(e=e.concat(D).concat(H),A.from=b.effects.setTransition(A,D,w.from.y,A.from),A.to=b.effects.setTransition(A,D,w.to.y,A.to)),b.effects.save(A,e),A.show(),b.effects.createWrapper(A),A.css("overflow","hidden").css(A.from),C&&(E=b.effects.getBaseline(C,x),A.from.top=(x.outerHeight-A.outerHeight())*E.y,A.from.left=(x.outerWidth-A.outerWidth())*E.x,A.to.top=(x.outerHeight-A.to.outerHeight)*E.y,A.to.left=(x.outerWidth-A.to.outerWidth)*E.x),A.css(A.from);if(j==="content"||j==="both"){J=J.concat(["marginTop","marginBottom"]).concat(D),F=F.concat(["marginLeft","marginRight"]),H=k.concat(J).concat(F),A.find("*[width]").each(function(){var d=b(this),c={height:d.height(),width:d.width()};I&&b.effects.save(d,H),d.from={height:c.height*w.from.y,width:c.width*w.from.x},d.to={height:c.height*w.to.y,width:c.width*w.to.x},w.from.y!==w.to.y&&(d.from=b.effects.setTransition(d,J,w.from.y,d.from),d.to=b.effects.setTransition(d,J,w.to.y,d.to)),w.from.x!==w.to.x&&(d.from=b.effects.setTransition(d,F,w.from.x,d.from),d.to=b.effects.setTransition(d,F,w.to.x,d.to)),d.css(d.from),d.animate(d.to,q.duration,q.easing,function(){I&&b.effects.restore(d,H)})})}A.animate(A.to,{queue:!1,duration:q.duration,easing:q.easing,complete:function(){A.to.opacity===0&&A.css("opacity",A.from.opacity),z==="hide"&&A.hide(),b.effects.restore(A,e),I||(G==="static"?A.css({position:"relative",top:A.to.top,left:A.to.left}):b.each(["top","left"],function(d,c){A.css(c,function(g,l){var h=parseInt(l,10),f=d?A.to.left:A.to.top;return l==="auto"?f+"px":h+f+"px"})})),b.effects.removeWrapper(A),B()}})}})(jQuery);(function(b,a){b.effects.effect.shake=function(q,B){var x=b(this),E=["position","top","bottom","left","right","height","width"],w=b.effects.setMode(x,q.mode||"effect"),A=q.direction||"left",k=q.distance||20,K=q.times||3,H=K*2+1,D=Math.round(q.duration/H),J=A==="up"||A==="down"?"top":"left",F=A==="up"||A==="left",z={},I={},j={},C,G=x.queue(),e=G.length;b.effects.save(x,E),x.show(),b.effects.createWrapper(x),z[J]=(F?"-=":"+=")+k,I[J]=(F?"+=":"-=")+k*2,j[J]=(F?"-=":"+=")+k*2,x.animate(z,D,q.easing);for(C=1;C1&&G.splice.apply(G,[1,0].concat(G.splice(e,H+1))),x.dequeue()}})(jQuery);(function(b,a){b.effects.effect.slide=function(v,g){var d=b(this),j=["position","top","bottom","left","right","width","height"],w=b.effects.setMode(d,v.mode||"show"),e=w==="show",q=v.direction||"left",p=q==="up"||q==="down"?"top":"left",k=q==="up"||q==="left",h,m={};b.effects.save(d,j),d.show(),h=v.distance||d[p==="top"?"outerHeight":"outerWidth"](!0),b.effects.createWrapper(d).css({overflow:"hidden"}),e&&d.css(p,k?isNaN(h)?"-"+h:-h:h),m[p]=(e?k?"+=":"-=":k?"-=":"+=")+h,d.animate(m,{queue:!1,duration:v.duration,easing:v.easing,complete:function(){w==="hide"&&d.hide(),b.effects.restore(d,j),b.effects.removeWrapper(d),g()}})}})(jQuery);(function(b,a){b.effects.effect.transfer=function(x,g){var d=b(this),k=b(x.to),y=k.css("position")==="fixed",e=b("body"),w=y?e.scrollTop():0,v=y?e.scrollLeft():0,p=k.offset(),j={top:p.top-w,left:p.left-v,height:k.innerHeight(),width:k.innerWidth()},q=d.offset(),m=b('
    ').appendTo(document.body).addClass(x.className).css({top:q.top-w,left:q.left-v,height:d.innerHeight(),width:d.innerWidth(),position:y?"fixed":"absolute"}).animate(j,x.duration,x.easing,function(){m.remove(),g()})}})(jQuery); (function(a,b){a.fn.originGlobal=function(e,g){var f={xhr:"",modalLoading:false,modAlertVar:a(".mod.alert-message").attr("id"),modInfoVar:a(".mod.info-message").attr("id"),modMessageVar:a(".mod.image-message").attr("id"),modCustomVar:a(".mod.custom-message").attr("id"),cartHasAgeRestrictedItems:true,sliding:false,retry_product_id:"",locale:a("body").data("locale"),hideTimeout:false,currentOpenGameTile:false};var d={init:function(){a.extend(e,f);d.events.checkForBrowseUrls();a("body.modal-open").live("mousewheel",function(l){if(!a(this).hasClass("page-overflow")){l.preventDefault();return false}});if(a.mobile.support.touch&&!a("body").hasClass("origin-client")){a("body").addClass("touch")}window.cartDisabled=false;a("li.account-links a, div.error-box a.cart-account-error").on("click",function(l){if(a("li.origin-login a").is(":visible")){l.preventDefault();a.cookie("origin-store-account-reload",a(this).attr("href"),{path:"/",domain:".origin.com"});d.events.auth(l,752,407,a("li.origin-login a"))}});if(a.cookie("origin-store-account-reload")!=null&&a("li.origin-login a").is(":hidden")){var k=a.cookie("origin-store-account-reload");a.cookie("origin-store-account-reload",null,{path:"/",domain:".origin.com"});window.location.href=k}if(a.cookie("mainCheckoutButton")==="checkout"){a.cookie("mainCheckoutButton","nocheckout",{path:"/",domain:".origin.com"});setTimeout(function(){if(a.cookie("mainCheckoutButton")==="nocheckout"&&location.href.indexOf("auto-login=true")==-1){if(window.location.href.indexOf("?")>0){location.href=window.location.href+"&auto-login=true"}else{location.href=window.location.href+"?auto-login=true"}}},200)}a(".add-to-cart").bind("click",d.events.addToCartBtn);a(".btn-disabled").live("click",d.events.disableBtn);if(a.browser.msie){d.events.placeholderFixIE()}a(".carousel-control.left").bind("click",d.events.carouselPrev);a(".carousel-control.right").bind("click",d.events.carouselNext);if(a("body").hasClass("touch")){a(".carousel").swiperight(function(){a(this).carousel("prev")});a(".carousel").swipeleft(function(){a(this).carousel("next")})}a("a.details").live("click",d.events.modalAjax960);a("a.browser-game").live("click",d.events.modalAjax533);a(".feedback-button").on("click",function(l){l.preventDefault();d.helpers.clearFeedbackForm();a(".feedback-report").modal({width:"533px"})}).css("right",((a(".feedback-button").outerHeight()/2)-(a(".feedback-button").outerWidth()/2))+"px");a(".question-rating-number").on("click",function(l){l.preventDefault();a(this).parent().parent().find(".feedback-required").hide();if(a(this).find(".question-rating-bubble").hasClass("question-rating-bubble-selected")){a(this).find(".question-rating-bubble").removeClass("question-rating-bubble-selected")}else{a(this).parent().find(".question-rating-bubble-selected").removeClass("question-rating-bubble-selected");a(this).find(".question-rating-bubble").addClass("question-rating-bubble-selected")}});a(".btn-feedback-select").on("click",function(l){l.preventDefault();a(".btn-feedback-selected").removeClass("btn-feedback-selected");a(this).addClass("btn-feedback-selected");a(".feedback-form").hide();a(".feedback-form:nth-child("+(a(this).index()+1)+")").show()});a(".btn-submit-feedback").on("click",function(o){o.preventDefault();var n="",l=false;a(".feedback-question:visible").each(function(){var p=a(this).find(".question").text(),q;if(a(this).hasClass("radio-question")){q=a(this).find(".question-rating-bubble-selected").text()}if(a(this).hasClass("text-question")){q=a(this).find(".feedback-textarea").val()}if(a(this).hasClass("select-question")){q=a(this).find(".report-selector").val()}if(q!==""){n=n.concat(p+": "+q+"\n\n")}});if(n===""){l=true}if(!l){var m={type:a(".btn-feedback-select.btn-feedback-selected").text(),subject:a(".feedback-report h3").text(),message:n};a.ajax({url:"//"+location.hostname+"/"+a("body").data("locale")+"/store/v1/feedback-report",type:"POST",data:m,success:function(p){}}).fail(function(){});a(".feedback-report").modal("hide")}});a("a.get-it-now, a.play-demo, a.get-it-browse").live("click",function(l){l.preventDefault();if(!a(this).hasClass("is-dlc")){if(typeof storeHelper!="undefined"||a.cookie(_lchannel)=="z"){window.location=a(this).data("entitlement-url")}else{a.cookie("origin-store-demo-url_entitlement",a(this).data("entitlement-url"),{expires:1,path:"/",domain:".origin.com"});a("li.origin-login a").click()}}else{if(a(this).hasClass("quickview-cta-btn")){a("body").append(a("#myModal .oth-dlc-warning-modal"));a("#myModal").modal("hide");a("body > .oth-dlc-warning-modal").modal({width:"638px"});a(".oth-dlc-warning-modal").on("hidden",function(){a(this).remove()})}else{a(this).parent().find(".oth-dlc-warning-modal").modal({width:"638px"})}}});if(a.cookie("origin-store-demo-url_entitlement")!=null&&a.cookie("origin-store-demo-url_entitlement")!=""&&a.cookie(_lchannel)=="z"){var j=a.cookie("origin-store-demo-url_entitlement");a.cookie("origin-store-demo-url_entitlement","",{expires:-1,path:"/",domain:".origin.com"});window.location=j}else{a.cookie("origin-store-demo-url_entitlement","",{expires:-1,path:"/",domain:".origin.com"})}if(a.cookie("e-status")=="success"&&typeof storeHelper=="undefined"){var i=a.cookie("e-productId");var h=a.cookie("e-token");if(location.href.indexOf("/buy/")==-1){a.cookie("e-utag-productId",i,{path:"/",domain:".origin.com"})}a.cookie("e-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-productId","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-token","",{expires:-1,path:"/",domain:".origin.com"});a(".need-origin").modal({width:"533px"})}if(a.cookie("e-status")=="success"&&typeof storeHelper!="undefined"){var i=a.cookie("e-productId");if(location.href.indexOf("/buy/")==-1){a.cookie("e-utag-productId",i,{path:"/",domain:".origin.com"})}a.cookie("e-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-productId","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-token","",{expires:-1,path:"/",domain:".origin.com"});storeHelper.showGames();storeHelper.refreshEntitlements()}if(a.cookie("e-status")=="ora"){a.cookie("e-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-productId","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-token","",{expires:-1,path:"/",domain:".origin.com"});a("#demoError p.ageError").addClass("showError");a("#demoError").modal({width:"450px"})}if(a.cookie("e-status")=="error"){a.cookie("e-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-productId","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-token","",{expires:-1,path:"/",domain:".origin.com"});a("#demoError p.generalError").addClass("showError");a("#demoError").modal({width:"450px"})}if(a.cookie("e-status")=="accessor"){a.cookie("e-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-productId","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("e-token","",{expires:-1,path:"/",domain:".origin.com"});a("#demoError p.accessorError").addClass("showError");a("#demoError h3").addClass("hide");a("#demoError h3.accessorError").removeClass("hide");a("#demoError").modal({width:"450px"})}if(a.cookie("p-status")=="pdp-redirect"){url=location.href;pdpUrl=a.cookie("p-url");urlFixed=url.replace("-ANW.html","").replace("-OCL.html","").replace("-ACL.html","").replace("-ONW.html","");pdpUrlFixed=pdpUrl.replace("-ANW.html","").replace("-OCL.html","").replace("-ACL.html","").replace("-ONW.html","");inUrl=(urlFixed.indexOf(pdpUrlFixed)>=0);lengthMatches=(urlFixed.indexOf(pdpUrlFixed)+pdpUrlFixed.length==urlFixed.length);if(inUrl&&lengthMatches){a("#pdpError p.redirectError").addClass("showError");a("#pdpError h3.redirectError").removeClass("hide");a("#pdpError").modal({width:"470px"})}a.cookie("p-status","",{expires:-1,path:"/",domain:".origin.com"});a.cookie("p-url","",{expires:-1,path:"/",domain:".origin.com"})}a(".packart .extra").live("mouseenter",d.events.gameTileMouseEnter);a(".packart .extra").live("mouseleave",d.events.gameTileMouseLeave);a(".fom-offer.packart").live("mouseenter",d.events.gameTileMouseEnter);a(".fom-offer.packart").live("mouseleave",d.events.gameTileMouseLeave);a("div.list-view-item a.get-it-now, div.list-view-item a.get-it-browse, div.list-view-item a.browser-game").live("mouseenter",d.helpers.showListDemoCard);a("div.list-view-item").live("mouseleave",d.helpers.hideListDemoCard);a(".dropdownBtn > li > a").bind("click",d.events.dropdownBtnClick);a(".dropdownBtn").bind("mouseleave",d.events.dropdownBtnMouseleave);a(window).click(function(l){d.events.openModalClick(l)});a(".quick-view").live("click",d.events.quickviewBtnClick);d.events.noRobotForClient();a(".mod-close").bind("click",d.events.modCloseBtn);a(".mod-alert-close").bind("click",d.events.modAlertCloseBtn);if(f.modAlertVar!=b&&a.cookie(f.modAlertVar)==null&&d.helpers.checkUserStatus(f.modAlertVar)){a("#"+f.modAlertVar).show()}else{if(f.modInfoVar!=b&&a.cookie(f.modInfoVar)==null&&d.helpers.checkUserStatus(f.modInfoVar)){a("#"+f.modInfoVar).show()}else{if(f.modMessageVar!=b&&a.cookie(f.modMessageVar)==null&&d.helpers.checkUserStatus(f.modMessageVar)){a("#"+f.modMessageVar).show()}else{if(f.modCustomVar!=b&&a.cookie(f.modCustomVar)==null&&d.helpers.checkUserStatus(f.modCustomVar)){a("#"+f.modCustomVar).show()}}}}a("#cart-warning a.btn-warning").click(function(m){m.preventDefault();var l=a(this).attr("data-url");a("#cart-warning").modal("hide");if(a(this).hasClass("btn-disabled")==false){a(this).addClass("btn-disabled");if(a(this).attr("target")=="minicart"){a(".cart-dropdown iframe").attr("src",l)}else{window.location=l}}});a(".pdp-legal a, .legalText a").bind("click",d.events.legalLinkClick);d.helpers.configureFeaturedCarousel();a("#featuredCarousel .carousel-control").on("click",d.events.featuredCarouselLeft);a("div.fcp > span.carousel-pills > span").on("mouseover",d.events.cycleFeaturedTitles);a("div.fcp > span.carousel-pills > span").on("mouseout",d.events.resetFeaturedTitle);a("#featuredCarousel").on("slid",d.events.resetFeaturedTitle);a("div.fcp > span.carousel-pills > span").on("click",function(){f.sliding=true;setTimeout(function(){f.sliding=false},1000)});a("a.vat").bind("click",d.events.vatWindow);if(typeof storeHelper!=="undefined"){a(document).live("click",function(l){if(l.which===2){l.preventDefault()}})}a("a.external-link, div.error-box a:not(.cart-account-error)").live("click",d.events.externalLink);a("body.origin-client a.external-client-link").live("click",d.events.externalClientLink);a(".footer-wrapper .site-map .topLevel:not(:last-child) li:not(.truste-cookie-preference) a").bind("click",d.events.footerLink);a("div.origin-ux-select select").live("focus",d.events.selectFocus);a("div.origin-ux-select select").live("blur",d.events.selectBlur);a("div.origin-ux-select select").on("change",function(){a(this).blur()});if(a(".ytplayer").length>0){d.events.youTubeAgeGate()}a("a.nisClose").live("click",d.events.closeNotInStock);d.events.countdownTimers();a("li.origin-login a").bind("click",function(l){a.cookie("origin-store-account-reload",null,{path:"/",domain:".origin.com"});d.events.auth(l,752,407,a(this))});a("li.origin-logout a").bind("click",function(l){a.cookie("origin-store-account-reload",null,{path:"/",domain:".origin.com"});d.events.auth(l,100,100,a(this))});a("li.origin-register a").bind("click",function(l){a.cookie("origin-store-account-reload",null,{path:"/",domain:".origin.com"});d.events.auth(l,1082,727,a(this))});if(navigator.userAgent.indexOf("Mac OS X")!=-1){d.helpers.updateDownloadLink(a("div.need-origin.modal a.btn-download"))}a("a.viewAll").on("click",function(n){n.preventDefault();if(typeof(Storage)!=="undefined"){sessionStorage.removeItem("resultsCache");sessionStorage.removeItem("offsetCache");var m=a(this).data("sort");var l=a(this).data("dir");if(m=="releaseDate"){sessionStorage.setItem("sortCache","releaseDate")}else{if(m=="dynamicPrice"&&l=="desc"){sessionStorage.setItem("sortCache","priceHighToLow")}else{if(m=="dynamicPrice"&&l=="asc"){sessionStorage.setItem("sortCache","priceLowToHigh")}else{if(m=="title"&&l=="asc"){sessionStorage.setItem("sortCache","alphaAToZ")}else{if(m=="title"&&l=="desc"){sessionStorage.setItem("sortCache","alphaZToA")}else{sessionStorage.setItem("sortCache","rank")}}}}}}window.location=a(this).attr("href")});a(".qv-collapsable-area-show").live("click",d.events.toggleCtaArea);if(!a.cookie("notice_preferences")){a("#truste-banner").show()}else{d.events.trusteFooterLinkShow()}a("#truste-banner .text > a, .footer-wrapper .truste-cookie-preference a").on("click",d.events.trusteConsentClick);a("#truste-banner .close").on("click",d.events.trusteClose)},events:{toggleCtaArea:function(h){h.preventDefault();a(this).toggleClass("qv-area-toggled").next(".qv-collapsable-area").stop().slideToggle()},gameTileMouseEnter:function(h){h.stopPropagation();f.currentOpenGameTile=a(this);d.helpers.setQuickView(f.currentOpenGameTile,true);f.currentOpenGameTile.find(".get-it-now, .browser-game").on("mouseenter",d.events.gameTileButtonMouseEnter)},gameTileButtonMouseEnter:function(h){var i;h.stopPropagation();a(h.currentTarget).off("mouseenter");if(f.currentOpenGameTile!==false){i=f.currentOpenGameTile.find(".demo-game-card");if(i.length!==0){d.helpers.showGameCard(i)}}},gameTileMouseLeave:function(h){var i;h.stopPropagation();if(f.currentOpenGameTile!==false){i=f.currentOpenGameTile.find(".demo-game-card");d.helpers.hideGameCard(i);f.currentOpenGameTile.find(".get-it-now, .browser-game").off("mouseenter");d.helpers.setQuickView(f.currentOpenGameTile,false);f.currentOpenGameTile=false}},checkForBrowseUrls:function(){if(a.cookie("origin-view")=="list"){a("a").each(function(){if(typeof a(this).attr("href")!="undefined"&&a(this).attr("href").indexOf("/store/browse")!=-1&&a(this).attr("href").indexOf("v=list")==-1&&a(this).hasClass("gridview")==false){if(a(this).attr("href").indexOf("?")==-1){a(this).attr("href",a(this).attr("href")+"?v=list")}else{a(this).attr("href",a(this).attr("href")+"&v=list")}}})}},auth:function(n,i,k,m){n.preventDefault();var j=m.attr("href");var o=j.indexOf("ru%3D");var l=j.slice(0,o)+"lpu=true%26"+j.slice(o);if(m.parent().hasClass("origin-register")==true){l=l+"#panel-splash"}if(window.isMobile){l=l.replace("lpu=true%26","");window.location.href=l}else{authLogin=window.open(l,"","top=100,width="+i+",height="+k+",location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=no,toolbar=no",false);authLogin.focus()}},closeNotInStock:function(){a("div.nisPopup").hide()},youTubeAgeGate:function(i){var h;if(typeof a(".ageGate").data("restricted")!=="undefined"){minAge=a(".ageGate").data("restricted")}else{minAge=18}if(minAge>0){if(!a(".ytplayer").parent().parent().hasClass("no-agegate")){a(".ytplayer").ageGate(minAge,true)}}},selectFocus:function(){a(this).parent().css("background-position","right -70px")},selectBlur:function(){a(this).parent().css("background-position","right 0")},externalLink:function(h){h.preventDefault();if(a("body").hasClass("origin-client")&&a(this).attr("href").indexOf("http")!=-1){window.commonHelper.launchExternalBrowser(a(this).attr("href"))}else{if(a("body").hasClass("origin-client")){window.commonHelper.launchExternalBrowser(window.location.protocol+"//"+document.domain+a(this).attr("href"))}else{window.open(a(this).attr("href"))}}},externalClientLink:function(h){h.preventDefault();if(a(this).attr("href").indexOf("http")!=-1||a(this).attr("href").indexOf("https")!=-1){window.commonHelper.launchExternalBrowser(a(this).attr("href"))}else{window.commonHelper.launchExternalBrowser(window.location.protocol+"//"+document.domain+a(this).attr("href"))}},footerLink:function(j){var h=a(this).attr("href");if(a("body").hasClass("origin-client")){j.preventDefault();window.commonHelper.launchExternalBrowser(h)}else{if(j.which!=2){j.preventDefault();var i=d.helpers.isInternal(h);if(i==false){window.open(h)}else{window.open(h,"_self")}}}},vatWindow:function(i){i.preventDefault();a("body").append('');a("body").modalmanager("loading");var h=a(this).attr("href");setTimeout(function(){a("#vatModal").load(h+" #vat",function(){a("#vatModal").modal({width:"665px"});a("#vatModal").trigger("modalLoaded")})},500)},featuredCarouselLeft:function(){var h=a("#featuredCarousel").find("span.active-pill").index()+1;var i=a("#featuredCarousel").find("div.item:nth-child("+h+") h2").text();a("#featuredCarousel").find("p.featured-deal").text(i)},resetFeaturedTitle:function(){if(f.sliding==false){var h=a("#featuredCarousel").find("div.item.active h2").text();a("#featuredCarousel").find("p.featured-deal").text(h)}},cycleFeaturedTitles:function(){var h=a(this).index()+1;var i=a("#featuredCarousel").find("div.item:nth-child("+h+") h2").text();a("#featuredCarousel").find("p.featured-deal").text(i)},legalLinkClick:function(i){if(typeof storeHelper!="undefined"){i.preventDefault();var h=a(this).attr("href");if(h.charAt(0)=="/"){h=window.location.protocol+"//"+window.location.host+h}storeHelper.launchExternalBrowser(h);return false}a(this).attr("target","_blank")},modCloseBtn:function(h){h.preventDefault();if(a(this).parent().parent().parent().hasClass("alert-message")){a.cookie(f.modAlertVar,"hide",{expires:14,path:"/",domain:".origin.com"})}if(a(this).parent().parent().parent().hasClass("info-message")){a.cookie(f.modInfoVar,"hide",{expires:14,path:"/",domain:".origin.com"})}if(a(this).parent().parent().parent().hasClass("image-message")){a.cookie(f.modMessageVar,"hide",{expires:14,path:"/",domain:".origin.com"})}if(a(this).parent().parent().parent().hasClass("custom-message")){a.cookie(f.modCustomVar,"hide",{expires:14,path:"/",domain:".origin.com"})}a(".mod").slideUp(function(){a(".mod").remove()})},modAlertCloseBtn:function(h){h.preventDefault();a(".mod-alert").slideUp(function(){a(".mod-alert").remove()})},openModalClick:function(i){if(f.modalLoading===true){var h=a("#myModal");if(h.has(i.target).length===0){f.xhr.abort();f.modalLoading=false}}},addToCartBtn:function(j){j.stopPropagation();j.preventDefault();var i=a(this);var h=i.attr("data-minicart-link");clearTimeout(window.cartTimerHandle);a(".cart-dropdown iframe").contents().find(".minicart-trash").hide();d.helpers.unbindAddButton(i,h);setTimeout(function(){d.helpers.rebindAddButton(i)},3000)},disableBtn:function(h){h.preventDefault()},placeholderFixIE:function(){a("[placeholder]").bind("focus",function(){var h=a(this);if(h.val()==h.attr("placeholder")){h.val("");h.removeClass("placeholder")}}).bind("blur",function(){var h=a(this);if(h.val()==""||h.val()==h.attr("placeholder")){h.addClass("placeholder");h.val(h.attr("placeholder"))}}).blur()},carouselPrev:function(h){h.preventDefault();a(this).parent().carousel("prev")},carouselNext:function(h){h.preventDefault();a(this).parent().carousel("next")},quickviewBtnClick:function(i){i.preventDefault();var h=850;if(a(this).hasClass("btn-disabled")!=true){$url=a(this).attr("data-quickview");d.helpers.quickview($url,"850px")}},modalAjax533:function(h){href=a(this).attr("href");if(typeof storeHelper!="undefined"){storeHelper.launchExternalBrowser(href);return false}a(this).attr("target","_blank");return true},modalAjax960:function(j){j.preventDefault();var i=a(this);var h=960;$url=i.attr("data-dealsview");i.toggleClass("btn-disabled details");d.helpers.quickview($url,"960px");setTimeout(function(){i.toggleClass("btn-disabled details")},2000)},dropdownBtnClick:function(h){h.preventDefault();a(this).next("ul").toggle()},dropdownBtnMouseleave:function(){a(this).find("ul").hide()},noRobotForClient:function(){if(a("body.origin-client").length){a("head").append('')}},cartCheckoutClick:function(h){a(this).off("click",d.events.cartCheckoutClick);a(location).attr("href",a(".subtotal a.checkout").attr("href"))},countdownTimers:function(){var h=0;a(".countdown-timer.active:visible").each(function(){var n=d.helpers.getCurrentUTCTimestamp();var m=Math.floor(a(this).data("target")-n);var l,i,k;var j=a(this).data("component")==="text-image-stripe";if(m>0){h++;time=d.helpers.getTimeNumbers(m);a(this).find(".days").html(time.d);a(this).find(".hours").html(time.h);a(this).find(".minutes").html(time.m);a(this).find(".seconds").html(time.s);if(j&&a(this).data("initialized")!=="true"){a(this).data("initialized","true");i=a(this).parents(".text-image-stripe");i.find(".text-image-stripe-link").removeAttr("href")}}else{l=a(this).data("elapsed");if(typeof l!=="undefined"&&l.length>0&&!j){if(a(this).parent().parent().parent().hasClass("mod")){a(this).html("").siblings("p.title").html(l)}else{a(this).html("

    "+l+"

    ")}}else{a(this).find(".days").html("00");a(this).find(".hours").html("00");a(this).find(".minutes").html("00");a(this).find(".seconds").html("00")}if(a(this).data("subtitle-type")=="change"){a(this).parent().find(".cta h4").html(a(this).data("new-subtitle"));a(this).parent().parent().find("p.subtitle").html(a(this).data("new-subtitle"));if(a.contains(a(this),a("#heroic-carousel"))||a.contains(a(this),a("#merchCarousel"))){a(this).siblings("h1").html(a(this).data("new-subtitle"))}}else{if(a(this).data("subtitle-type")=="none"){a(this).parent().find(".cta h4").empty();a(this).parent().parent().find("p.subtitle").remove();if(a.contains(a(this),a("#heroic-carousel"))||a.contains(a(this),a("#merchCarousel"))){a(this).siblings("h1").empty()}}else{if(j){i=a(this).parents(".text-image-stripe");k=i.find(".text-image-stripe-link");i.find(".text-image-stripe-title").html(a(this).data("new-title"));i.find(".text-image-stripe-subtitle").html(a(this).data("new-subtitle"));k.attr("href",a(this).data("url").length>0?a(this).data("url"):location.href);a(this).hide()}}}if(typeof carouselId!="undefined"){if(a(this).parents(".carousel").prop("id")==carouselId){a("#"+carouselId).removeClass("no-controls");a("#"+carouselId).carousel({pause:"hover",interval:carouselInterval,pills:carouselPills})}}if(a(this).parents(".mod").length&&a(this).data("elapsed").length){a(this).parent().find(".title").css("max-width","500px");a(this).remove()}a(this).removeClass("active")}});if(h>0){setTimeout(d.events.countdownTimers,1000)}},trusteConsentClick:function(h){h.preventDefault();if(truste&&truste.eu&&truste.eu.clickListener){truste.eu.clickListener()}d.events.trusteClose()},trusteClose:function(){a("#truste-banner").remove();d.events.trusteFooterLinkShow()},trusteFooterLinkShow:function(){a(".footer-wrapper .truste-cookie-preference").show()}},helpers:{checkUserStatus:function(h){if(a.cookie("o_oa")=="true"&&a("#"+h).hasClass("non-subscriber")){return false}else{if(a.cookie("o_oa")=="true"&&a("#"+h).hasClass("subscriber")){return true}else{if(a.cookie("o_oa")!="true"&&a("#"+h).hasClass("non-subscriber")){return true}else{if(a.cookie("o_oa")!="true"&&a("#"+h).hasClass("subscriber")){return false}else{return true}}}}},clearFeedbackForm:function(){a(".question-rating-bubble").removeClass("question-rating-bubble-selected");a(".feedback-required").addClass("hide");a("input:checked").prop("checked",false);a(".feedback-textarea").val("");a(".report-selector").val("");a(".report-input").val("");a(".report-textarea").val("");a(".btn-feedback-select").removeClass("btn-feedback-selected");a(".btn-feedback-select:first").click()},updateDownloadLink:function(h){if(navigator.userAgent.match(/Mac OS X 10[.|_]6/g)!=null){h.attr("href","http://www.dm.origin.com/mac/legacy/download")}else{h.attr("href","http://www.dm.origin.com/mac/download")}},setQuickView:function(h,i){i=i==true?"show":"hide";h.find(".quick-view")[i]();h.find(".xpac")[i]();h.find(".get-it-now")[i]();h.find(".browser-game")[i]();h.find(".blackBoxLarge")[i]();h.find(".blackBoxSmall")[i]()},getTimeNumbers:function(h){t=new Object();t.d=d.helpers.numPadding(Math.floor(h/86400));h%=86400;t.h=d.helpers.numPadding(Math.floor(h/3600));h%=3600;t.m=d.helpers.numPadding(Math.floor(h/60));h%=60;t.s=d.helpers.numPadding(h);return t},numPadding:function(h){if(h<10){return"0"+h}return h},getCurrentUTCTimestamp:function(){now=new Date;UTCTimestamp=Date.UTC(now.getUTCFullYear(),now.getUTCMonth(),now.getUTCDate(),now.getUTCHours(),now.getUTCMinutes(),now.getUTCSeconds(),now.getUTCMilliseconds());return Math.floor(UTCTimestamp/1000)},showListDemoCard:function(){var i=a(this).closest(".cta-wrapper").find("div.demo-game-card");var h=a(i).children().not("h3, hr, div.arrow, div.terms-modal");if(h.length!=0){a(i).show()}else{return}},hideListDemoCard:function(){a(this).find("div.demo-game-card").hide()},showGameCard:function(h){var i=h.closest(".packart").position();var j=h.children().not("h3, hr, div.arrow, div.terms-modal").length===0;if(j&&h===false){return false}i.left<300?h.addClass("demo-card-right"):h.addClass("demo-card-left");h.show();return h},hideGameCard:function(h){h.hide();return h},isInternal:function(h){if(h.indexOf(window.location.hostname)>=0){return true}if(h.substring(0,1)=="/"){return true}return false},configureFeaturedCarousel:function(){var j=a("#featuredCarousel"),i=a(j).find("span.carousel-pills"),k=a("#featuredCarousel").find(".carousel-control");if(i.children().length!=0){d.helpers.featuredCarouselControls(i,j)}else{var h=[a(i),a(k)[0],a(k)[1]];a(h).each(function(){a(this).remove()})}},featuredCarouselControls:function(i,j){var h=a("#featuredCarousel").find("div.active h2").text();a(j).append('
    ");a(j).find("div.fcp").append(i)},quickview:function(i,h){a("body").modalmanager("loading");setTimeout(function(){f.modalLoading=true;f.xhr=a.ajax({url:i,headers:{"skip-client-check":"true"},success:function(j){a("#myModal").html(j);a("#myModal").modal({width:h});f.modalLoading=false;a("#myModal").trigger("modalLoaded")}}).fail(function(){a("body").modalmanager("loading")})},100)},unbindAddButton:function(i,h){i.removeClass("add-to-cart");i.unbind("click",d.events.addToCartBtn);i.bind("click",d.events.disableBtn);i.addClass("btn-disabled");window.cartLoaded=true;window.persistCart=true;a(".pud").modal("hide");a("html, body").animate({scrollTop:0},"slow");a(".header-cart").addClass("hover");a(".cart-dropdown").slideDown();a(".cart-dropdown iframe").attr("src",h)},rebindAddButton:function(h){h.addClass("add-to-cart");h.bind("click",d.events.addToCartBtn);h.unbind("click",d.events.disableBtn);h.removeClass("btn-disabled")}}};var c=["init"];if(typeof e==="object"||!e){d.init()}else{if(a.inArray(e,c)){}}}})(jQuery);$(document).ready(function(){$.fn.originGlobal({})}); (function(a,b){a.fn.originHeader=function(e,g){var f={searching:false,searchValue:"",typeahead:"",shr:function(){},locale:a("body").data("locale"),appkey:a("body").data("appkey"),menu:a("ul.nav > li.dropdown > ul.dropdown-menu"),typeDefault:a(".searchFlyout").html(),persistCart:""};var d={init:function(){a.extend(f,e);d.events.headerFlyoutHeight();a(".flyout").each(function(){d.events.headerFlyoutWidth(a(this))});a(document).click(function(h){d.events.offClickMinicart(h)});window.cartLoaded=false;if(typeof window.cartDisabled=="undefined"||window.cartDisabled!=true){a(".header-cart").bind({mouseenter:function(){if(window.cartLoaded==false){a(".cart-dropdown iframe").attr("src","/"+f.locale+"/store/minicart/get");window.cartLoaded=true}clearTimeout(window.cartTimerHandle);d.events.showCart()},mouseleave:function(){if(window.persistCart==true){window.cartTimerHandle=setTimeout(function(){window.persistCart=false;d.events.closeCart()},2500)}else{d.events.closeCart()}}})}a(".dropdown").mouseover(function(){clearTimeout(f.typeahead);if(f.searching==true){f.shr.abort();f.searching==false}d.helpers.hideTypeahead();d.events.closeCart()});a("#search-button").bind("click",d.events.submitSearch);a("#search-input").bind("keypress",function(h){if(h.which==13){if(a(".searchFlyout").is(":visible")&&a(".searchFlyout ul.games li").hasClass("active")){h.preventDefault();var i=a(".searchFlyout ul.games li.active a.game-link").attr("href");window.location=i}else{d.events.submitSearch(h)}}});d.helpers.resizeSearchElements();a(window).resize(function(){d.helpers.resizeSearchElements()});a("body").on("gus-done",function(){d.helpers.resizeSearchElements()});a("#search-input").bind("keyup",function(h){if(h.keyCode==38||h.keyCode==40||h.keyCode==13){d.helpers.arrowKeyPress(h)}else{f.searchValue=a("#search-input").val();clearTimeout(f.typeahead);if(f.searching==true){f.shr.abort();f.searching==false}if(f.searchValue.length>0){d.helpers.loadTypeahead();f.typeahead=setTimeout(function(){d.helpers.typeaheadSearch(f.searchValue)},200)}else{d.helpers.hideTypeahead()}}});a(".searchFlyout").on("mousemove",".searchFlyout ul li",d.helpers.mouseoverTypeAheadResults);a("#search-input").bind("click",d.events.clearPlaceholderFromSearchInput);a("#search-input").bind("blur",d.events.addPlaceholderToSearchInput);a(document.body).bind("click",function(i){var h=a(".navbar-form")[0];if(!a.contains(h,i.target)&&h!=i.target){d.helpers.hideTypeahead()}});d.helpers.cartCount();a(".cart-dropdown iframe").on("load",d.helpers.cartCount);f.menu.menuAim({activate:d.events.activateSubmenu,deactivate:d.events.deactivateSubmenu,exitMenu:d.events.exitMenu})},events:{exitMenu:function(){f.menu.find("li.dropdown-submenu a").removeClass("maintainHover");f.menu.find("li.dropdown-submenu ul.dropdown-menu").css("display","none");return true},activateSubmenu:function(h){a(h).children("ul.dropdown-menu").css("display","block");a(h).children("a").addClass("maintainHover")},deactivateSubmenu:function(h){a(h).children("ul.dropdown-menu").css("display","none");a(h).children("a").removeClass("maintainHover")},clearPlaceholderFromSearchInput:function(){a("#search-input").attr("placeholder","")},addPlaceholderToSearchInput:function(){a("#search-input").attr("placeholder",a("#search-input").attr("data-placeholder"))},offClickMinicart:function(i){var h=a(".header-cart");if(h.has(i.target).length===0){d.events.closeCart()}},headerFlyoutHeight:function(){var h=a("ul.nav li.dropdown ul.dropdown-menu").height();a(".flyout").css("min-height",h+"px")},headerFlyoutWidth:function(i){$this=i;var h=$this.find("ul").length;var j=h*183;$this.css("width",j+"px")},submitSearch:function(h){h.preventDefault();var j="/"+f.locale+"/store/browse";f.searchValue=a("#search-input").val();var i=a("#search-input").attr("data-placeholder");if(f.searchValue!=""&&f.searchValue!=i){if(window.location.search.indexOf("v=list")!=-1){window.location=j+"?q="+encodeURIComponent(f.searchValue)+"&v=list"}else{window.location=j+"?q="+encodeURIComponent(f.searchValue)}}else{window.location=j}},showCart:function(){clearTimeout(f.typeahead);if(f.searching==true){f.shr.abort();f.searching==false}d.helpers.hideTypeahead();a(".header-cart").addClass("hover");a(".cart-dropdown").stop(true,false).slideDown("fast",function(){a(".cart-dropdown").attr("style","display: block;")})},closeCart:function(){a(".cart-dropdown").stop(true,false).slideUp("fast",function(){a(".header-cart").removeClass("hover");a(".cart-dropdown").attr("style","display: none;")})},resizeSearch:function(h){a("#search-input").css("width",h+"px")},resizeSearchFlyout:function(h){a(".searchFlyout").css("width",h+"px")}},helpers:{resizeSearchElements:function(){var j=a(".header").width();var i=a("a.brand").width();var m=a("ul.nav").width();var l=a("ul.header-cart").width();var h=a(".btn-search").width();var n=120;var k=j-(i+m+l+h+n);window.searchFlyoutWidth=j-(i+m+l+h+14);d.events.resizeSearch(k);d.events.resizeSearchFlyout(searchFlyoutWidth)},loadTypeahead:function(){d.helpers.resizeSearchElements();if(a(".searchFlyout").is(":hidden")){a(".searchFlyout").html(f.typeDefault);a(".navbar-form").css("background","#777777");a(".searchFlyout:hidden").slideDown()}else{a(".searchFlyout").html(f.typeDefault)}},hideTypeahead:function(){a(".searchFlyout").stop(true,true).slideUp(function(){a(".navbar-form").css("background","none");a(".searchFlyout").attr("style","");a(".searchFlyout ul.games li").removeClass("active")})},typeaheadSearch:function(h){f.searching=true;var i=a(".navbar-form").attr("action")+"?q="+encodeURIComponent(h);var j=i.replace("browse","typeahead");f.shr=a.ajax({url:j,headers:{"skip-client-check":"true"},success:function(l){f.searching=false;var k=((a(l).find("ul.games li").length*84)+(a(l).find("ul.search li").length*26))-90;if(a(l).find("ul.games li.null").length==0){a("div.loading-typeahead p").hide();a("div.loading-typeahead").animate({height:"+="+k},"fast",function(){a(".searchFlyout").html(l);a(".searchFlyout ul").show()})}else{a(".searchFlyout").html(l);a(".searchFlyout ul").show()}}}).fail(function(){f.searching=false})},arrowKeyPress:function(h){if(h.keyCode==38&&a(".searchFlyout").is(":visible")){h.preventDefault();if(a(".searchFlyout ul.games li:first-child").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active");a(".searchFlyout ul.search li:last-child").addClass("active")}else{if(a(".searchFlyout ul.search li:nth-child(2)").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active");a(".searchFlyout ul.games li:last-child").addClass("active")}else{if(a(".searchFlyout ul li").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active").prev().addClass("active")}else{a(".searchFlyout ul.search li:last-child").addClass("active")}}}}if(h.keyCode==40&&a(".searchFlyout").is(":visible")){h.preventDefault();if(a(".searchFlyout ul.games li:last-child").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active");a(".searchFlyout ul.search li:nth-child(2)").addClass("active")}else{if(a(".searchFlyout ul.search li:last-child").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active");a(".searchFlyout ul.games li:first-child").addClass("active")}else{if(a(".searchFlyout ul li").hasClass("active")){a(".searchFlyout ul li.active").removeClass("active").next().addClass("active")}else{a(".searchFlyout ul.games li:first-child").addClass("active")}}}}},mouseoverTypeAheadResults:function(h){h.preventDefault();a(".searchFlyout ul li.active").removeClass("active");a(this).addClass("active")},cartCount:function(){var i=0;var h=" ";if(typeof(Storage)!=="undefined"){i=sessionStorage.cartCount}if(i>99){a("a.cart").addClass("fullCart");a("a.cart").removeClass("longCart");a("a.cart").removeClass("shortCart");h=i}else{if(i>=10&&i<=99){a("a.cart").addClass("longCart");a("a.cart").removeClass("shortCart");a("a.cart").removeClass("fullCart");h=i}else{if(i>0&&i<10){a("a.cart").addClass("shortCart");a("a.cart").removeClass("longCart");a("a.cart").removeClass("fullCart");h=i}else{a("a.cart").removeClass("shortCart longCart fullCart")}}}a("a.cart").text(h)}}};var c=["init","cartCount"];if(typeof e==="object"||!e){d.init()}else{if(a.inArray(e,c)){if(e=="cartCount"){d.helpers.cartCount()}}}}})(jQuery);$(document).ready(function(){$.fn.originHeader()}); (function(a,b){a.fn.originFooter=function(e,f){var d={init:function(){a.extend(e);var g="";if(a("body").hasClass("origin-client")){var g=a("div.footer-wrapper.client div.languageFlyout ul li").length}else{var g=a("div.footer-wrapper.web div.languageFlyout ul li").length}if(g<=9){a("div.languageFlyout").css("width","171px")}if(g>9&&g<=18){a("div.languageFlyout").css("width","342px")}if(g>18){a("div.languageFlyout").css("width","513px")}a("a.languageBtn").bind("click",d.events.languageClick);a("div.languageFlyout a").bind("click",d.events.languageFlyout);a("div.language").bind("mouseleave",d.events.languageMouseLeave);d.events.setlanguageBtn()},events:{setlanguageBtn:function(){var g=a("body").data("locale");a(".languageFlyout li").each(function(){if(a(this).children("a").attr("href").indexOf(g)>=0){a("a.languageBtn").text(a(this).children("a").text())}a(this).children("a").attr("href",a(this).children("a").attr("href")+window.location.search)})},closeLanguage:function(){a("div.languageFlyout").fadeOut()},languageClick:function(g){g.preventDefault();a(".languageFlyout").fadeToggle()},languageFlyout:function(){var g=a(this).attr("href");if(g.indexOf("/")>=0){var i=g.split("/");var h=i[3].substr(0,2);localStorage.setItem("selected-language",h);a.cookie("selected-language",h,{expires:99999,path:"/"});a.cookie("hl",h,{expires:99999,path:"/"})}d.events.closeLanguage()},languageMouseLeave:function(g){d.events.closeLanguage()}}};var c=["init"];if(typeof e==="object"||!e){d.init()}else{if(a.inArray(e,c)){}}}})(jQuery);$(document).ready(function(){$.fn.originFooter({})}); (function(a,b){a.fn.globalinfo=function(e,f){var d={init:function(){a.extend(e);d.events.highlightNav();d.events.correctLinkLength()},events:{highlightNav:function(){var g=a(location).attr("pathname").split("/");var h=g[2];a("li.left-nav-link").each(function(){if(a("a",this).attr("href").indexOf(h)>=0){a(this).addClass("selected")}})},correctLinkLength:function(){var h=a(location).attr("pathname").split("/");var g=a("body").data("locale");if(g=="ja-jp"){a("li.left-nav-link").each(function(){if(a("a",this).attr("href").indexOf("download")>=0){a("a",this).css("font-size","20px")}})}}}};var c=["init"];if(typeof e==="object"||!e){d.init()}else{if(a.inArray(e,c)){}}}})(jQuery);$(document).ready(function(){$.fn.globalinfo({})}); /*! * jQuery Cookie Plugin v1.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ (function(e,b){var a=/\+/g;function d(f){return f}function c(f){return decodeURIComponent(f.replace(a," "))}e.cookie=function(k,j,o){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(j))||j==null)){o=e.extend({},e.cookie.defaults,o);if(j==null){o.expires=-1}if(typeof o.expires==="number"){var l=o.expires,n=o.expires=new Date();n.setDate(n.getDate()+l)}j=String(j);return(b.cookie=[encodeURIComponent(k),"=",o.raw?j:encodeURIComponent(j),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join(""))}o=j||e.cookie.defaults||{};var f=o.raw?d:c;var m=b.cookie.split("; ");for(var h=0,g;(g=m[h]&&m[h].split("="));h++){if(f(g.shift())===k){return f(g.join("="))}}return null};e.cookie.defaults={}})(jQuery,document); !function(b){var a=function(d,c){this.init(d,c)};a.prototype={constructor:a,init:function(e,c){var f=this;this.options=c;this.$element=b(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",b.proxy(this.hide,this));this.options.remote&&this.$element.find(".modal-body").load(this.options.remote,function(){var g=b.Event("loaded");f.$element.trigger(g)});var d=typeof this.options.manager==="function"?this.options.manager.call(this):this.options.manager;d=d.appendModal?d:b(d).modalmanager().data("modalmanager");d.appendModal(this)},toggle:function(){return this[!this.isShown?"show":"hide"]()},show:function(){var c=b.Event("show");if(this.isShown){return}this.$element.trigger(c);if(c.isDefaultPrevented()){return}this.escape();this.tab();this.options.loading&&this.loading()},reset:function(){if(this.$element.prop("id")=="myModal"){this.$element.text("")}},hide:function(c){c&&c.preventDefault();c=b.Event("hide");this.$element.trigger(c);if(!this.isShown||c.isDefaultPrevented()){return(this.isShown=false)}this.isShown=false;this.escape();this.tab();this.reset();this.isLoading&&this.loading();b(document).off("focusin.modal");this.$element.removeClass("in").removeClass("animated").removeClass(this.options.attentionAnimation).removeClass("modal-overflow").attr("aria-hidden",true);b.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},layout:function(){var f=this.options.height?"height":"max-height",d=this.options.height||this.options.maxHeight;if(this.options.width){this.$element.css("width",this.options.width);var c=this;this.$element.css("margin-left",function(){if(/%/ig.test(c.options.width)){return -(parseInt(c.options.width)/2)+"%"}else{return -(b(this).outerWidth()/2)+"px"}})}else{this.$element.css("width","");this.$element.css("margin-left","")}this.$element.find(".modal-body").css("overflow","").css(f,"");if(d){this.$element.find(".modal-body").css("overflow","auto").css(f,d)}var e=b(window).height()-10b(this).data("tabindex")?d=b(this):f=b(this)}});d[0]!==b(this)[0]?d.focus():f.focus();g.preventDefault()}})}else{if(!this.isShown){this.$element.off("keydown.tabindex.modal")}}},escape:function(){var c=this;if(this.isShown&&this.options.keyboard){if(!this.$element.attr("tabindex")){this.$element.attr("tabindex",-1)}this.$element.on("keyup.dismiss.modal",function(d){d.which==27&&c.hide()})}else{if(!this.isShown){this.$element.off("keyup.dismiss.modal")}}},hideWithTransition:function(){var c=this,d=setTimeout(function(){c.$element.off(b.support.transition.end);c.hideModal()},500);this.$element.one(b.support.transition.end,function(){clearTimeout(d);c.hideModal()})},hideModal:function(){var d=this.options.height?"height":"max-height";var c=this.options.height||this.options.maxHeight;if(c){this.$element.find(".modal-body").css("overflow","").css(d,"")}this.$element.hide().trigger("hidden")},removeLoading:function(){this.$loading.remove();this.$loading=null;this.isLoading=false},loading:function(f){f=f||function(){};var d=this.$element.hasClass("fade")?"fade":"";if(!this.isLoading){var c=b.support.transition&&d;this.$loading=b('
    ').append(this.options.spinner).appendTo(this.$element);if(c){this.$loading[0].offsetWidth}this.$loading.addClass("in");this.isLoading=true;c?this.$loading.one(b.support.transition.end,f):f()}else{if(this.isLoading&&this.$loading){this.$loading.removeClass("in");var e=this;b.support.transition&&this.$element.hasClass("fade")?this.$loading.one(b.support.transition.end,function(){e.removeLoading()}):e.removeLoading()}else{if(f){f(this.isLoading)}}}},focus:function(){var c=this.$element.find(this.options.focusOn);c=c.length?c:this.$element;c.focus()},attention:function(){if(this.options.attentionAnimation){this.$element.removeClass("animated").removeClass(this.options.attentionAnimation);var c=this;setTimeout(function(){c.$element.addClass("animated").addClass(c.options.attentionAnimation)},0)}this.focus()},destroy:function(){var c=b.Event("destroy");this.$element.trigger(c);if(c.isDefaultPrevented()){return}this.teardown()},teardown:function(){if(!this.$parent.length){this.$element.remove();this.$element=null;return}if(this.$parent!==this.$element.parent()){this.$element.appendTo(this.$parent)}this.$element.off(".modal");this.$element.removeData("modal");this.$element.removeClass("in").attr("aria-hidden",true)}};b.fn.modal=function(d,c){return this.each(function(){var g=b(this),f=g.data("modal"),e=b.extend({},b.fn.modal.defaults,g.data(),typeof d=="object"&&d);if(!f){g.data("modal",(f=new a(this,e)))}if(typeof d=="string"){f[d].apply(f,[].concat(c))}else{if(e.show){f.show()}}})};b.fn.modal.defaults={keyboard:true,backdrop:true,loading:false,show:true,width:null,height:null,maxHeight:null,modalOverflow:false,consumeTab:true,focusOn:null,replace:false,resize:false,attentionAnimation:"shake",manager:"body",spinner:'
    ',backdropTemplate:'