var buildNumber=46;var buildDate="20160510 14:36";(function(a,b){function c(a){var b=na[a]={},c,d,a=a.split(/\s+/);for(c=0,d=a.length;cd||null==d)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;f").appendTo(b),d=c.css("display");c.remove();if("none"===d||""===d){if(!F)F=q.createElement("iframe"),F.frameBorder=F.width=F.height=0;b.appendChild(F);if(!J||!F.createElement)J=(F.contentWindow||F.contentDocument).document,J.write(("CSS1Compat"===q.compatMode?"":"")+""), J.close();c=J.createElement(a);J.body.appendChild(c);d=i.css(c,"display");b.removeChild(F)}da[a]=d}return da[a]}function ea(a){return i.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var q=a.document,ab=a.navigator,bb=a.location,i=function(){function c(){if(!d.isReady){try{q.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,j=/^\s+/,k=/\s+$/, l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,v=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,C=/-([a-z]|[0-9])/ig,A=/^-ms-/,u=function(a,b){return(b+"").toUpperCase()},B=ab.userAgent,X,U,cb=Object.prototype.toString,ga=Object.prototype.hasOwnProperty,ha=Array.prototype.push,V=Array.prototype.slice, sa=String.prototype.trim,ta=Array.prototype.indexOf,ua={};d.fn=d.prototype={constructor:d,init:function(a,c,e){var f;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!c&&q.body)return this.context=q,this[0]=q.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((f="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:h.exec(a))&&(f[1]||!c)){if(f[1])return e=(c=c instanceof d?c[0]:c)?c.ownerDocument||c:q,(a=l.exec(a))? d.isPlainObject(c)?(a=[q.createElement(a[1])],d.fn.attr.call(a,c,!0)):a=[e.createElement(a[1])]:(a=d.buildFragment([f[1]],[e]),a=(a.cacheable?d.clone(a.fragment):a.fragment).childNodes),d.merge(this,a);if((c=q.getElementById(f[2]))&&c.parentNode){if(c.id!==f[2])return e.find(a);this.length=1;this[0]=c}this.context=q;this.selector=a;return this}return!c||c.jquery?(c||e).find(a):this.constructor(c).find(a)}if(d.isFunction(a))return e.ready(a);if(a.selector!==b)this.selector=a.selector,this.context= a.context;return d.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return V.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?ha.apply(e,a):d.merge(e,a);e.prevObject=this;e.context=this.context;if("find"===b)e.selector=this.selector+(this.selector?" ":"")+c;else if(b)e.selector=this.selector+"."+b+"("+c+")";return e},each:function(a, b){return d.each(this,a,b)},ready:function(a){d.bindReady();X.add(a);return this},eq:function(a){a=+a;return-1===a?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(V.apply(this,arguments),"slice",V.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ha,sort:[].sort,splice:[].splice}; d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,c,e,f,g,s=arguments[0]||{},h=1,i=arguments.length,L=!1;"boolean"===typeof s&&(L=s,s=arguments[1]||{},h=2);"object"!==typeof s&&!d.isFunction(s)&&(s={});i===h&&(s=this,--h);for(;hc?Math.max(0,d+c):c:0;ca.indexOf("compatible")&& w.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,e){e&&e instanceof d&&!(e instanceof a)&&(e=a(e));return d.fn.init.call(this,c,e,b)};a.fn.init.prototype=a.fn;var b=a(q);return a},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){ua["[object "+b+"]"]=b.toLowerCase()}); B=d.uaMatch(B);if(B.browser)d.browser[B.browser]=!0,d.browser.version=B.version;if(d.browser.webkit)d.browser.safari=!0;i.test("\u00a0")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/);g=d(q);q.addEventListener?U=function(){q.removeEventListener("DOMContentLoaded",U,!1);d.ready()}:q.attachEvent&&(U=function(){"complete"===q.readyState&&(q.detachEvent("onreadystatechange",U),d.ready())});return d}(),na={};i.Callbacks=function(a){var a=a?na[a]||c(a):{},d=[],e=[],f,g,h,j,k,l=function(b){var c,e,f,g;for(c=0,e=b.length;c< e;c++)f=b[c],g=i.type(f),"array"===g?l(f):"function"===g&&(!a.unique||!n.has(f))&&d.push(f)},m=function(b,c){c=c||[];f=!a.memory||[b,c];g=!0;k=h||0;h=0;for(j=d.length;d&&k=f&&a&&i.isFunction(a.promise)?a:i.Deferred(),k=j.promise();if(1
a";c=k.getElementsByTagName("*");d=k.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};e=q.createElement("select");f=e.appendChild(q.createElement("option"));c=k.getElementsByTagName("input")[0];b={leadingWhitespace:3=== k.firstChild.nodeType,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===c.value,optSelected:f.selected,getSetAttribute:"t"!==k.className,enctype:!!q.createElement("form").enctype,html5Clone:"<:nav>"!==q.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0, focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};c.checked=!0;b.noCloneChecked=c.cloneNode(!0).checked;e.disabled=!0;b.optDisabled=!f.disabled;try{delete k.test}catch(l){b.deleteExpando=!1}!k.addEventListener&&k.attachEvent&&k.fireEvent&&(k.attachEvent("onclick",function(){b.noCloneEvent=!1}),k.cloneNode(!0).fireEvent("onclick"));c=q.createElement("input");c.value="t";c.setAttribute("type","radio");b.radioValue="t"===c.value; c.setAttribute("checked","checked");k.appendChild(c);d=q.createDocumentFragment();d.appendChild(k.lastChild);b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;b.appendChecked=c.checked;d.removeChild(c);d.appendChild(k);k.innerHTML="";if(a.getComputedStyle)c=q.createElement("div"),c.style.width="0",c.style.marginRight="0",k.style.width="2px",k.appendChild(c),b.reliableMarginRight=0===(parseInt((a.getComputedStyle(c,null)||{marginRight:0}).marginRight,10)||0);if(k.attachEvent)for(h in{submit:1, change:1,focusin:1})c="on"+h,j=c in k,j||(k.setAttribute(c,"return;"),j="function"===typeof k[c]),b[h+"Bubbles"]=j;d.removeChild(k);d=e=f=c=k=c=null;i(function(){var a,c,d,e,f=q.getElementsByTagName("body")[0];if(f){a=q.createElement("div");a.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";f.insertBefore(a,f.firstChild);k=q.createElement("div");a.appendChild(k);k.innerHTML="
t
"; g=k.getElementsByTagName("td");j=0===g[0].offsetHeight;g[0].style.display="";g[1].style.display="none";b.reliableHiddenOffsets=j&&0===g[0].offsetHeight;k.innerHTML="";k.style.width=k.style.paddingLeft="1px";i.boxModel=b.boxModel=2===k.offsetWidth;if("undefined"!==typeof k.style.zoom)k.style.display="inline",k.style.zoom=1,b.inlineBlockNeedsLayout=2===k.offsetWidth,k.style.display="",k.innerHTML="
",b.shrinkWrapBlocks=2!==k.offsetWidth;k.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;"; k.innerHTML="
";c=k.firstChild;d=c.firstChild;e={doesNotAddBorder:5!==d.offsetTop,doesAddBorderForTableAndCells:5===c.nextSibling.firstChild.firstChild.offsetTop};d.style.position="fixed";d.style.top="20px";e.fixedPosition= 20===d.offsetTop||15===d.offsetTop;d.style.position=d.style.top="";c.style.overflow="hidden";c.style.position="relative";e.subtractsBorderForOverflowNotVisible=-5===d.offsetTop;e.doesNotIncludeMarginInBodyOffset=1!==f.offsetTop;f.removeChild(a);k=null;i.extend(b,e)}});return b}();var Ua=/^(?:\{.*\}|\[.*\])$/,Ta=/([A-Z])/g;i.extend({cache:{},uuid:0,expando:"jQuery"+(i.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?i.cache[a[i.expando]]:a[i.expando];return!!a&&!e(a)},data:function(a,c,d,e){if(i.acceptData(a)){var f;f=i.expando;var g="string"===typeof c,h=a.nodeType,j=h?i.cache:a,k=h?a[f]:a[f]&&f,l="events"===c;if(k&&j[k]&&(l||e||j[k].data)||!(g&&d===b)){k||(h?a[f]=k=++i.uuid:k=f);if(!j[k]&&(j[k]={},!h))j[k].toJSON=i.noop;if("object"===typeof c||"function"===typeof c)e?j[k]=i.extend(j[k],c):j[k].data=i.extend(j[k].data,c);f=a=j[k];if(!e){if(!a.data)a.data={};a=a.data}d!==b&&(a[i.camelCase(c)]=d);if(l&& !a[c])return f.events;g?(d=a[c],null==d&&(d=a[i.camelCase(c)])):d=a;return d}}},removeData:function(a,b,c){if(i.acceptData(a)){var d,f,g,h=i.expando,k=a.nodeType,j=k?i.cache:a,l=k?a[h]:h;if(j[l]){if(b&&(d=c?j[l]:j[l].data)){i.isArray(b)||(b in d?b=[b]:(b=i.camelCase(b),b=b in d?[b]:b.split(" ")));for(f=0,g=b.length;fd)return null;a=g?d:0;for(c=g?d+1:f.length;ag.indexOf(":")?"on"+g:"",e){c.result=b;if(!c.target)c.target=e;d=null!=d?i.makeArray(d):[];d.unshift(c);l=i.event.special[g]||{};if(!(l.trigger&&!1===l.trigger.apply(e,d))){m= [[e,l.bindType||g]];if(!f&&!l.noBubble&&!i.isWindow(e)){n=l.delegateType||g;h=Ba.test(n+g)?e:e.parentNode;for(k=null;h;h=h.parentNode)m.push([h,n]),k=h;k&&k===e.ownerDocument&&m.push([k.defaultView||k.parentWindow||a,n])}for(k=0;ke&&h.push({elem:this,matches:d.slice(e)});for(j=0;j+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,h=!1,j=!0,k=/\\/g,l=/\r\n/g,n=/\W/;[0,0].sort(function(){j=!1;return 0});var m=function(a,b,c,e){var c=c||[],f=b=b||q;if(1!==b.nodeType&&9!== b.nodeType)return[];if(!a||"string"!==typeof a)return c;var h,i,j,k,s,l=!0,n=m.isXML(b),z=[],M=a;do if(d.exec(""),h=d.exec(M))if(M=h[3],z.push(h[1]),h[2]){k=h[3];break}while(h);if(1":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!n.test(b))for(b=b.toLowerCase();ec[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("contains"===e)return 0<=(a.textContent||a.innerText||p([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c"; d.insertBefore(a,d.firstChild);if(q.getElementById(c))o.find.ID=function(a,c,d){if("undefined"!==typeof c.getElementById&&!d)return(c=c.getElementById(a[1]))?c.id===a[1]||"undefined"!==typeof c.getAttributeNode&&c.getAttributeNode("id").nodeValue===a[1]?[c]:b:[]},o.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b};d.removeChild(a);d=a=null})();(function(){var a=q.createElement("div");a.appendChild(q.createComment("")); if(0

";if(!(b.querySelectorAll&& 0===b.querySelectorAll(".TEST").length)){m=function(b,c,d,e){c=c||q;if(!e&&!m.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return w(c.getElementsByTagName(b),d);if(f[2]&&o.find.CLASS&&c.getElementsByClassName)return w(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return w([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return w([g],d)}else return w([],d)}try{return w(c.querySelectorAll(b), d)}catch(h){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",j=c.parentNode,k=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);if(k&&j)c=c.parentNode;try{if(!k||j)return w(c.querySelectorAll("[id='"+i+"'] "+b),d)}catch(s){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)m[c]=a[c];b=null}}();(function(){var a=q.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector|| a.msMatchesSelector;if(b){var c=!b.call(q.createElement("div"),"div"),d=!1;try{b.call(q.documentElement,"[test!='']:sizzle")}catch(e){d=!0}m.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(d||!o.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0
"; if(a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null})();m.contains=q.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:q.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1}; m.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var B=function(a,b,c){for(var d,e=[],f="",b=b.nodeType?[b]:b;d=o.match.PSEUDO.exec(a);)f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;d=0;for(var g=b.length;d]*)\/>/ig,Fa=/<([\w:]+)/,sb=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", "
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ia=l(q);D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=D.thead;D.th=D.td;if(!i.support.htmlSerialize)D._default=[1,"div
","
"];i.fn.extend({text:function(a){return i.isFunction(a)?this.each(function(b){var c=i(this);c.text(a.call(this,b,c.text()))}):"object"!==typeof a&&a!==b?this.empty().append((this[0]&& this[0].ownerDocument||q).createTextNode(a)):i.text(this)},wrapAll:function(a){if(i.isFunction(a))return this.each(function(b){i(this).wrapAll(a.call(this,b))});if(this[0]){var b=i(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return i.isFunction(a)?this.each(function(b){i(this).wrapInner(a.call(this,b))}):this.each(function(){var b= i(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=i.isFunction(a);return this.each(function(c){i(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&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=i.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, i.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;null!=(d=this[c]);c++)if(!a||i.filter(a,[d]).length)!b&&1===d.nodeType&&(i.cleanData(d.getElementsByTagName("*")),i.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&i.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return i.clone(this, a,b)})},html:function(a){if(a===b)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(rb,""):null;if("string"===typeof a&&!ub.test(a)&&(i.support.leadingWhitespace||!ka.test(a))&&!D[(Fa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ea,"<$1>");try{for(var c=0,d=this.length;ch.length&&g===q&&"<"===h.charAt(0)&&!vb.test(h)&& (i.support.checkClone||!Ha.test(h))&&(i.support.html5Clone||!Ga.test(h)))e=!0,(f=i.fragments[h])&&1!==f&&(d=f);d||(d=g.createDocumentFragment(),i.clean(a,g,d,c));e&&(i.fragments[h]=f?d:1);return{fragment:d,cacheable:e}};i.fragments={};i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){i.fn[a]=function(c){var d=[],c=i(c),e=1===this.length&&this[0].parentNode;if(e&&11===e.nodeType&&1===e.childNodes.length&&1===c.length)return c[b](this[0]), this;for(var e=0,f=c.length;e");f=(Fa.exec(h)||["",""])[1].toLowerCase();var j=D[f]||D._default,k=j[0],m=b.createElement("div");b===q?Ia.appendChild(m):l(b).appendChild(m);for(m.innerHTML=j[1]+h+j[2];k--;)m= m.lastChild;if(!i.support.tbody){k=sb.test(h);j="table"===f&&!k?m.firstChild&&m.firstChild.childNodes:""===j[1]&&!k?m.childNodes:[];for(f=j.length-1;0<=f;--f)i.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!i.support.leadingWhitespace&&ka.test(h)&&m.insertBefore(b.createTextNode(ka.exec(h)[0]),m.firstChild);h=m.childNodes}else h=b.createTextNode(h);var n;if(!i.support.appendChecked)if(h[0]&&"number"===typeof(n=h.length))for(f=0;f)<[^<]*)*<\/script>/gi,Jb=/^(?:select|textarea)/i,pa=/\s+/,Kb=/([?&])_=[^&]*/,Oa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Pa=i.fn.load,ba={},Qa={},O,K,Ra=["*/"]+["*"];try{O=bb.href}catch(Qb){O=q.createElement("a"),O.href= "",O=O.href}K=Oa.exec(O.toLowerCase())||[];i.fn.extend({load:function(a,c,d){if("string"!==typeof a&&Pa)return Pa.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET";c&&(i.isFunction(c)?(d=c,c=b):"object"===typeof c&&(c=i.param(c,i.ajaxSettings.traditional),e="POST"));var g=this;i.ajax({url:a,type:e,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText;a.isResolved()&&(a.done(function(a){c=a}),g.html(f?i("
").append(c.replace(Ib, "")).find(f):c));d&&g.each(d,[c,b,a])}});return this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Jb.test(this.nodeName)||Fb.test(this.type))}).map(function(a,b){var c=i(this).val();return null==c?null:i.isArray(c)?i.map(c,function(a){return{name:b.name,value:a.replace(Ma,"\r\n")}}):{name:b.name,value:c.replace(Ma, "\r\n")}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){i.fn[b]=function(a){return this.on(b,a)}});i.each(["get","post"],function(a,c){i[c]=function(a,d,e,f){i.isFunction(d)&&(f=f||e,e=d,d=b);return i.ajax({type:c,url:a,data:d,success:e,dataType:f})}});i.extend({getScript:function(a,c){return i.get(a,b,c,"script")},getJSON:function(a,b,c){return i.get(a,b,c,"json")},ajaxSetup:function(a,b){b?A(a,i.ajaxSettings):(b=a,a=i.ajaxSettings);A(a, b);return a},ajaxSettings:{url:O,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(K[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ra},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":i.parseJSON, "text xml":i.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:v(ba),ajaxTransport:v(Qa),ajax:function(a,c){function d(a,c,l,n){if(2!==v){v=2;t&&clearTimeout(t);r=b;p=n||"";u.readyState=0a||304===a){if(e.ifModified){if(G=u.getResponseHeader("Last-Modified"))i.lastModified[m]=G;if(G=u.getResponseHeader("Etag"))i.etag[m]=G}if(304===a)n="notmodified",s=!0;else try{G=e;G.dataFilter&&(l=G.dataFilter(l,G.dataType));var fa=G.dataTypes;E={};var F,H,O=fa.length,K,Q=fa[0],I,N,R,T,J;for(F=1;Fa&&(a=0);u.status=a;u.statusText=""+(c||n);s?h.resolveWith(f,[o,n,u]):h.rejectWith(f,[u,n,z]);u.statusCode(k);k=b;A&&g.trigger("ajax"+ (s?"Success":"Error"),[u,e,s?o:z]);j.fireWith(f,[u,n]);A&&(g.trigger("ajaxComplete",[u,e]),--i.active||i.event.trigger("ajaxStop"))}}"object"===typeof a&&(c=a,a=b);var c=c||{},e=i.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof i)?i(f):i.event,h=i.Deferred(),j=i.Callbacks("once memory"),k=e.statusCode||{},m,l={},n={},p,o,r,t,q,v=0,A,C,u={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase(),a=n[c]=n[c]||a;l[a]=b}return this},getAllResponseHeaders:function(){return 2=== v?p:null},getResponseHeader:function(a){var c;if(2===v){if(!o)for(o={};c=Eb.exec(p);)o[c[1].toLowerCase()]=c[2];c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){if(!v)e.mimeType=a;return this},abort:function(a){a=a||"abort";r&&r.abort(a);d(0,a);return this}};h.promise(u);u.success=u.done;u.error=u.fail;u.complete=j.add;u.statusCode=function(a){if(a){var b;if(2>v)for(b in a)k[b]=[k[b],a[b]];else b=a[u.status],u.then(b,b)}return this};e.url=((a||e.url)+"").replace(Db,"").replace(Hb, K[1]+"//");e.dataTypes=i.trim(e.dataType||"*").toLowerCase().split(pa);if(null==e.crossDomain)q=Oa.exec(e.url.toLowerCase()),e.crossDomain=!(!q||!(q[1]!=K[1]||q[2]!=K[2]||(q[3]||("http:"===q[1]?80:443))!=(K[3]||("http:"===K[1]?80:443))));if(e.data&&e.processData&&"string"!==typeof e.data)e.data=i.param(e.data,e.traditional);w(ba,e,c,u);if(2===v)return!1;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!Gb.test(e.type);A&&0===i.active++&&i.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+= (Na.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,!1===e.cache)){q=i.now();var B=e.url.replace(Kb,"$1_="+q);e.url=B+(B===e.url?(Na.test(e.url)?"&":"?")+"_="+q:"")}(e.data&&e.hasContent&&!1!==e.contentType||c.contentType)&&u.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,i.lastModified[m]&&u.setRequestHeader("If-Modified-Since",i.lastModified[m]),i.etag[m]&&u.setRequestHeader("If-None-Match",i.etag[m]));u.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]? e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+Ra+"; q=0.01":""):e.accepts["*"]);for(C in e.headers)u.setRequestHeader(C,e.headers[C]);if(e.beforeSend&&(!1===e.beforeSend.call(f,u,e)||2===v))return u.abort(),!1;for(C in{success:1,error:1,complete:1})u[C](e[C]);if(r=w(Qa,e,c,u)){u.readyState=1;A&&g.trigger("ajaxSend",[u,e]);e.async&&0v)d(-1,D);else throw D;}}else d(-1,"No Transport");return u}, param:function(a,c){var d=[],e=function(a,b){b=i.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b)c=i.ajaxSettings.traditional;if(i.isArray(a)||a.jquery&&!i.isPlainObject(a))i.each(a,function(){e(this.name,this.value)});else for(var f in a)B(f,a[f],c,e);return d.join("&").replace(Cb,"+")}});i.extend({active:0,lastModified:{},etag:{}});var Lb=i.now(),Z=/(\=)\?(&|$)|\?\?/i;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+Lb++}});i.ajaxPrefilter("json jsonp", function(b,c,d){c="application/x-www-form-urlencoded"===b.contentType&&"string"===typeof b.data;if("jsonp"===b.dataTypes[0]||!1!==b.jsonp&&(Z.test(b.url)||c&&Z.test(b.data))){var e,f=b.jsonpCallback=i.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,g=a[f],h=b.url,j=b.data,k="$1"+f+"$2";!1!==b.jsonp&&(h=h.replace(Z,k),b.url===h&&(c&&(j=j.replace(Z,k)),b.data===j&&(h+=(/\?/.test(h)?"&":"?")+b.jsonp+"="+f)));b.url=h;b.data=j;a[f]=function(a){e=[a]};d.always(function(){a[f]=g;if(e&&i.isFunction(g))a[f](e[0])}); b.converters["script json"]=function(){e||i.error(f+" was not called");return e[0]};b.dataTypes[0]="json";return"script"}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){i.globalEval(a);return a}}});i.ajaxPrefilter("script",function(a){if(a.cache===b)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});i.ajaxTransport("script",function(a){if(a.crossDomain){var c, d=q.head||q.getElementsByTagName("head")[0]||q.documentElement;return{send:function(e,f){c=q.createElement("script");c.async="async";if(a.scriptCharset)c.charset=a.scriptCharset;c.src=a.url;c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||f(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){if(c)c.onload(0,1)}}}});var ma=a.ActiveXObject?function(){for(var a in S)S[a](0, 1)}:!1,Mb=0,S;i.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&C()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:C;(function(a){i.extend(i.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(i.ajaxSettings.xhr());i.support.ajax&&i.ajaxTransport(function(c){if(!c.crossDomain||i.support.cors){var d;return{send:function(e,f){var g=c.xhr(),h,j;c.username?g.open(c.type,c.url,c.async,c.username,c.password):g.open(c.type,c.url,c.async); if(c.xhrFields)for(j in c.xhrFields)g[j]=c.xhrFields[j];c.mimeType&&g.overrideMimeType&&g.overrideMimeType(c.mimeType);!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)g.setRequestHeader(j,e[j])}catch(k){}g.send(c.hasContent&&c.data||null);d=function(a,e){var j,k,m,l,n;try{if(d&&(e||4===g.readyState)){d=b;if(h)g.onreadystatechange=i.noop,ma&&delete S[h];if(e)4!==g.readyState&&g.abort();else{j=g.status;m=g.getAllResponseHeaders();l={};if((n=g.responseXML)&& n.documentElement)l.xml=n;l.text=g.responseText;try{k=g.statusText}catch(p){k=""}!j&&c.isLocal&&!c.crossDomain?j=l.text?200:404:1223===j&&(j=204)}}}catch(o){e||f(-1,o)}l&&f(j,k,l,m)};!c.async||4===g.readyState?d():(h=++Mb,ma&&(S||(S={},i(a).unload(ma)),S[h]=d),g.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var da={},F,J,Nb=/^(?:toggle|show|hide)$/,Ob=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,aa,qa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight", "paddingLeft","paddingRight"],["opacity"]],W;i.fn.extend({show:function(a,b,c){if(a||0===a)return this.animate(N("show",3),a,b,c);for(var c=0,d=this.length;c=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=!0;for(b in f.animatedProperties)!0!==f.animatedProperties[b]&&(d=!1);if(d){null!=f.overflow&&!i.support.shrinkWrapBlocks&&i.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});f.hide&&i(e).hide();if(f.hide|| f.show)for(b in f.animatedProperties)i.style(e,b,f.orig[b]),i.removeData(e,"fxshow"+b,!0),i.removeData(e,"toggle"+b,!0);if(a=f.complete)f.complete=!1,a.call(e)}return!1}Infinity==f.duration?this.now=c:(a=c-this.startTime,this.state=a/f.duration,this.pos=i.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};i.extend(i.fx,{tick:function(){for(var a,b=i.timers,c=0;c";trace.logShouldClear=!1}};trace.logMulti=function(){if(!trace.suppress){for(var a="",b=!0,c=0;cf.time-e.time&&30Math.abs(e.coords[1]-f.coords[1])?e.origin.trigger("swipe").trigger(e.coords[0]>f.coords[0]?"swipeleft":"swiperight"):1E3>f.time-e.time&&30Math.abs(e.coords[0]-f.coords[0])&&e.origin.trigger("swipe").trigger(e.coords[1]>f.coords[1]?"swipeup":"swipedown"));e=f=void 0})})}}; (function(a){function b(){var a=d();a!==e&&(e=a,c.trigger("orientationchange"))}var c=a(window),d,e;a.event.special.orientationchange={setup:function(){if(a.support.orientation)return!1;e=d();c.bind("resize",b)},teardown:function(){if(a.support.orientation)return!1;c.unbind("resize",b)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=d();return b.apply(this,arguments)}}};d=function(){var a=document.documentElement;return a&&1.1>a.clientWidth/a.clientHeight?"portrait":"landscape"}})(jQuery); $.each({scrollstop:"scrollstart",taphold:"tap",swipeup:"swipe",swipedown:"swipe",swipeleft:"swipe",swiperight:"swipe"},function(a,b){$.event.special[a]={setup:function(){$(this).bind(b,$.noop)}}});(function(){function a(a,b){var m;this.element="object"==typeof a?a:document.getElementById(a);this.wrapper=this.element.parentNode;this.element.style.webkitTransitionProperty="-webkit-transform";this.element.style.webkitTransitionTimingFunction="cubic-bezier(0,0,0.25,1)";this.element.style.webkitTransitionDuration="0";this.element.style.webkitTransform=j+"0,0"+l;this.options={bounce:c,momentum:c,checkDOMChanges:!0,topOnDOMChanges:!1,hScrollbar:c,vScrollbar:c,fadeScrollbar:d||!e,shrinkScrollbar:d|| !e,desktopCompatibility:!1,overflow:"auto",snap:!1,bounceLock:!1,directionLock:!0,scrollbarColor:"rgba(150,150,150,0.5)",onScrollEnd:function(){}};if("object"==typeof b)for(m in b)this.options[m]=b[m];if(this.options.desktopCompatibility)this.options.overflow="hidden";this.onScrollEnd=this.options.onScrollEnd;delete this.options.onScrollEnd;this.wrapper.style.overflow=this.options.overflow;this.refresh();window.addEventListener("onorientationchange"in window?"orientationchange":"resize",this,!1); if(e||this.options.desktopCompatibility)this.element.addEventListener(f,this,!1),this.element.addEventListener(g,this,!1),this.element.addEventListener(h,this,!1);this.options.checkDOMChanges&&this.element.addEventListener("DOMSubtreeModified",this,!1)}function b(a,b,c,d,e){var f=document;this.dir=a;this.fade=c;this.shrink=d;this.uid=++m;this.bar=f.createElement("div");this.bar.style.cssText="position:absolute;top:0;left:0;-webkit-transition-timing-function:cubic-bezier(0,0,0.25,1);pointer-events:none;-webkit-transition-duration:0;-webkit-transition-delay:0;-webkit-transition-property:-webkit-transform;z-index:10;background:"+ e+";-webkit-transform:"+j+"0,0"+l+";"+("horizontal"==a?"-webkit-border-radius:3px 2px;min-width:6px;min-height:5px":"-webkit-border-radius:2px 3px;min-width:5px;min-height:6px");this.wrapper=f.createElement("div");this.wrapper.style.cssText="-webkit-mask:-webkit-canvas(scrollbar"+this.uid+this.dir+");position:absolute;z-index:10;pointer-events:none;overflow:hidden;opacity:0;-webkit-transition-duration:"+(c?"300ms":"0")+";-webkit-transition-delay:0;-webkit-transition-property:opacity;"+("horizontal"== this.dir?"bottom:2px;left:2px;right:7px;height:5px":"top:2px;right:2px;bottom:7px;width:5px;");this.wrapper.appendChild(this.bar);b.appendChild(this.wrapper)}a.prototype={x:0,y:0,enabled:!0,handleEvent:function(a){switch(a.type){case f:this.touchStart(a);break;case g:this.touchMove(a);break;case h:this.touchEnd(a);break;case "webkitTransitionEnd":this.transitionEnd();break;case "orientationchange":case "resize":this.refresh();break;case "DOMSubtreeModified":this.onDOMModified(a)}},onDOMModified:function(a){var b= this;a.target.parentNode==b.element&&(setTimeout(function(){b.refresh()},0),b.options.topOnDOMChanges&&(0!=b.x||0!=b.y)&&b.scrollTo(0,0,"0"))},refresh:function(){var a=this.x,c=this.y;this.scrollWidth=this.wrapper.clientWidth;this.scrollHeight=this.wrapper.clientHeight;this.scrollerWidth=this.element.offsetWidth;this.scrollerHeight=this.element.offsetHeight;this.maxScrollX=this.scrollWidth-this.scrollerWidth;this.maxScrollY=this.scrollHeight-this.scrollerHeight;this.directionY=this.directionX=0;if(this.scrollX)if(0<= this.maxScrollX)a=0;else if(this.xthis.scrollWidth;this.scrollY=!this.options.bounceLock&&!this.scrollX|| this.scrollerHeight>this.scrollHeight;if(this.options.hScrollbar&&this.scrollX)this.scrollBarX=this.scrollBarX||new b("horizontal",this.wrapper,this.options.fadeScrollbar,this.options.shrinkScrollbar,this.options.scrollbarColor),this.scrollBarX.init(this.scrollWidth,this.scrollerWidth);else if(this.scrollBarX)this.scrollBarX=this.scrollBarX.remove();if(this.options.vScrollbar&&this.scrollY&&this.scrollerHeight>this.scrollHeight)this.scrollBarY=this.scrollBarY||new b("vertical",this.wrapper,this.options.fadeScrollbar, this.options.shrinkScrollbar,this.options.scrollbarColor),this.scrollBarY.init(this.scrollHeight,this.scrollerHeight);else if(this.scrollBarY)this.scrollBarY=this.scrollBarY.remove()},setPosition:function(a,b,c){this.x=a;this.y=b;this.element.style.webkitTransform=j+this.x+"px,"+this.y+"px"+l;c||(this.scrollBarX&&this.scrollBarX.setPosition(this.x),this.scrollBarY&&this.scrollBarY.setPosition(this.y))},setTransitionTime:function(a){a=a||"0";this.element.style.webkitTransitionDuration=a;if(this.scrollBarX)this.scrollBarX.bar.style.webkitTransitionDuration= a,this.scrollBarX.wrapper.style.webkitTransitionDuration=c&&this.options.fadeScrollbar?"300ms":"0";if(this.scrollBarY)this.scrollBarY.bar.style.webkitTransitionDuration=a,this.scrollBarY.wrapper.style.webkitTransitionDuration=c&&this.options.fadeScrollbar?"300ms":"0"},touchStart:function(a){var b;if(this.enabled){a.preventDefault();a.stopPropagation();this.scrolling=!0;this.moved=!1;this.distY=this.distX=0;this.setTransitionTime("0");if(this.options.momentum||this.options.snap)if(b=new WebKitCSSMatrix(window.getComputedStyle(this.element).webkitTransform), b.e!=this.x||b.f!=this.y)document.removeEventListener("webkitTransitionEnd",this,!1),this.setPosition(b.e,b.f),this.moved=!0;this.touchStartX=e?a.changedTouches[0].pageX:a.pageX;this.scrollStartX=this.x;this.touchStartY=e?a.changedTouches[0].pageY:a.pageY;this.scrollStartY=this.y;this.scrollStartTime=a.timeStamp;this.directionY=this.directionX=0}},touchMove:function(a){if(this.scrolling){var b=e?a.changedTouches[0].pageX:a.pageX,c=e?a.changedTouches[0].pageY:a.pageY,d=this.scrollX?b-this.touchStartX: 0,f=this.scrollY?c-this.touchStartY:0,g=this.x+d,h=this.y+f;a.stopPropagation();this.touchStartX=b;this.touchStartY=c;if(0<=g||gthis.distY)h=this.y,f=0;else if(this.distY-3>this.distX)g=this.x,d=0;this.setPosition(g, h);this.moved=!0;this.directionX=0this.maxScrollY?this.y+this.scrollerHeight-this.scrollHeight:0)+this.scrollHeight/5:this.y+this.scrollerHeight-this.scrollHeight):{dist:0,time:0},d=Math.max(Math.max(a.time,c.time),1),f=this.x+a.dist,g=this.y+c.dist);if(this.options.snap)a= this.snap(f,g),f=a.x,g=a.y,d=Math.max(a.time,d);this.scrollTo(f,g,d+"ms")}else if(this.resetPosition(),e){for(d=c.target;1!=d.nodeType;)d=d.parentNode;a.preventDefault();f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,a.view,1,c.screenX,c.screenY,c.clientX,c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);f._fake=!0;d.dispatchEvent(f)}}},transitionEnd:function(){document.removeEventListener("webkitTransitionEnd",this,!1);this.resetPosition()},resetPosition:function(){var a= this,b=a.x,c=a.y;if(0<=a.x)b=0;else if(a.xthis.directionX?Math.ceil(a/this.scrollWidth):Math.round(a/this.scrollWidth);this.pageX=-a;a*=this.scrollWidth;if(0< a)a=this.pageX=0;else if(athis.directionY?Math.ceil(b/this.scrollHeight):Math.round(b/this.scrollHeight);this.pageY=-b;b*=this.scrollHeight;if(0c?(b=b*c/e/2.5,e=c):0>a&&e>d&&(b=b*d/e/2.5,e=d);f=b/1.2;return{dist:Math.round(e* (0>a?-1:1)),time:Math.round(f)}},destroy:function(a){window.removeEventListener("onorientationchange"in window?"orientationchange":"resize",this,!1);this.element.removeEventListener(f,this,!1);this.element.removeEventListener(g,this,!1);this.element.removeEventListener(h,this,!1);document.removeEventListener("webkitTransitionEnd",this,!1);this.options.checkDOMChanges&&this.element.removeEventListener("DOMSubtreeModified",this,!1);if(this.scrollBarX)this.scrollBarX=this.scrollBarX.remove();if(this.scrollBarY)this.scrollBarY= this.scrollBarY.remove();a&&this.wrapper.parentNode.removeChild(this.wrapper);return null}};b.prototype={init:function(a,b){var c=document,d=Math.PI;if("horizontal"==this.dir){if(this.maxSize!=this.wrapper.offsetWidth)this.maxSize=this.wrapper.offsetWidth,c=c.getCSSCanvasContext("2d","scrollbar"+this.uid+this.dir,this.maxSize,5),c.fillStyle="rgb(0,0,0)",c.beginPath(),c.arc(2.5,2.5,2.5,d/2,-d/2,!1),c.lineTo(this.maxSize-2.5,0),c.arc(this.maxSize-2.5,2.5,2.5,-d/2,d/2,!1),c.closePath(),c.fill()}else if(this.maxSize!= this.wrapper.offsetHeight)this.maxSize=this.wrapper.offsetHeight,c=c.getCSSCanvasContext("2d","scrollbar"+this.uid+this.dir,5,this.maxSize),c.fillStyle="rgb(0,0,0)",c.beginPath(),c.arc(2.5,2.5,2.5,d,0,!1),c.lineTo(5,this.maxSize-2.5),c.arc(2.5,this.maxSize-2.5,2.5,0,d,!1),c.closePath(),c.fill();this.size=Math.max(Math.round(this.maxSize*this.maxSize/b),6);this.maxScroll=this.maxSize-this.size;this.toWrapperProp=this.maxScroll/(a-b);this.bar.style["horizontal"==this.dir?"width":"height"]=this.size+ "px"},setPosition:function(a){"1"!=this.wrapper.style.opacity&&this.show();a=Math.round(this.toWrapperProp*a);0>a?(a=this.shrink?a+3*a:0,7>this.size+a&&(a=-this.size+6)):a>this.maxScroll&&(a=this.shrink?a+3*(a-this.maxScroll):this.maxScroll,7>this.size+this.maxScroll-a&&(a=this.size+this.maxScroll-6));a="horizontal"==this.dir?j+a+"px,0"+l:j+"0,"+a+"px"+l;this.bar.style.webkitTransform=a},show:function(){if(c)this.wrapper.style.webkitTransitionDelay="0";this.wrapper.style.opacity="1"},hide:function(){if(c)this.wrapper.style.webkitTransitionDelay= "350ms";this.wrapper.style.opacity="0"},remove:function(){this.wrapper.parentNode.removeChild(this.wrapper);return null}};var c="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,d=/iphone|ipad/gi.test(navigator.appVersion),e="ontouchstart"in window,f=e?"touchstart":"mousedown",g=e?"touchmove":"mousemove",h=e?"touchend":"mouseup",j="translate"+(c?"3d(":"("),l=c?",0)":")",m=0;window.iScroll=a})();var util={};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,b){for(var c=b||0,d=this.length;cb?b:a};util.max=function(a,b){return a>2,c=(c&3)<<4|d>>4,g=(d&15)<<2|e>>6,h=e&63,isNaN(d)?g=h=64:isNaN(e)&&(h=64),b=b+this._keyStr.charAt(f)+this._keyStr.charAt(c)+this._keyStr.charAt(g)+this._keyStr.charAt(h);return b},decode:function(a){for(var b="",c,d,e,f,g,h=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");h< a.length;)c=this._keyStr.indexOf(a.charAt(h++)),d=this._keyStr.indexOf(a.charAt(h++)),f=this._keyStr.indexOf(a.charAt(h++)),g=this._keyStr.indexOf(a.charAt(h++)),c=c<<2|d>>4,d=(d&15)<<4|f>>2,e=(f&3)<<6|g,b+=String.fromCharCode(c),64!=f&&(b+=String.fromCharCode(d)),64!=g&&(b+=String.fromCharCode(e));return b=Base64._utf8_decode(b)},_utf8_encode:function(a){for(var a=a.replace(/\r\n/g,"\n"),b="",c=0;cd?b+=String.fromCharCode(d):(127d?b+=String.fromCharCode(d>> 6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d=c1=c2=0;cd?(b+=String.fromCharCode(d),c++):191d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};function TaskQueue(){this.tasks=[];this.timeout=50;this.tick()}TaskQueue.prototype.add=function(a){this.tasks.push(a)};TaskQueue.prototype.tick=function(a){(a=this.tasks.shift())&&a();var b=this;setTimeout(function(){b.tick()},b.timeout)};function MatrixTransform(){this.reset()}MatrixTransform.fromValues=function(a,b,c,d,e,f){var g=new MatrixTransform;g.m[0]=a;g.m[1]=b;g.m[2]=c;g.m[3]=d;g.m[4]=e;g.m[5]=f;for(var h in g.m)if(isNaN(g.m[h]))throw"bad matrix value at "+h;return g};MatrixTransform.PI_OVER_180=Math.PI/180;MatrixTransform.prototype.reset=function(){this.m=[1,0,0,1,0,0]};MatrixTransform.prototype.copy=function(a){a=new MatrixTransform;a.m=[this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5]];return a}; MatrixTransform.prototype.multiply=function(a){var b=this.m[1]*a.m[0]+this.m[3]*a.m[1],c=this.m[0]*a.m[2]+this.m[2]*a.m[3],d=this.m[1]*a.m[2]+this.m[3]*a.m[3],e=this.m[0]*a.m[4]+this.m[2]*a.m[5]+this.m[4],f=this.m[1]*a.m[4]+this.m[3]*a.m[5]+this.m[5];this.m[0]=this.m[0]*a.m[0]+this.m[2]*a.m[1];this.m[1]=b;this.m[2]=c;this.m[3]=d;this.m[4]=e;this.m[5]=f}; MatrixTransform.prototype.concat=function(a){var b=this.m[1]*a.m[0]+this.m[3]*a.m[1],c=this.m[0]*a.m[2]+this.m[2]*a.m[3],d=this.m[1]*a.m[2]+this.m[3]*a.m[3],e=this.m[0]*a.m[4]+this.m[2]*a.m[5]+this.m[4],f=this.m[1]*a.m[4]+this.m[3]*a.m[5]+this.m[5];this.m[0]=this.m[0]*a.m[0]+this.m[2]*a.m[1];this.m[1]=b;this.m[2]=c;this.m[3]=d;this.m[4]=e;this.m[5]=f}; MatrixTransform.prototype.invert=function(){var a=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),b=-this.m[1]*a,c=-this.m[2]*a,d=this.m[0]*a,e=a*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),f=a*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);this.m[0]=this.m[3]*a;this.m[1]=b;this.m[2]=c;this.m[3]=d;this.m[4]=e;this.m[5]=f};MatrixTransform.prototype.rotateDegrees=function(a){this.rotate(a*MatrixTransform.PI_OVER_180)}; MatrixTransform.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.m[1]*b+this.m[3]*a,d=this.m[0]*-a+this.m[2]*b,e=this.m[1]*-a+this.m[3]*b;this.m[0]=this.m[0]*b+this.m[2]*a;this.m[1]=c;this.m[2]=d;this.m[3]=e};MatrixTransform.prototype.getRotation=function(){return Math.asin(this.m[2])};MatrixTransform.prototype.getScale=function(){var a=Math.sqrt(this.m[0]*this.m[0]+this.m[2]*this.m[2]),b=Math.sqrt(this.m[1]*this.m[1]+this.m[3]*this.m[3]);return new Point(a,b)}; MatrixTransform.prototype.translate=function(a,b){this.m[4]+=this.m[0]*a+this.m[2]*b;this.m[5]+=this.m[1]*a+this.m[3]*b};MatrixTransform.prototype.scale=function(a,b){this.m[0]*=a;this.m[1]*=a;this.m[2]*=b;this.m[3]*=b};MatrixTransform.prototype.transformPoint=function(a,b){var c=a,d=b,a=c*this.m[0]+d*this.m[2]+this.m[4],b=c*this.m[1]+d*this.m[3]+this.m[5];return{x:a,y:b}};MatrixTransform.prototype.unTransformPoint=function(a,b){var c=this.copy();c.invert();return c.transformPoint(a,b)}; MatrixTransform.prototype.applyContext=function(a){a.setTransform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};MatrixTransform.prototype.toCSSTransform=function(){return"matrix("+this.val(0)+","+this.val(1)+","+this.val(2)+","+this.val(3)+","+this.val(4)+","+this.val(5)+")"};MatrixTransform.prototype.val=function(a){return Math.round(100*this.m[a])/100}; MatrixTransform.prototype.getRotation=function(){var a=this.transformPoint(0,0),b=this.transformPoint(1,0);return Math.atan2(b.y-a.y,b.x-a.x)};var Element=function(){this.ref=this.container=null;this.events=[];this.actionGroups={};this.variables={};this.states={};this.parent=null;this.children={};this.eventsInitialized=this.isDisabled=!1;this.log=[];this.absoluteId=""};Element.prototype.objectType="Element";Element.prototype.innerType="Element";Element.PixelSrc="data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";Element.BlackPixelSrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGD4DwABCQEBtxmN7wAAAABJRU5ErkJggg=="; Element.prototype.childItems=function(){var a=[];$.each(this.children,function(b,c){"Item"==c.objectType&&a.push(c)});return a};Element.prototype.findDescendantById=function(a){var b=null,c;for(c in this.children){var d=this.children[c];!b&&d.id==a&&(b=d);!b&&d.findDescendantById&&(b=d.findDescendantById(a))}return b}; Element.prototype.hasDescendantByType=function(a){var b=!1,c;for(c in this.children){var d=this.children[c];!b&&d.innerType.toLowerCase()==a.toLowerCase()&&(b=!0);!b&&d.hasDescendantByType&&(b=d.hasDescendantByType(a))}return b};Element.prototype.getDescendantsByType=function(a){var b=[],c;for(c in this.children){var d=this.children[c];"Storyline"==this.innerType&&"Slide"==d.innerType||(d.innerType.toLowerCase()==a.toLowerCase()&&b.push(d),d.getDescendantsByType&&(b=b.concat(d.getDescendantsByType(a))))}return b}; Element.prototype.isAncestor=function(a){for(var b=this.parent;b;){if(a==b)return!0;b=b.parent}return!1};Element.prototype.findAncestorOfType=function(a){for(var b=this;b;){if(b.innerType==a)return b;b=b.parent}return null};Element.prototype.eachAncestor=function(a){for(var b=this.parent;b;)a(b),b=b.parent}; Element.prototype.getFullObjref=function(a){var b=this.absoluteId;if(0>=this.absoluteId.length)b=this.parent&&this.parent.id&&this.parent.getFullObjref?this.absoluteId=this.parent.getFullObjref()+"."+this.id:this.id;a&&(b="_player."+b);return b};Element.prototype.getFullVariableRef=function(a){a=this.parseObjref(a);return"_player."+a.target.getFullObjref()+"."+a.variable}; Element.prototype.restoreVariableResumeData=function(a){if(""==a)return"";for(var b=$(this.xml).children("variables").children("[resume='true'][type='boolean']"),c=$(this.xml).children("variables").children("[resume='true'][type!='boolean']"),a=new bwChunk(a),d=0;!a.EOF();)for(var e=a.NextUBase10(1),f=1;d<=b.length&&64>f;){var g=e&f;d
"),h.ref.append(h.scrollKeeper);var n=5,p=function(){if(h&&h.scrollKeeper&&h.ref&&(h.scrollKeeper.css("top",k),h.ref.get(0).scrollTop=k,clearTimeout(player.retrySetScrollTimeout),h.ref.get(0).scrollTop!=k&&0c++;)a+=b.rotation,b=b.offsetParent;return a};Element.prototype.getGlobalRotation=function(){return this.getParentGlobalRotation()+this.rotation}; Element.prototype.parseObjrefFromXML=function(a){var b=$(a).find("objref").attr("value"),a=$(a).find("objref").attr("type");return this.parseObjref(b,a)}; Element.prototype.parseObjref=function(a,b){var c=this,d=a,e=!1,f=!0,g=!1;if(!a)return{target:null,variable:null,success:!1,isVariableRef:!1};for(var h=d.split("."),j=0;jg;k="greater than";break;case "gte":m=l>=g;k="greater than or equal to";break;case "lt":m= l");this.webobject.attr("src",$(a).attr("url"));this.webobject.attr("width",$(a).attr("width"));this.webobject.attr("height",$(a).attr("height"));this.webobject.css("left",$(a).attr("xpos")+"px");this.webobject.css("top",$(a).attr("ypos")+"px");this.webobject.css("z-index",this.depth); b.ref.append(this.webobject);this.webobject.show()};Element.prototype.destroyWebobjects=function(){if(this.webobject)this.webobject.remove(),this.webobject=null}; Element.prototype.open_url=function(a){var b=$(a).attr("url"),c=$(a).attr("window"),d=$(a).attr("windowsize")||"custom";$(a).attr("usedefaultcontrols");var e="true"==$(a).attr("status")?1:0,f="true"==$(a).attr("toolbar")?1:0,g="true"==$(a).attr("location")?1:0,h="true"==$(a).attr("menubar")?1:0,j="true"==$(a).attr("scrollbars")?1:0,l="true"==$(a).attr("resizable")?1:0,m=parseInt($(a).attr("width")),k=parseInt($(a).attr("height"));"open_video"==a.tagName&&(b=player.basepath+window.globals.strContentFolder+ "/"+b);a="location="+g+",menubar="+h+",resizable="+l+",status="+e+",scrollbars="+j+",toolbar="+f;switch(d){case "fullscreen":a+=",width="+(screen.width-33)+",height="+(screen.height-150);break;case "custom":d=Math.floor(window.screenLeft+window.outerWidth/2-m/2),e=Math.floor(window.screenTop+window.outerHeight/2-k/2),a=a+(",width="+m+",height="+k)+(",left="+d+",top="+e)}var n=this;if(!this.openingWindow)this.openingWindow=!0,setTimeout(function(){n.openingWindow=!1},500),story.popWindow=window.open(b, c,a),story.popWindow&&story.popWindow.focus&&story.popWindow.focus(),this.openingWindow=!1};Element.prototype.open_video=Element.prototype.open_url;Element.prototype.exe_animation=function(a,b){var c=this.parseObjrefFromXML(a).target,d=$(a).attr("id"),e="true"==$(a).children("reverse").attr("value"),f=c.animations[d];EventLogger.logNote("exe_animation:"+d+", "+c.id);f.start(c,e,b)}; Element.prototype.slideY=function(){for(var a=0,b=this;b&&!isNaN(b.y);)a+=parseInt(b.y),!isNaN(b.yoffset)&&b!=this&&(a+=b.yoffset),"ScrollArea"==b.innerType&&b.ref&&b.ref.get(0)&&b.ref.get(0).scrollTop&&(a-=parseInt(b.ref.get(0).scrollTop)),b=b.parent;return parseInt(a)}; Element.prototype.slideX=function(){for(var a=0,b=this;b&&!isNaN(b.x);)a+=parseInt(b.x),!isNaN(b.xoffset)&&b!=this&&(a+=b.xoffset),"ScrollArea"==b.innerType&&b.ref&&b.ref.get(0)&&b.ref.get(0).scrollLeft&&(a-=parseInt(b.ref.get(0).scrollLeft)),b=b.parent;return parseInt(a)}; Element.prototype.testOver=function(a,b){var c=this.matrix.unTransformPoint(a,b);c.x+=this.xoffset;c.y+=this.yoffset;c=0<=c.x&&c.x<=this.width&&0<=c.y&&c.y<=this.height;return this.nearestScrollAreaAncestor&&this.nearestScrollAreaAncestor.hasScrollBars()&&this.nearestScrollAreaAncestor.matrix.unTransformPoint(a,b).x+18>this.nearestScrollAreaAncestor.width?!1:c}; Element.prototype.deepEach=function(a,b,c){isNaN(c)&&(c=0);for(var d in this.children){var e=this.children[d];if(e&&(!b||b(e)))a(d,e,c),e.deepEach&&e.deepEach(a,b,c+1)}};Element.prototype.deepEachReverse=function(a){var b=[];this.deepEach(function(a,c,d){b[d]||(b[d]=[]);b[d].push(c)});for(var c=b.length-1;0<=c;c--)for(var d=0;dc++;)a.multiply(b.matrix),b=b.offsetParent;return a}; Element.prototype.updateMatrixComplete=function(a){this.offsetParent&&this.offsetParent.updateMatrixComplete&&this.offsetParent.updateMatrix&&this.offsetParent.updateMatrixComplete(!1);this.updateMatrix();a&&this.deepEach(function(a,c){c.matrix&&(c.isStageItem||"Slide"==c.innerType)&&c.updateMatrix()})}; Element.prototype.updateMatrix=function(){this.matrix.reset();"ScrollArea"==this.innerType&&this.ref&&0!=this.ref.get(0).scrollTop&&this.matrix.translate(0,-this.ref.get(0).scrollTop);if("sequencectrl"==this.innerType&&this.ref&&this.ref.get(0)){var a=this.ref.get(0);a.hasOwnProperty("scrollTop")&&this.matrix.translate(0,-a.scrollTop)}"expandinglabel"==this.innerType&&this.matrix.translate(0,this.m_nContentYOffset);this.offsetParent&&!this.offsetParent.dragX&&!this.offsetParent.dragY&&(this.slide? this.matrix.translate(this.dragX*this.slide.scale||0,this.dragY*this.slide.scale||0):this.matrix.translate(this.dragX||0,this.dragY||0));this.offsetParent&&this.offsetParent.matrix&&this.matrix.multiply(this.offsetParent.matrix.copy());this.centerpoint={x:this.rotatexpos-this.xoffset,y:this.rotateypos-this.yoffset};this.matrix.translate(this.x+this.xoffset+this.centerpoint.x,this.y+this.yoffset+this.centerpoint.y);this.matrix.rotateDegrees(this.rotation);this.matrix.translate(-this.centerpoint.x, -this.centerpoint.y);void 0!=this.scale&&this.matrix.scale(this.scale,this.scale);this.isRotated=this.parent&&this.parent.isRotated||0!=this.rotation}; Element.prototype.applySize=function(a){this.x=Math.round(this.x);this.y=Math.round(this.y);this.xoffset=Math.round(this.xoffset);this.yoffset=Math.round(this.yoffset);this.updateMatrix();if(player.showMatrixDebug){if(!player.testCanvas)player.testCanvas=$(""),$("#slideframe").append(player.testCanvas),player.testContext=player.testCanvas.get(0).getContext("2d"),player.testContext.fillStyle= "rgba(255,255,0,0.5)",player.testContext.fillStyle="rgba(0,0,0,0.5)",player.testContext.strokeStyle="rgba(0,255,0,0.5)";player.testContext.save();this.matrix.applyContext(player.testContext);player.testContext.strokeStyle="rgba(0,255,0,0.5)";player.testContext.strokeRect(0,0,this.width,this.height);this.getAABB();player.testContext.restore()}a.css("left",this.x+this.xoffset+"px");a.css("top",this.y+this.yoffset+"px");"vectorshape"==this.innerType&&this.rectShape?(a.css("width",this.rectShape.GetWidth()+ "px"),a.css("height",this.rectShape.GetHeight()+"px")):"Video"!=this.innerType&&(a.css("width",this.width+"px"),a.css("height",this.height+"px"));"Layer"!=this.innerType&&"ExpandingLabel"!=this.innerType&&0

Title


");this.ref.addClass(this.id);this.contentRef=this.ref.children("div").first();this.titleRef=this.ref.children("h1").first();this.isPrompt&&this.ref.addClass("prompt");this.applySize();this.onBody=!1;$("#slidecontainer").append(this.ref);this.ref.hide();return!0}; Window.prototype.applySize=function(){if(1!=player.frameScale&&!this.isPrompt)this.width=this.originalWidth*player.frameScale,this.height=this.originalHeight*player.frameScale;this.ref.css("width",this.width);this.ref.css("height",this.height);this.ref.css("margin","auto");switch(this.align){case "center":this.ref.css("left","50%");this.ref.css("margin-left",-this.width/2);break;default:console.log("unknown window align",this.align)}switch(this.valign){case "center":this.ref.css("top","50%");this.ref.css("margin-top", -this.height/2);break;default:console.log("unknown window valign",this.valign)}}; Window.prototype.prepareLightbox=function(){var a=$(".frameInterstitial");0==a.length&&(a=$("
"),$(".framewrap").prepend(a));$(document.body).append($(".window.prompt"));if(!this.lightboxPrepared){this.onBody=!0;$(document.body).append(this.ref);this.ref.addClass("lightbox");this.applySize();this.contentRef.css("width",this.width);this.contentRef.css("height",this.height);this.closeIcon=$("
x
");this.closeIcon.css("left", (0.85*player.width-10)*player.frameScale+"px");this.ref.append(this.closeIcon);var b=this;this.closeIcon.click(function(){b==player.currentWindow&&b.close()});this.lightboxPrepared=!0}}; Window.prototype.prepareControls=function(a){if(!(0#controls").length)){this.controls&&this.controls.remove();this.controls=$(".contentpane>#controls").clone(!1);this.controls.css("left","0px");this.ref.append(this.controls);this.progressBar=new ProgressBar(null,this.controls.find("#progressbar"),!0);this.progressBar.onDragUpdate=player.progressBar.onDragUpdate;this.progressBar.zoomModifier=this.zoomModifier;var b=this.controls.find(".submit-slide").parent();b.removeClass("pressed"); b.bind("click",function(){$(this).hasClass("disabled")||$(this).hasClass("locked")||0<$(".modalfence:visible").length||story.handleEvent("onobjectevent","submit_pressed",null,!1,!1,!0)});b=this.controls.find(".label.next").parent();b.removeClass("pressed");b.bind("click",function(){!$(this).hasClass("disabled")&&!$(this).hasClass("locked")&&story.handleEvent("onobjectevent","next_pressed",null,!1,!1,!0)});b=this.controls.find(".label.prev").parent();b.removeClass("pressed");b.bind("click",function(){!$(this).hasClass("disabled")&& !$(this).hasClass("locked")&&story.handleEvent("onobjectevent","prev_pressed",null,!1,!1,!0)});this.controls.find(".finish-slide").parent().bind("click",function(){!$(this).hasClass("disabled")&&!$(this).hasClass("locked")&&story.handleEvent("onobjectevent","finish_pressed",null,!1,!1,!0)});this.controls.find(".play").bind("click",function(){player.timelineManager.playActiveTimeline()});this.controls.find(".pause").bind("click",function(){player.timelineManager.pauseActiveTimeline()});this.volumeSlider= new VolumeSlider(this.controls.find("#control-volume"));this.volumeSlider.onDragUpdate=function(a){$("audio,video").each(function(b,e){e.volume=Math.min(a*player.clipVolume,1)});Audio.setMasterVolume&&Audio.setMasterVolume(a);VolumeSlider.updateVolumeIcon(a)};this.resize(a)}}; Window.prototype.closeLightbox=function(){this.history=[];if(!player.stackedWindow)$(".blocker").hide(),$(".interstitial").hide(),$(".frameInterstitial").hide(),$(".frameInterstitial").removeClass("dark"),$(".interstitial").removeClass("black"),player.showingInterstitial=!1,$("#slidecontainer").append($(".window.prompt"));if(player.currentWindowSlide)player.currentWindowSlide.saveIfNecessary(),player.currentWindowSlide.resetSlide(),player.currentWindowSlide.hide(),player.currentWindowSlide.unloadContent(), player.currentWindow=null,player.currentWindowSlide=null,player.currentSlide().handleEvent("ontransitionin",null,null,!1,!0)}; Window.prototype.renderBackground=function(){var a={canvas:this.background.get(0),m_nXOffset:0,m_nYOffset:0,m_nWidth:this.width+100,m_nHeight:this.height};ppArt.DrawVector(a,"ZB1$v$vPCZy$f2L$_XA100jfZQA1$3N10OaXIA1ag70FCDY$v00LCYv0000PC_$3w2wPC_$9wn3PC_$9wn3PC_$9wn3PC_$9wn3e20PC_$9wn3PC_$PyDYg40PC_$PyDYPC_$VyYvLCYv_y00FCDY_y00e20FCDY_y009wn3_y00g409wn3_y003w2w_y00$v00VyYv$v00PyDYe20$v00PyDY$v009wn3g40$v009wn300003w2w3w2w$v009wn3$v003t3w00px000000E0505010100w00N10$$$$E0aEg70FC$v$v$vLCt1$v$vPC$v3wx_PC$v9w$vPC$v9w$vPC$v9w$vPC$v9w$ve20PC$v9w$vPC$vPy$vg40PC$vPy$vPC$vVyt1LCt1Zy$vFC$vZy$ve20FC$vZy$v9w$vZy$vg409w$vZy$v3wx_Zy$v$v$vVyt1$v$vPy$ve20$v$vPy$v$v$v9w$vg40$v$v9w$v$v$v3wx_3wx_$v$v9w$v$v$v3E",null, player.fontlib,null)};Window.prototype.appendSlide=function(a){a.loadContentFromXML();this.slide=a;this.contentRef.empty();this.contentRef.append(a.ref);this.titleRef.html(a.title)}; Window.prototype.resize=function(a){this.contentRef.css("width",this.width);this.contentRef.css("height",this.height);this.applySize();this.closeIcon&&this.closeIcon.css("left",(0.85*player.width-10)*player.frameScale+"px");if((a=a||this.slide)&&this.controls)this.controls.css("left","0px"),this.controls.css("width",a.width-10/player.frameScale),this.controls.css("margin-top",Math.ceil(-33*player.frameScale)+"px"),this.ref.append(this.controls),this.controls.css("-webkit-transform-origin","top left"), this.controls.css("transform-origin","top left"),this.controls.css("-webkit-transform","translate3d(0px,0px,0px) scale("+0.85*player.frameScale+")"),this.controls.css("transform","translate3d(0px,0px,0px) scale("+0.85*player.frameScale+")"),this.slide&&this.slide.fitToContainer()}; Window.prototype.close=function(){this.slide&&(this.slide.timeline&&this.slide.timeline.pauseTimeline(),this.slide.ref&&this.slide.ref.remove());this.slide=null;this.closeLightbox();this.ref.hide();player.currentWindow=player.stackedWindow;player.currentWindowSlide=player.stackedWindowSlide;player.stackedWindow=null;player.stackedWindowSlide=null;this.setVisible(!1);player.windowZoomModifier=1;player.zoomParams=null;player.timelineManager.retoreAllPausedTimelines(player.pausedListFromWindow);player.pausedListFromWindow= [];story.saveToLocalStorage()}; Window.prototype.showSlide=function(a,b){var c=this,d=TimelineAction.actparams.cancelled;TimelineAction.actparams._ActTargetSlideId=a.getFullObjref(!0);TimelineAction.actparams._ActTargetWindow=a.variables.WindowId;TimelineAction.actparams._ActTargetSlideNavIndex=a.navindex;TimelineAction.actparams.cancelled=!1;player.currentSlide().handleEvent("onbeforeslidejump",null,null,!1,!0);if(TimelineAction.actparams.cancelled)TimelineAction.actparams.cancelled=d;else{TimelineAction.actparams.cancelled=d; if(player.currentWindow&&player.currentWindow!=c)player.stackedWindow=player.currentWindow,player.stackedWindowSlide=player.currentWindowSlide;if(-1"),$(".contentpane").append(Window.blocker);Window.blocker.show()}a.loadContentFromXML();a.window=this;a.blockAndLoad(function(){player.currentSlide().saveIfNecessary(); player.currentWindowSlide&&(player.currentWindowSlide.saveIfNecessary(),player.currentWindowSlide.resetSlide());player.currentSlide().pause();var d=player.currentWindowSlide;player.currentWindow=c;player.currentWindowSlide=a;c.slide=a;d&&d!=player.stackedWindowSlide&&(d.reduce(),player.hideInactiveSlides(),d.unloadContent());c.ref.show();a.createRef();a.resetSlide(!1,!0);c.appendSlide(a);a.ref.show();a.setVisible(!0);player.timelineManager.addTimeline(a.timeline);a.variables.WindowId=c.id;a.variableDefaults.WindowId= c.id;player.updateViewCount(a);a.timeline.resetTimeline();a.handleEvent("onbeforeslidein",null,null,!1,!0);if(!b&&player.currentWindow&&player.currentWindowSlide){if(!c.history)c.history=[];c.history.push(player.currentWindowSlide.slideIndex)}c.setVisible(!0);if(c.isLightbox)d=$(".frameInterstitial"),d.addClass("dark"),d.show(),player.showingInterstitial=!0;a.handleEvent("ontransitionin",null,null,!1,!0);a.handleEvent("ontransitionincomplete",null,null,!1,!0);a.handleEvent("onslidestart");a.deepEach(function(a, b){b.handleEvent&&b.handleEvent("onslidestart",null,null,!1,!0)});a.transitionedIn=!1;player.transitionLightboxSlides=!0;player.transitionLightboxSlides?a.startTransition(null,!0,function(){a.play(!1,!1,!0)}):a.play(!1,!1,!0);if(player.hasShownFirstSlide)player.hasAdvanced=!0;player.hasShownFirstSlide=!0;story.saveToLocalStorage();a.fitToContainer();player.windowZoomModifier=c.zoomModifier;player.automation.notifySlideTransitionIn(a.getFullObjref(),0);player.automation.notifySlideStarted(a.getFullObjref())})}};var ResumePrompt=function(){this.xml="";this.constructElement();this.selected=!1};ResumePrompt.prototype=new Window;ResumePrompt.prototype.objectType="ResumePrompt";ResumePrompt.prototype.innerType="ResumePrompt"; ResumePrompt.prototype.createRef=function(){if(this.ref)return!1;var a=this,b=$("

Resume

Would you like to resume where you left off?

YesNo
");this.contentRef=b.children("p").first();this.titleRef=b.children("h1").first();this.suppressRef=$("
");$(document.body).append(b);this.ref=b;var c=b.find(".yes"),d=b.find(".no");b.find(".button").bind("mousedown touchstart", function(){$(this).addClass("pressed")});b.find(".button").bind("mouseup touchend mouseout",function(){$(this).removeClass("pressed")});c.bind("click",function(){a.slide.children.btn0.handleEvent("onrelease",null,null,!1,!1,!0);$(".interstitial").removeClass("resume");$(".interstitial").hide();$(".frameInterstitial").hide();player.showingInterstitial=!1});d.bind("click",function(){a.slide.children.btn1.handleEvent("onrelease",null,null,!1,!1,!0);$(".interstitial").removeClass("resume");$(".interstitial").hide(); $(".frameInterstitial").hide();player.showingInterstitial=!1});this.ref.hide();return!0};ResumePrompt.prototype.appendSlide=function(a){this.slide&&this.slide.ref.remove();this.slide=a;this.suppressRef.append(a.ref);this.titleRef.html($(a.title).text());setTimeout(function(){a.ref.find(".item_ResumePromptSlide_Text").text();$(".interstitial").removeClass("black");$(".interstitial").addClass("resume");$(".interstitial").show();player.showingInterstitial=!0},1)};var Scene=function(){this.slides=[];this.slideDraws=[];this.constructElement()};Scene.prototype=new Element;Scene.prototype.objectType="Scene";Scene.prototype.innerType="Scene"; Scene.prototype.restoreFromResumeData=function(a){this.hasVariables()&&(a=new bwChunk(a),this.restoreVariableResumeData(a.Data()),a=a.Remainder());var b=new bwChunk(a),c=this.getDescendantsByType("Slide"),d=[];$.each(c,function(a,b){(b.resume||0=d.length){var f=this.slideDraws[e];f&&f.restoreFromResumeData(b.Data());e++}else f=d[c],f.compactResumeData=b.ChunkData(),f.restoreFromResumeData(b.ChunkData(),!0);b=b.NextChunk();c++}this.compactResumeData= bwChunk.CreateChunk(a)};Scene.prototype.getResumeData=function(){var a="";this.hasVariables()&&(a+=this.getVariableResumeData());var b="";$.each(this.children,function(a,c){"SlideDraw"!=c.innerType&&(c.compactResumeData?b+=c.compactResumeData:c.resume&&(b+=bwChunk.EMPTY_CHUNK))});var c="";$.each(this.children,function(a,b){if("SlideDraw"==b.innerType){if(!b.compactResumeData)b.compactResumeData=b.getResumeData();c+=b.compactResumeData||"0"}});b+=c;return bwChunk.CreateChunk(a+b)}; Scene.prototype.getFirstSlide=function(){for(var a=0;a=this.duration)&&(this.startPosition=this.currentPosition,this.startTime=new Date,this.render(),!this.interval))this.interval=setInterval(function(){a.tick()},100)};Timer.prototype.pause=function(){if(this.interval)clearInterval(this.interval),this.interval=null}; Timer.prototype.tick=function(){this.currentPosition=this.startPosition+(new Date-this.startTime);if(this.currentPosition>this.duration)this.currentPosition=this.duration,this.pause(),this.handleEvent("timercomplete");this.updateText();this.render()}; Timer.prototype.createRef=function(){if(this.ref)return!1;this.ref=$("
");this.captionRef=$(this.ref.get(0));this.canvasRef=$(this.ref.get(1));player.isMobileFrame?$(document.body).append(this.ref):$(".framewrap").append(this.ref);this.context=this.canvasRef.get(0).getContext("2d");return!0}; Timer.FormatMS=function(a){var b=Math.floor(a/1E3%60),c=Math.floor(a/1E3/60%60),a=Math.floor(a/1E3/60/60);return 04*this.TICK_DURATION&&!this._tickOverrided)c=this._currentTime+this.TICK_DURATION,this._startTime=b-c;this._currentTime=c;this.performMaintenance(); for(b=0;bthis._runningTimelines.indexOf(a)&&this._runningTimelines.push(a):console.error("Not a Timeline Object")}; TimelineManager.prototype.removeTimeline=function(a){a=this._runningTimelines.indexOf(a);0<=a&&this._runningTimelines.splice(a,1)};TimelineManager.prototype.setActiveTimeline=function(a){0>this._runningTimelines.indexOf(a)&&this.addTimeline(a);this._activeTimeline=a};TimelineManager.prototype.getActiveTimelineSlide=function(){var a=null;if(null!=this._activeTimeline&&(a=this._activeTimeline._timelineOwner)&&a.slide)a=a.slide;return a}; TimelineManager.prototype.getActiveTimelineOwner=function(){var a=null;if(null!=this._activeTimeline)a=this._activeTimeline._timelineOwner;return a};TimelineManager.prototype.getIsActiveTimelinePlaying=function(){return this._activeTimeline?this._activeTimeline.getIsPlaying():!1};TimelineManager.prototype.getIsAnyTimelinePlaying=function(){for(var a=0;athis._animations.indexOf(a)&&this._animations.push(a);a.step()};TimelineManager.prototype.removeAnimation=function(a){a=this._animations.indexOf(a);0<=a&&this._animations.splice(a,1)};TimelineManager.prototype.getCurrentTime=function(){return this._currentTime}; TimelineManager.prototype.requestAnimationFrame=window.requestAnimationFrame?function(a){window.requestAnimationFrame(a)}:window.webkitRequestAnimationFrame?function(a){window.webkitRequestAnimationFrame(a)}:window.mozRequestAnimationFrame?function(a){window.mozRequestAnimationFrame(a)}:window.oRequestAnimationFrame?function(a){window.oRequestAnimationFrame(a)}:window.msRequestAnimationFrame?function(a){window.msRequestAnimationFrame(a)}:function(a){window.setTimeout(a,this.TICK_DURATION)};function AutomationInterface(){this.enabled=-1=this.duration)this.triggerTimelineComplete();else if(this._timelineComplete)this._timelineComplete=!1,this.getIsActiveTimeline()&& player.updateControls()}for(b=this._actionAnimations.length-1;0<=b;b--)this._actionAnimations[b].paused||this._actionAnimations[b].step()};Timeline.prototype.triggerTimelineComplete=function(){if(!this._timelineComplete)this._timelineComplete=!0,this.getIsActiveTimeline()&&player.updateControls(),this._timelineOwner.triggerTimelineComplete()};Timeline.prototype.getIsTimelineComplete=function(){return this._timelineComplete};Timeline.prototype.setResumeTime=function(a){this._resumeTime=a}; Timeline.prototype.initDisplay=function(){this._playing=!1;this._pausedTime=this._resumeTime;this._resumeTime=0;this.seekTimeline(this._pausedTime)};Timeline.prototype.getIsActiveTimeline=function(){return player.timelineManager._activeTimeline==this};Timeline.prototype.getIsPlaying=function(){return this._playing};Timeline.prototype.getCurrentTime=function(a){return a?player.timelineManager.getCurrentTime():this._playing?player.timelineManager.getCurrentTime()-this._startTime:currentTime=this._pausedTime}; Timeline.prototype.resetTimeline=function(){this._playing=!1;this._currentIndex=0;this._timelineAnimations=[]};Timeline.prototype.pauseTimeline=function(){if(this._playing){this._playing=!1;this._actionPauseTime=this._pausedTime=player.timelineManager.getCurrentTime()-this._startTime;for(var a=0;aa&&(a=0);0this._actionAnimations.indexOf(a)&&this._actionAnimations.push(a):0>this._timelineAnimations.indexOf(a)&&this._timelineAnimations.push(a);a.step()}; Timeline.prototype.removeAnimation=function(a){a.userInitiated?(a=this._actionAnimations.indexOf(a),0<=a&&this._actionAnimations.splice(a,1)):(a=this._timelineAnimations.indexOf(a),0<=a&&this._timelineAnimations.splice(a,1))}; Timeline.prototype.destroyRef=function(){player.timelineManager.removeTimeline(this);for(var a=0;a=--d)a.backgroundReady=!0;e&&e()}),b.resource.testIndex=b.resources.length,a.pushResource(b.resource);else if(0>=--d)a.backgroundReady= !0;c&&j.apply(c);return j};b.each(function(b,c){a.background=e(c,a.ref,function(){for(var b=0;b'):$('
'),this.ref.css("display","none"),this.ref.attr("runningindex",Slide.runningIndex++),this.background&&this.background.apply(this.ref),this.ref.get(0).id="slide_"+this.id,this.ref.get(0).item=this,this.fitToContainer(),$.each(this.children,function(a,c){c.createRef&&c.createRef()}), this.populateLists(),this.container.append(this.ref),this.ref.css("width",this.width+"px"),this.ref.css("height",this.height+"px"),player.reorient(!0)}; Slide.prototype.fitToContainer=function(){var a=player.frame.availableSlideWidth,b=player.frame.availableSlideHeight;if(player.currentWindow&&player.currentWindowSlide==this)a=player.currentWindow.width,b=player.currentWindow.height,!player.currentWindow.isPrompt&&player.currentWindow.hasControls&&(b=player.currentWindow.height-40*player.frameScale);else if(player.currentFramedSlide==this||this.offsetParent&&"SlideFrame"==this.offsetParent.innerType)a=this.offsetParent.width,b=this.offsetParent.height; this.scale=1;if((this.width>a||this.height>b)&&(!this.offsetParent||"SlideFrame"!=this.offsetParent.innerType||this.offsetParent.scalecontents)){var c=a/this.width,d=b/this.height;this.scale=Math.min(c,d)}else if(this.widthMath.abs(this.scale-1))this.scale=1;if(player.forceSlideScale)this.scale=player.forceSlideScale;this.y=this.x=0;if(this.width* this.scale');c.attr("width",player.width);c.attr("height",player.height);var d=c.get(0).getContext("2d");this.ref.prepend($(c));var e=0,f=0,g=!1,h=!0;$.each(b,function(a,b){if(player.renderVectorShapes&&player.renderVectorsAsSVG&&b.content.path)b.canSimplify=!1;if(player.renderVectorShapes&&(b.hasImagelib||b.hasTextlib))b.canSimplify=!1;b.canSimplify&&h&&!b.group?f++:(h=!1,b.canSimplify=!1)});var j=function(b, c,d,h){g=!0;var j=function(){e++;if(e==f)m(),$(t).unbind("load"),t.src=Element.PixelSrc,a&&a()},t=new Image;$(t).bind("load",function(){j()});$(t).bind("error",function(){j()});player.renderVectorShapes&&!player.renderVectorsAsSVG&&h&&h.content.path&&!h.hasImagelib&&!h.hasTextlib?e++:t.src=b;l.push({img:t,x:c,y:d,item:h})},l=[],m=function(){$.each(l,function(a,b){if(player.renderVectorShapes&&!player.renderVectorsAsSVG&&b.item&&b.item.content.path&&!b.item.hasImagelib&&!b.item.hasTextlib){var e={canvas:c.get(0), m_nXOffset:b.x,m_nYOffset:b.y,m_nWidth:b.item.width,m_nHeight:b.item.height};ppArt.DrawVector(e,b.item.content.path);b.item.ref.addClass("vector")}else d.drawImage(b.img,b.x,b.y)})};this.background&&this.background.src&&(f++,j(this.background.src,0,0),this.ref.css("background","transparent"));$.each(b,function(a,b){if(b.canSimplify)j(b.content.src,b.x,b.y,b),b.ref.addClass("simplified"),b.simplified=!0,b.ref.attr("src",Element.PixelSrc),b.ref.css("background","transparent"),b.hasEvents||b.ref.remove(), g=!0});a&&!g&&a()};Slide.prototype.pauseClips=function(a,b){$.each(this.clips,function(c,d){(b||!a||!d.layered)&&d.timelinePaused()})};Slide.prototype.notifyTimelinePlayed=function(){for(var a=0;a"+a+"");if(a)this.textTemplate=a=a.replace(/size='(.*?)(pt|)'/ig,"style='font-size:$1pt'"),this.textTemplateHeight=Math.abs(parseInt(b.attr("height"))),this.textTemplateWidth=Math.abs(parseInt(b.attr("width"))),this.textTemplateLeft= parseInt(b.attr("xpos")),this.textTemplateTop=parseInt(b.attr("ypos"));return!0};StageItem.prototype.loadMaskFromXML=function(a){a=$(a).children("mask");if(0this.width)this.width=b;if(c>this.height)this.height=c}this.originalX=this.x;this.originalY=this.y;this.rotatexpos=Math.round($(a).attr("rotatexpos"))||0;this.rotateypos=Math.round($(a).attr("rotateypos"))||0;this.originalRotation=this.rotation=parseInt($(a).attr("rotation"))||0;this.xscale=parseInt($(a).attr("xscale"))||1;this.yscale=parseInt($(a).attr("yscale"))||1;this.depth=parseInt($(a).attr("depth"))||1;if(0==this.depth)this.depth= 1;this.originalZ=this.depth;if(this.depth>this.slide.topZ)this.slide.topZ=this.depth};StageItem.prototype.createResource=function(a,b,c){b=new Resource(this,b,function(){c&&c()});if(!a.resources)a=a.slide;a.pushResource(b);this.resources.push(b);return b}; StageItem.prototype.createRef=function(){if(this.destroyed)return!1;if(!this.parent.ref)return this.parent.createRef(),!1;this.container=this.parent.ref;if(this.ref)return this.render(null,!1,null,"StageItem createRef"),!1;this.ref=$('
');this.ref.addClass(this.type);this.ref.addClass(this.innerType.toLowerCase());this.ref.addClass("item_"+this.id);this.ref.get(0).id=this.getFullObjref();player.showItemInfo&&this.ref.append($('
'+this.id+"
"));this.applySize(this.ref); "dragitem"==this.innerType&&this.setZIndex(this.depth);this.container.append(this.ref);"video"!=this.type&&"audio"!=this.type&&this.bindEvents();for(var a in this.children){var b=this.children[a];b.createRef&&b.createRef()}this.initDrag&&(this.initDrag(),this.convertRefToDragItem());("DropArea"==this.innerType||this.isDropArea)&&this.ref.addClass("droparea");this.announceDragOver&&this.ref.addClass("dragover");this.applyMaskRectangle();this.setVisible(!1);this.nearestScrollAreaAncestor=this.findAncestorOfType("ScrollArea"); return!0};StageItem.prototype.setInteractive=function(){this.ref.addClass("interactive");this.parent.setInteractive&&this.parent.setInteractive()};StageItem.prototype.setZIndex=function(a,b){if(!("Layer"==this.innerType||"ExpandingLabel"==this.innerType)){for(var c in this.children){var d=this.children[c];if(d.depth>a)a=d.depth}this.ref.css("z-index",a);this.depth=a;b&&this.parent&&this.parent.setZIndex&&this.parent.setZIndex(a)}}; StageItem.prototype.bindEvents=function(){var a=this,b=function(b){if(a.isDisabled||swipe.moved)return!1;var c=(b.pageX-a.ref.offset().left+a.xoffset)/player.currentZoom(),f=(b.pageY-a.ref.offset().top+a.yoffset)/player.currentZoom();a.ref.offset();a.ref.offset();swipe.parseEventCoords(b);b=swipe.getSlideCoords(a.slide);return c=Math.abs(a.x)&&1>=Math.abs(a.y)?(this.maskref=$("
"),this.maskref.css("width",a.width),this.maskref.css("height",a.height),this.maskref.css("left",a.x),this.maskref.css("top",a.y),this.maskref.css("z-index",this.depth),this.maskref.show(),this.parent.ref.append(this.maskref),this.maskref.append(this.ref)):(this.maskref=$("
"), this.maskref.css("width",a.width),this.maskref.css("height",a.height),this.maskref.css("left",a.x),this.maskref.css("top",a.y),this.maskref.css("z-index",this.depth),this.maskref.show(),this.parent.ref.append(this.maskref),this.maskref.append(this.ref),this.maskTranslate="translate3d("+-a.x+"px, "+-a.y+"px, 0px) ",this.maskTranslateIE="translate("+-a.x+"px, "+-a.y+"px) ",this.ref.css("-webkit-transform",this.maskTranslate),this.ref.css("-moz-transform",this.maskTranslate),this.ref.css("-ms-transform", this.maskTranslateIE));a.isShapeMask=!0;this.setZIndexBase=StageItem.prototype.setZIndex;this.setZIndex=function(a){this.setZIndexBase(a);this.maskref.css("z-index",this.depth)};this.deepEach(function(b,c){c.ancestorMaskShape=a})}};StageItem.prototype.shouldBindEvent=function(a){if(player.showItemInfo)return!0;var b=this,c=!1;$.each(b.events,function(d,e){if(e.trigger==a)c=!0;else{var f=b.parent;f&&f.shouldBindEvent&&!c&&(c=f.shouldBindEvent(a))}});return c}; StageItem.prototype.bindStoryEvent=function(a,b,c){if(this.shouldBindEvent(b)){var d=this;this.ref.bind(a,function(a){"onrelease"==b&&playerDiagnostics.updateItemInfo(d);var f,g=function(f,g){$.each(f,function(f,h){if(h.trigger==b&&(!c||"function"!=typeof c||c(a)))h.triggerEvent(d,!0),g=!1});return g};f=g(d.events,!0);d.group&&d.group.events&&d.group.events.length&&(f=g(d.group.events,f));return f})}}; StageItem.prototype.bindVarListener=function(a,b){if(void 0===b||isNaN(b))b=0;for(var c=0;cc.textTemplateHeight&&10>h++;)g-=b,a(0,f)}var c=this,d=c.textTemplate;if(d){var d=d.replace(/pt'/ig,"px'"),e=d.match(/\&(.*?);/g);e&&$.each(e,function(a,b){var e=b.replace(/\&|\$|;/g,""),f=c.extractVariable(e); if(null===f||"undefined"===typeof f)f="";!isNaN(parseFloat(f))&&isFinite(f)&&(f=Math.round(100*parseFloat(f))/100);d=d.replace(b,f);c.bindVarListener(e)});if(!c.contentRef)c.contentRef=c.ref;c.contentRef.empty();var f=$(d);f.find("textformat").each(function(a,b){if(""==b.innerHTML)b.innerHTML=" ";var c=$(b),d=parseInt(c.attr("blockindent")),e=parseInt(c.attr("indent"));0"), $(document.body).append(StageItem.contentSizer);StageItem.contentSizer.css("width",c.textTemplateWidth);StageItem.contentSizer.append(f);var g=1,h=0;b(0.05);1>g&&(g+=0.05,a(0,f),b(0.01));e=$('
');e.append(f);c.contentRef.append(e);e=c.textTemplateTop+VectorShape.VARTEXT_MARGIN_TOP;c.contentRef.css("left",c.textTemplateLeft+VectorShape.VARTEXT_MARGIN_LEFT-c.xoffset+"px");c.contentRef.css("top",e+"px");c.contentRef.css("width",c.textTemplateWidth+"px");c.contentRef.css("height", c.textTemplateHeight+"px");f.find("a").each(function(a,b){$(b).click(function(){var a=b.href.replace("event:","");c.handleEvent("onlinkrelease",a,null,!1,!1,!0);return!1})})}};StageItem.prototype.getBitMask=function(){return this.lastRenderedState&&this.stateMasks&&this.stateMasks[this.lastRenderedState]?this.stateMasks[this.lastRenderedState]:this.bitMask}; StageItem.prototype.fixRef=function(){if(!this.isState&&this.ref.get(0).id){var a=$("#"+this.ref.get(0).id);if(a.get(0)&&this.ref.get(0)!=a.get(0))this.ref=a}}; StageItem.prototype.getAABB=function(){var a=this,b=5E3,c=5E3,d=-5E3,e=-5E3;$.each([[0,0],[this.width,0],[this.width,this.height],[0,this.height]],function(f,g){var h=a.matrix.transformPoint(g[0]-a.xoffset,g[1]-a.yoffset),j=h.x,h=h.y;jd&&(d=j);he&&(e=h)});player.showDebugOverlap&&player.testContext&&setTimeout(function(){player.testContext.strokeStyle="rgba(0,0,255,0.5)";player.testContext.strokeRect(b,c,d-b,e-c)},0);return new ppRect(b,c,d,e)}; StageItem.prototype.GetBoundingRect=StageItem.prototype.getAABB; StageItem.prototype.getAABB_simple=function(){if(0==this.rotation){var a={};a.left=this.x+this.dragX;a.top=this.y+this.dragY;a.right=this.x+this.dragX+this.width;a.bottom=this.y+this.dragY+this.height;return a}var a={left:5E3,top:5E3,right:-5E3,bottom:-5E3},b=[[-this.width/2,-this.height/2],[this.width/2,-this.height/2],[this.width/2,this.height/2],[-this.width/2,this.height/2]],c=Math.cos(this.rotation*Math.PI/180),d=Math.sin(this.rotation*Math.PI/180);$.each(b,function(b,f){x=-f[0]*c+f[1]*d;y=f[0]* d-f[1]*c;if(xa.right)a.right=x;if(ya.bottom)a.bottom=y});a.left+=this.x+this.dragX+this.rotatexpos;a.top+=this.y+this.dragY+this.rotateypos;a.right+=this.x+this.dragX+this.rotatexpos;a.bottom+=this.y+this.dragY+this.rotateypos;player.showDebugOverlap&&player.testContext&&setTimeout(function(){player.testContext.strokeStyle="rgba(0,0,255,0.5)";player.testContext.strokeRect(a.left,a.top,a.right-a.left,a.bottom-a.top)},0);return a}; StageItem.prototype.testRotatedOverlap=function(a){var b=this.getAABB(),c=a.getAABB(),d,e,f,g;d=BitMask.max(b.left,c.left);e=BitMask.min(b.right,c.right);f=BitMask.max(b.top,c.top);g=BitMask.min(b.bottom,c.bottom);if(b.rightc.right||b.bottomc.bottom)return!1;if(player.showDebugOverlap){if(!player.testCanvas)player.testCanvas=$(""),$("#slideframe").append(player.testCanvas), player.testContext=player.testCanvas.get(0).getContext("2d"),player.testContext.fillStyle="rgba(255,255,0,0.5)";player.testCanvas.show();clearTimeout(player.testCanvasClear);player.testCanvasClear=setTimeout(function(){player.testCanvas.hide()},1E3);if(!player.showDebugOverlapPersistent)player.testContext.clearRect(0,0,1E3,1E3),player.testContext.fillStyle="rgba(0,255,255,0.2)",player.testContext.fillRect(b.left,b.top,b.right-b.left,b.bottom-b.top),player.testContext.fillStyle="rgba(0,0,255,0.2)", player.testContext.fillRect(c.left,c.top,c.right-c.left,c.bottom-c.top),player.testContext.strokeStyle="rgba(255,0,255,0.8)",player.testContext.strokeRect(d,f,e-d,g-f)}b=e-d;g=b*(g-f);c=Math.max(Math.min(parseInt(g/256),64),1);for(e=0;e"),this.parent.ref.append(this.modalfence),this.modalfence.bind("click",function(){return!1});player.modalLayer=this;this.modalfence.show()}this.slide.addToLayerStack(this);this.depth=++this.slide.topZ;this.ref.css("z-index",this.depth);this.resume&&this.compactResumeData&&this.restoreFromResumeData(this.compactResumeData);this.timeline.initDisplay();player.timelineManager.addTimeline(this.timeline);this.setVisible(!0);if(b&&0');this.ref.append(this.contentRef);this.ref.css("width",a.originalWidth);this.ref.css("height",a.originalHeight);var b=$(a.xml).find("textdata").first().attr("valign");b&&a.contentRef.addClass("v"+b);this.markerEffect&&this.createMarkerEffectRef();b=$('');if(player.useBackgroundCanvasWorkaround)this.imageBufferName="b"+this.getFullObjref().replace(/[^0-9a-zA-Z]+/g,""),b=$('
'),b.css("width",a.originalWidth),b.css("height",a.originalHeight),b.css("background","-webkit-canvas("+this.imageBufferName+")");b.css("position","absolute");b.css("-webkit-transform","translate3d(0px,0px, 0px)");this.ref.append(b);this.jcanvas=b;this.canvas=b.get(0); this.context=player.useBackgroundCanvasWorkaround?document.getCSSCanvasContext("2d",this.imageBufferName,a.originalWidth,a.originalHeight):this.canvas.getContext("2d");if(window.chrome&&!player.suppressVectorImage)this.vectorImage=document.createElement("img"),this.vectorImage.style.webkitTransform="translate3d(0px,0px, 0px)",this.vectorImage.style.position="absolute",this.ref.append(a.vectorImage);if(this.renderAsBackground)this.altRef=$('
'),this.altRef.css("width", a.originalWidth),this.altRef.css("height",a.originalHeight),this.ref.append(this.altRef);this.lastRenderedState=null;this.render(a.variables.ObjectState,!0,null,"VectorShape createRef");player.showLinkAreas&&$.each(a.links,function(b,d){d.createRef(a)});a.isShapeMask&&a.ref.remove();return!0}; VectorShape.prototype.createMarkerEffectRef=function(){this.markerEffectRef=$('');this.markerEffectRef.css("position","absolute");var a=this.markerEffectRef.get(0).getContext("2d"),b=this.markerEffect.width/2;switch(this.markerEffect.type){case "swirl":this.markerEffectRef.addClass("spinning");a.moveTo(b,b);a.arc(b,1.1*b,0.87*b,3*Math.PI/2,2*Math.PI,!1);a.lineTo(b,1.4*b);a.closePath();b= a.createLinearGradient(0,0,0,this.markerEffect.height);b.addColorStop(0,"rgba(255,255,255,0)");b.addColorStop(0.5,"rgba(255,255,255,1)");b.addColorStop(1,"rgba(255,255,255,1)");a.fillStyle=b;a.fill();break;case "glow":this.markerEffectRef=$('
'),this.markerEffectRef.css("position","absolute"),this.markerEffectRef.css("width",this.width),this.markerEffectRef.css("height",this.height),this.markerEffectRef.css("border-radius",this.width/2)}this.ref.append(this.markerEffectRef); this.updateMarkerEffectPosition()};VectorShape.prototype.updateMarkerEffectPosition=function(){if(this.markerEffect)switch(this.markerEffect.type){case "swirl":var a=-(this.markerEffect.height-this.height)/2-this.yoffset;this.markerEffectRef.css("left",-(this.markerEffect.width-this.width)/2-this.xoffset);this.markerEffectRef.css("top",a);break;case "glow":this.markerEffectRef.css("left",-this.xoffset),this.markerEffectRef.css("top",-this.yoffset)}}; VectorShape.prototype.destroyRef=function(){this.destroyBaseRef();if(this.canvas)$(this.canvas).remove(),this.canvas=null;if(null!=this.vectorImage)this.vectorImage.parentNode&&this.vectorImage.parentNode.removeChild(this.vectorImage),this.vectorImage.src="",this.vectorImage=null;if(this.contentRef)this.contentRef.remove(),this.contentRef=null;this.bitMask=this.lastRenderedState=null;this.stateMasks={}};VectorShape.prototype.renderCallback=function(){}; StageItem.prototype.getMask=function(){var a={path:"",offX:0,offY:0,transform:null,type:""};if(this.maskpath)a.path=this.maskpath,a.type="maskpath";else if(this.shapemaskid){var b=this.parseObjref(this.shapemaskid).target;a.path=b.content.path;a.transform=b.currentTransform;a.type="shapemask";a.item=b}return a}; VectorShape.prototype.render=function(a,b,c,d,e,f,g){if(this.ref&&this.visible){if(a)this.nextRenderState=a;else{if(this.nextRenderState)return;a=this.lastRenderedState?this.lastRenderedState:"_default"}this.allResourcesLoaded()?(b=b||this.renderOnUpdateValues&&this.renderOnUpdateValues.queued&&this.renderOnUpdateValues.force,this.renderOnUpdateValues={},this.renderOnUpdateValues.closePathCallback=c,this.renderOnUpdateValues.debugFrom=d,this.renderOnUpdateValues.deferred=e,this.renderOnUpdateValues.strLinkId= f,this.renderOnUpdateValues.bDoRender=!0,this.renderOnUpdateValues.state=a,this.renderOnUpdateValues.force=b,this.renderScheduled=this.renderOnUpdateValues.queued=!0,g?this.renderOnUpdate():player.addToRenderQueue(this)):(this.lastRenderedState=a,this.blocked=!0)}};VectorShape.prototype.setVisible=function(a){if(a!=this.visible)(this.visible=a)&&this.render()}; VectorShape.prototype.renderOnUpdate=function(){var a=this.renderOnUpdateValues.state,b=this.renderOnUpdateValues.strLinkId;this.renderScheduled=this.renderOnUpdateValues.bDoRender=!1;this.nextRenderState=null;if(this.ref&&!this.destroyed&&this.visible){var c=this;if(this.renderOnUpdateValues.force||a!=c.lastRenderedState)if(c.allResourcesLoaded()){c.blocked=!1;if(!c.canvas)c.canvas=$(this.ref).find("canvas").get(0);if(player.useSafeCanvas)this.ref.css("background-color","#"+parseInt(900*Math.random()+ 1100)%1E3);else{c.lastRenderedState=a;c.m_nXOffset=c.xoffset;c.m_nYOffset=c.yoffset;c.width=c.width;c.height=c.height;var d=new ppTextLib(c.xml),e=c.content.path;if(c.states[a])e=c.states[a].path,c.rectShape=new ppRect(c.states[a].left,c.states[a].top,c.states[a].right,c.states[a].bottom);else if(this.originalRectShape)this.rectShape=this.originalRectShape;if(c.rectShape&&0==c.rectShape.right&&0==c.rectShape.bottom)c.rectShape.right=c.width,c.rectShape.bottom=c.height;if(e){var f=c.getMask(),g=f.path, h=this.context=player.useBackgroundCanvasWorkaround?document.getCSSCanvasContext("2d",this.imageBufferName,c.originalWidth,c.originalHeight):this.canvas.getContext("2d"),j=null;g&&"shapemask"==f.type&&f.item.registerVariableEventSubscriber(c,"animationstep");g&&(j=function(a){h.setTransform(1,0,0,1,0,0);f.item&&(f.item.m_nXOffset!=a.offX||f.item.m_nYOffset!=a.offY)&&h.translate(f.item.m_nXOffset-a.offX,f.item.m_nYOffset-a.offY);if(null!=f.transform&&null!=f.transform.scale&&!isNaN(f.transform.scale.x)){if(0== f.transform.scale.y)f.transform.scale.y=1.0E-6;if(0==f.transform.scale.x)f.transform.scale.x=1.0E-6;h.scale(f.transform.scale.x/100,f.transform.scale.y/100)}ppMask.DrawPath(h,c.rectShape,g,f.offX,f.offY);h.closePath();h.clip();h.setTransform(1,0,0,1,0,0);if(player.drawMaskDebugShapes){if(!c.debugMaskContext)a=$('"),$(document.body).append(a),c.debugMaskContext= a.get(0).getContext("2d");c.debugMaskContext.fillStyle="#ccc";c.debugMaskContext.strokeStyle="#000";c.debugMaskContext.clearRect(0,0,1E3,1E3);c.debugMaskContext.fillRect(0,0,1E3,1E3);c.debugMaskContext.fillStyle="#000";c.debugMaskContext.beginPath();ppMask.DrawPath(c.debugMaskContext,c.rectShape,g,f.offX,f.offY);c.debugMaskContext.fill();c.debugMaskContext.fillStyle="#66f";c.debugMaskContext.font="10px sans-serif";c.debugMaskContext.fillText(c.getFullObjref(),0,20)}});ppArt.itemID=c.id;ppArt.item= c;ppArt.m_bMaskMode=!1;ppArt.DrawVector(c,e,d,player.fontlib,c.imagelib,b,j);if(this.overStepped)c.height=c.requiredRenderHeight,c.rectShape.bottom=c.height,ppArt.DrawVector(c,e,d,player.fontlib,c.imagelib,b,j),console.warn("Vectorshape Overstep",c.id,c);c.imageBitMaskInfo=ppArt.m_arrMaskRefs&&0=c.canvas.width&&0>=c.canvas.height)c.canvas.width=1,c.canvas.height=1;if(null!= c.vectorImage)try{var l=c.canvas.toDataURL("image/png");c.canvas.style.visibility="hidden";c.vectorImage.src=l}catch(m){c.canvas.style.visibility="visible",c.vectorImage.style.visibility="hidden"}if(player.drawMaskDebugShapes&&c.debugMaskContext){if(!c.debugCopyContext)b=$(''),$(document.body).append(b),c.debugCopyContext=b.get(0).getContext("2d");c.debugCopyContext.fillStyle="#ccc"; c.debugCopyContext.fillRect(0,0,1E3,1E3);c.debugCopyContext.drawImage(c.canvas,0,0,c.width,c.height,0,0,c.width,c.height)}for(var k in c.links)if(b=c.links[k],d=ppArt.m_listTextOffsets[b.textid])b.linkdx=d.x,b.linkdy=d.y;c.m_nXOffset=Math.round(c.m_nXOffset);c.m_nYOffset=Math.round(c.m_nYOffset);if(c.m_nXOffset!=c.xoffset||c.m_nYOffset!=c.yoffset)c.xoffset=c.m_nXOffset,c.yoffset=c.m_nYOffset,c.applySize(c.ref),this.updateMarkerEffectPosition&&c.updateMarkerEffectPosition();if(a&&!c.stateMasks)c.stateMasks= {};k=function(a){var b=null;if(player.usePixelTesting)return new BitMask(!0,c.width,c.height);if(a){var d=null;a.maskRef&&(d=player.bitmasks[a.maskRef]);if(a.isOpaque||!d)return new BitMask(!0,a.width*a.scaleX,a.height*a.scaleY,a.width,a.height,c.xoffset,c.yoffset);b=new BitMask(!1,a.width*a.scaleX,a.height*a.scaleY,a.width,a.height,c.xoffset,c.yoffset);b.loadFromRLE(d);b.pixels&&!b.isOpaque&&(c.width!=c.canvas.width||c.height!=c.canvas.height)&&b.resize(c.canvas.width,c.canvas.height,-c.xoffset, -c.yoffset);return b}if(c.hasLinks)return new BitMask(!0,c.canvas.width,c.canvas.height,c.canvas.width,c.canvas.height,c.xoffset,c.yoffset);b=new BitMask(!1,c.canvas.width,c.canvas.height);if(!c.context)c.context=c.canvas.getContext("2d");try{b.loadFromContext(c.context)}catch(e){b.isOpaque=!0}return b};if(a&&!c.stateMasks[a])c.stateMasks[a]=k(c.imageBitMaskInfo);else if(!c.bitMask||c.bitMask.isOpaque)c.bitMask=k(c.imageBitMaskInfo);player.showBitmask&&c.showBitmask&&c.showBitmask()}c.renderForeground&& c.renderForeground();c.updateDragPosition&&c.dragging&&c.updateDragPosition()}}else c.lastRenderedState=a,c.blocked=!0}this.renderOnUpdateValues.queued=!1};VectorShape.prototype.showBitmask=function(){var a=this.getBitMask();if(!this.debugMask)this.debugMask=document.createElement("canvas"),this.ref.append(this.debugMask),this.debugMask.style.webkitTransform="translate3d("+a.xoffset+"px,"+a.yoffset+"px, 0px)",this.debugMask.style.position="absolute";a.drawDebug(this.debugMask)}; VectorShape.prototype.renderForeground=function(){if(this.textlib)this.ref.addClass("textlib"),this.textTemplate||this.updateTextTemplate(),this.renderTextTemplate();else if(this.hasImagelib){if(!this.image)this.image=new Image,this.image.src=this.content.src;this.ref.css("background","url("+escape(this.image.src)+")");this.ref.removeClass("failedcanvas")}};VectorShape.prototype.resetStageItem=StageItem.prototype.reset; VectorShape.prototype.reset=function(a,b){this.resetStageItem(a,b);if(this.ref)this.x=this.originalX,this.y=this.originalY};var Media=function(){this.playState=0;this.syncToTimeline=this.playOnUnblock=this.blocked=!1;this.syncTargetTimeline=null;this.triggerTime=-1;this.autoplay=!1;this.autoplayTime=-1;this.autoplayTimeline=null;this.isMedia=!0;this.mediaParent=null;this.silentMode=!1;this.intervalSilent=null};Media.prototype=new StageItem;Media.playState={PAUSED:0,TIMELINE_PAUSED:1,VIDEO_BUSY:2,BLOCKED_PLAYING:3,PLAYING:4,COMPLETE:5};Media.prototype.destroyMediaBaseRef=StageItem.prototype.destroyRef; Media.prototype.resetStageItem=StageItem.prototype.reset;Media.prototype.resetElement=Element.prototype.reset;Media.prototype.debug_trace=function(){};Media.prototype.getTimelineAncestor=function(){for(var a=this.parent,b=4;a&&0');this.container.append(this.ref);this.audioRef=this.ref.get(0);this.audioRef.item=this;this.ref.bind("canplay",function(){a.checkReady()});this.ref.bind("timeupdate",function(){a.checkReady()});this.ref.bind("error",function(){a.onLoadError()});this.ref.bind("stalled",function(){a.onLoadError()}); this.ref.bind("ended",function(){a.playState=Media.playState.COMPLETE;a.handleEvent("onmediacomplete")});this.ref.bind("play",function(){a.correctPosition()});return!0};Audio.setMasterVolume=function(a){Audio.masterVolume=a};Audio.prototype.checkReady=function(){this.audioRef&&3<=this.audioRef.readyState&&this.unblockIfBlocked()};Audio.prototype.onLoadError=function(){this.setSilent()}; Audio.prototype.correctPosition=function(){if(!isNaN(this.correctedPosition)&&this.shouldSetPosition)try{this.setCurrentTime(me.correctedPosition),this.shouldSetPosition=!1}catch(a){}};Audio.prototype.destroyRef=function(){this.pauseClip();this.audioRef=this.audioRef.item=null;this.destroyBaseRef()};Audio.prototype.reset=function(a){this.resetMedia(a);if(!a)this.pauseClip(),this.currentTime=0};Audio.prototype.readyOrLoad=function(){return this.audioRef&&3<=this.audioRef.readyState?!0:!1}; Audio.prototype.playClip=function(){if(this.playState!=Media.playState.PLAYING){if(this.syncToTimeline&&this.syncTargetTimeline&&0<=this.triggerTime)this.currentTime=(this.syncTargetTimeline.getCurrentTime()-this.triggerTime)/1E3;if(0>this.currentTime||1E3*this.currentTime>=this.content.duration)return this.pauseClip(),!1;if(!this.playClipBase())return!1;if(this.audioRef&&this.audioRef.play){if(this.currentTime!=this.audioRef.currentTime&&void 0!==this.currentTime)try{this.setCurrentTime(this.currentTime)}catch(a){}try{this.audioRef.play(), this.audioRef.volume=Math.min(Audio.masterVolume*player.clipVolume,1)}catch(b){this.setSilent()}}return!0}};Audio.prototype.pauseClip=function(){this.pauseSimple();this.pauseClipBase()};Audio.prototype.pauseSimple=function(){if(this.audioRef&&this.audioRef.pause)try{this.audioRef.pause()}catch(a){}};Audio.prototype.getCurrentTime=function(){return this.audioRef?this.audioRef.currentTime:0}; Audio.prototype.setCurrentTime=function(a){if(this.audioRef&&(1E3*aplayer.TICK_DURATION)this.videoref.currentTime=this.currentTime};Video.prototype.setVolume=function(a){if(this.videoref)this.videoref.volume=a};Video.prototype.readyOrLoad=function(){return 3<=this.videoref.readyState?!0:!1}; Video.prototype.isPointObscured=function(a,b,c,d){var e=this.matrix.unTransformPoint(a,b);return this.content.showcontrols&&e.y>this.height-35?!0:StageItem.prototype.isPointObscured.call(this,a,b,c,d)};Video.getStoreReference=function(){return""};Video.getSrcFromStoreReference=function(){return null};Video.addToRefStore=function(){return null};var LinkArea=function(a,b,c,d){this.textid=d;this.linkdy=this.linkdx=0;this.container=a||$(document.body);this.slide=b;this.layer=c;this.ref=null;this.constructElement()};LinkArea.prototype=new VectorShape;LinkArea.prototype.innerType="LinkArea";LinkArea.prototype.objectType="Item";LinkArea.prototype.loadBaseFromXML=StageItem.prototype.loadFromXML;LinkArea.prototype.renderBase=VectorShape.prototype.render;LinkArea.prototype.renderOnUpdate=VectorShape.prototype.renderOnUpdate; LinkArea.prototype.loadFromXML=function(a,b,c){this.loadBaseFromXML(a,b,c);b=$(a).children("textdata").children("vectortext").children("pr");if(1==b.length){a=$(a).children("textdata").children("vectortext");if(null!=$(a).attr("top"))this.originalRectShape=this.rectShape=new ppRect(parseInt($(a).attr("left")),parseInt($(a).attr("top")),parseInt($(a).attr("right")),parseInt($(a).attr("bottom")));if(1==b.length)this.content.path=PathLib.getPathFromXML(b)}this.type="LinkArea"}; LinkArea.prototype.createRef=function(){if(!player.showLinkAreas)return!0;if(this.ref)return!1;this.ref=$("
");this.applySize(this.ref);this.ref.show();this.parent.ref.append(this.ref);return!0};LinkArea.prototype.render=function(a){switch(a){case "onrollover":this.parent.render(this.parent.lastRenderedState,!0,null,"LinkArea render",!1,this.id);break;case "onrollout":this.parent.render(null,!0)}}; LinkArea.prototype.handleIfOver=function(a,b,c){b=this.parent.getCanvasPoint(b.x,b.y);if(b.x>this.xpos+this.linkdx&&b.xthis.ypos+this.linkdy&&b.ythis.xpos+this.linkdx&&c.xthis.ypos+this.linkdy&&c.ythis.content.maxchars)this.input.get(0).value=a.substr(0,this.content.maxchars);return!0}; TextInput.prototype.createRef=function(){if(this.ref)return!1;var a=this;this.container=this.parent.ref;this.ref=$('
');this.applySize(this.ref);this.container.append(this.ref);var b=this.content.multiline?$("