var buildNumber=89;var buildDate="20140718 09:21";(function(a,b){function c(a){var b=oa[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(!C)C=q.createElement("iframe"),C.frameBorder=C.width=C.height=0;b.appendChild(C);if(!R||!C.createElement)R=(C.contentWindow||C.contentDocument).document,R.write(("CSS1Compat"===q.compatMode?"":"")+""), R.close();c=R.createElement(a);R.body.appendChild(c);d=i.css(c,"display");b.removeChild(C)}ea[a]=d}return ea[a]}function fa(a){return i.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var q=a.document,bb=a.navigator,cb=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/,k=/^\s+/,j=/\s+$/, m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,l=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,u=/(webkit)[ \/]([\w.]+)/,r=/(opera)(?:.*version)?[ \/]([\w.]+)/,D=/(msie) ([\w.]+)/,I=/(mozilla)(?:.*? rv:([\w.]+))?/,L=/-([a-z]|[0-9])/ig,z=/^-ms-/,s=function(a,b){return(b+"").toUpperCase()},w=bb.userAgent,Z,T,db=Object.prototype.toString,ha=Object.prototype.hasOwnProperty,ia=Array.prototype.push,W=Array.prototype.slice, ua=String.prototype.trim,va=Array.prototype.indexOf,wa={};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=m.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 W.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)?ia.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();Z.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(W.apply(this,arguments),"slice",W.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:ia,sort:[].sort,splice:[].splice}; d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,c,e,f,t,g=arguments[0]||{},h=1,i=arguments.length,K=!1;"boolean"===typeof g&&(K=g,g=arguments[1]||{},h=2);"object"!==typeof g&&!d.isFunction(g)&&(g={});i===h&&(g=this,--h);for(;hc?Math.max(0,d+c):c:0;ca.indexOf("compatible")&& I.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){wa["[object "+b+"]"]=b.toLowerCase()}); w=d.uaMatch(w);if(w.browser)d.browser[w.browser]=!0,d.browser.version=w.version;if(d.browser.webkit)d.browser.safari=!0;i.test("\u00a0")&&(k=/^[\s\xA0]+/,j=/[\s\xA0]+$/);g=d(q);q.addEventListener?T=function(){q.removeEventListener("DOMContentLoaded",T,!1);d.ready()}:q.attachEvent&&(T=function(){"complete"===q.readyState&&(q.detachEvent("onreadystatechange",T),d.ready())});return d}(),oa={};i.Callbacks=function(a){var a=a?oa[a]||c(a):{},d=[],e=[],f,g,h,k,j,m=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?m(f):"function"===g&&(!a.unique||!n.has(f))&&d.push(f)},l=function(b,c){c=c||[];f=!a.memory||[b,c];g=!0;j=h||0;h=0;for(k=d.length;d&&j=f&&a&&i.isFunction(a.promise)?a:i.Deferred(),j=k.promise();if(1
a";c=j.getElementsByTagName("*");d=j.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};e=q.createElement("select");f=e.appendChild(q.createElement("option"));c=j.getElementsByTagName("input")[0];b={leadingWhitespace:3=== j.firstChild.nodeType,tbody:!j.getElementsByTagName("tbody").length,htmlSerialize:!!j.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"!==j.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 j.test}catch(m){b.deleteExpando=!1}!j.addEventListener&&j.attachEvent&&j.fireEvent&&(j.attachEvent("onclick",function(){b.noCloneEvent=!1}),j.cloneNode(!0).fireEvent("onclick"));c=q.createElement("input");c.value="t";c.setAttribute("type","radio");b.radioValue="t"===c.value; c.setAttribute("checked","checked");j.appendChild(c);d=q.createDocumentFragment();d.appendChild(j.lastChild);b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;b.appendChecked=c.checked;d.removeChild(c);d.appendChild(j);j.innerHTML="";if(a.getComputedStyle)c=q.createElement("div"),c.style.width="0",c.style.marginRight="0",j.style.width="2px",j.appendChild(c),b.reliableMarginRight=0===(parseInt((a.getComputedStyle(c,null)||{marginRight:0}).marginRight,10)||0);if(j.attachEvent)for(h in{submit:1, change:1,focusin:1})c="on"+h,k=c in j,k||(j.setAttribute(c,"return;"),k="function"===typeof j[c]),b[h+"Bubbles"]=k;d.removeChild(j);d=e=f=c=j=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);j=q.createElement("div");a.appendChild(j);j.innerHTML="
t
"; g=j.getElementsByTagName("td");k=0===g[0].offsetHeight;g[0].style.display="";g[1].style.display="none";b.reliableHiddenOffsets=k&&0===g[0].offsetHeight;j.innerHTML="";j.style.width=j.style.paddingLeft="1px";i.boxModel=b.boxModel=2===j.offsetWidth;if("undefined"!==typeof j.style.zoom)j.style.display="inline",j.style.zoom=1,b.inlineBlockNeedsLayout=2===j.offsetWidth,j.style.display="",j.innerHTML="
",b.shrinkWrapBlocks=2!==j.offsetWidth;j.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;"; j.innerHTML="
";c=j.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);j=null;i.extend(b,e)}});return b}();var Wa=/^(?:\{.*\}|\[.*\])$/,Va=/([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,m="events"===c;if(k&&j[k]&&(m||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(m&& !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,j=a.nodeType,k=j?i.cache:a,m=j?a[h]:h;if(k[m]){if(b&&(d=c?k[m]:k[m].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);m=i.event.special[g]||{};if(!(m.trigger&&!1===m.trigger.apply(e,d))){n= [[e,m.bindType||g]];if(!f&&!m.noBubble&&!i.isWindow(e)){l=m.delegateType||g;h=Da.test(l+g)?e:e.parentNode;for(k=null;h;h=h.parentNode)n.push([h,l]),k=h;k&&k===e.ownerDocument&&n.push([k.defaultView||k.parentWindow||a,l])}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,m=/\r\n/g,l=/\W/;[0,0].sort(function(){j=!1;return 0});var n=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,t,m=!0,l=n.isXML(b),v=[],O=a;do if(d.exec(""),h=d.exec(O))if(O=h[3],v.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&&!l.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)){n=function(b,c,d,e){c=c||q;if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return I(c.getElementsByTagName(b),d);if(f[2]&&o.find.CLASS&&c.getElementsByClassName)return I(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return I([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return I([g],d)}else return I([],d)}try{return I(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 I(c.querySelectorAll("[id='"+i+"'] "+b),d)}catch(t){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)n[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}n.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.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})();n.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}; n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var w=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,Ha=/<([\w:]+)/,tb=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", "
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ka=k(q);w.optgroup=w.option;w.tbody=w.tfoot=w.colgroup=w.caption=w.thead;w.th=w.td;if(!i.support.htmlSerialize)w._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(sb,""):null;if("string"===typeof a&&!vb.test(a)&&(i.support.leadingWhitespace||!la.test(a))&&!w[(Ha.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ga,"<$1>");try{for(var c=0,d=this.length;ch.length&&g===q&&"<"===h.charAt(0)&&!wb.test(h)&& (i.support.checkClone||!Ja.test(h))&&(i.support.html5Clone||!Ia.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=(Ha.exec(h)||["",""])[1].toLowerCase();var j=w[f]||w._default,m=j[0],l=b.createElement("div");b===q?Ka.appendChild(l):k(b).appendChild(l);for(l.innerHTML=j[1]+h+j[2];m--;)l= l.lastChild;if(!i.support.tbody){m=tb.test(h);j="table"===f&&!m?l.firstChild&&l.firstChild.childNodes:""===j[1]&&!m?l.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&&la.test(h)&&l.insertBefore(b.createTextNode(la.exec(h)[0]),l.firstChild);h=l.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,Kb=/^(?:select|textarea)/i,qa=/\s+/,Lb=/([?&])_=[^&]*/,Qa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Ra=i.fn.load,da={},Sa={},N,G,Ta=["*/"]+["*"];try{N=cb.href}catch(Rb){N=q.createElement("a"),N.href= "",N=N.href}G=Qa.exec(N.toLowerCase())||[];i.fn.extend({load:function(a,c,d){if("string"!==typeof a&&Ra)return Ra.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(Jb, "")).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||Kb.test(this.nodeName)||Gb.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(Oa,"\r\n")}}):{name:b.name,value:c.replace(Oa, "\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?ra(a,i.ajaxSettings):(b=a,a=i.ajaxSettings);ra(a, b);return a},ajaxSettings:{url:N,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(G[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","*":Ta},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:z(da),ajaxTransport:z(Sa),ajax:function(a,c){function d(a,c,l,n){if(2!==z){z=2;q&&clearTimeout(q);u=b;p=n||"";s.readyState=0a||304===a){if(e.ifModified){if(F=s.getResponseHeader("Last-Modified"))i.lastModified[m]=F;if(F=s.getResponseHeader("Etag"))i.etag[m]=F}if(304===a)n="notmodified",t=!0;else try{F=e;F.dataFilter&&(l=F.dataFilter(l,F.dataType));var ga=F.dataTypes;A={};var D,J,X=ga.length,M,B=ga[0],Q,N,S,G,H;for(D=1;Da&&(a=0);s.status=a;s.statusText=""+(c||n);t?h.resolveWith(f,[v,n,s]):h.rejectWith(f,[s,n,o]);s.statusCode(k);k=b;L&&g.trigger("ajax"+ (t?"Success":"Error"),[s,e,t?v:o]);j.fireWith(f,[s,n]);L&&(g.trigger("ajaxComplete",[s,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,u,q,r,z=0,L,w,s={readyState:0,setRequestHeader:function(a,b){if(!z){var c=a.toLowerCase(),a=n[c]=n[c]||a;l[a]=b}return this},getAllResponseHeaders:function(){return 2=== z?p:null},getResponseHeader:function(a){var c;if(2===z){if(!o)for(o={};c=Fb.exec(p);)o[c[1].toLowerCase()]=c[2];c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){if(!z)e.mimeType=a;return this},abort:function(a){a=a||"abort";u&&u.abort(a);d(0,a);return this}};h.promise(s);s.success=s.done;s.error=s.fail;s.complete=j.add;s.statusCode=function(a){if(a){var b;if(2>z)for(b in a)k[b]=[k[b],a[b]];else b=a[s.status],s.then(b,b)}return this};e.url=((a||e.url)+"").replace(Eb,"").replace(Ib, G[1]+"//");e.dataTypes=i.trim(e.dataType||"*").toLowerCase().split(qa);if(null==e.crossDomain)r=Qa.exec(e.url.toLowerCase()),e.crossDomain=!(!r||!(r[1]!=G[1]||r[2]!=G[2]||(r[3]||("http:"===r[1]?80:443))!=(G[3]||("http:"===G[1]?80:443))));if(e.data&&e.processData&&"string"!==typeof e.data)e.data=i.param(e.data,e.traditional);J(da,e,c,s);if(2===z)return!1;L=e.global;e.type=e.type.toUpperCase();e.hasContent=!Hb.test(e.type);L&&0===i.active++&&i.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+= (Pa.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,!1===e.cache)){r=i.now();var E=e.url.replace(Lb,"$1_="+r);e.url=E+(E===e.url?(Pa.test(e.url)?"&":"?")+"_="+r:"")}(e.data&&e.hasContent&&!1!==e.contentType||c.contentType)&&s.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,i.lastModified[m]&&s.setRequestHeader("If-Modified-Since",i.lastModified[m]),i.etag[m]&&s.setRequestHeader("If-None-Match",i.etag[m]));s.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]? e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+Ta+"; q=0.01":""):e.accepts["*"]);for(w in e.headers)s.setRequestHeader(w,e.headers[w]);if(e.beforeSend&&(!1===e.beforeSend.call(f,s,e)||2===z))return s.abort(),!1;for(w in{success:1,error:1,complete:1})s[w](e[w]);if(u=J(Sa,e,c,s)){s.readyState=1;L&&g.trigger("ajaxSend",[s,e]);e.async&&0z)d(-1,C);else throw C;}}else d(-1,"No Transport");return s}, 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)E(f,a[f],c,e);return d.join("&").replace(Db,"+")}});i.extend({active:0,lastModified:{},etag:{}});var Mb=i.now(),ba=/(\=)\?(&|$)|\?\?/i;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+Mb++}});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&&(ba.test(b.url)||c&&ba.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(ba,k),b.url===h&&(c&&(j=j.replace(ba,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 na= a.ActiveXObject?function(){for(var a in U)U[a](0,1)}:!1,Nb=0,U;i.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&L()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:L;(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,na&&delete U[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(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=l.text?200:404:1223===j&&(j=204)}}}catch(p){e||f(-1,p)}l&&f(j,k,l,m)};!c.async||4===g.readyState?d():(h=++Nb,na&&(U||(U={},i(a).unload(na)),U[h]=d),g.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ea={},C,R,Ob=/^(?:toggle|show|hide)$/,Pb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,sa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width", "marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Y;i.fn.extend({show:function(a,b,c){if(a||0===a)return this.animate(M("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;setTimeout("trace.logShouldClear = true",100)}};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 l;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"+k;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(l in b)this.options[l]=b[l];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=++l;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"+k+";"+("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"+k;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"+k:j+"0,"+a+"px"+k;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(":"("),k=c?",0)":")",l=0;window.iScroll=a})();var util={};util.format=function(a){var b=util.format.arguments[1],c=1;if("object"==typeof b){for(key in b)a=a.replace("{"+key+"}",b[key]);return a}!b||!b.splice?b=util.format.arguments:c=0;for(var d=c;db?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.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.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.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.m[0]+","+this.m[1]+","+this.m[2]+","+this.m[3]+","+this.m[4]+","+this.m[5]+")"};var Element=function(){this.ref=this.container=null;this.events=[];this.actionGroups={};this.variables={};this.states={};this.parent=null;this.children={};this.log=[]};Element.prototype.objectType="Element";Element.prototype.innerType="Element";Element.PixelSrc="data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="; Element.prototype.restoreVariableResumeData=function(a){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;f<=e;)e&f&&(dh;m="greater than";break;case "gte":l=k>=h;m="greater than or equal to";break;case "lt":l=k");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",++c.topZ);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");$(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,k="true"==$(a).attr("resizable")?1:0,l=parseInt($(a).attr("width")),a=parseInt($(a).attr("height")),e="location="+g+",menubar="+h+",resizable="+k+",status="+e+",scrollbars="+j+",toolbar="+ f;switch(d){case "fullscreen":e+=",width="+(screen.width-33)+",height="+(screen.height-150);break;case "custom":e+=",width="+l+",height="+a}story.popWindow=window.open(b,c,e);story.popWindow&&story.popWindow.focus&&story.popWindow.focus()};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);return 0<=c.x&&c.x<=this.width&&0<=c.y&&c.y<=this.height}; Element.prototype.deepEach=function(a,b,c){isNaN(c)&&(c=0);$.each(this.children,function(d,e){if(!b||b(e))a(d,e,c),e.deepEach&&e.deepEach(a,b,c+1)})};Element.prototype.getAbsoluteMatrix=function(){for(var a=this.matrix.copy(),b=this.parent,c=0;b&&b.matrix&&10>c++;)a.multiply(b.matrix),b=b.parent;return a}; Element.prototype.updateMatrixComplete=function(a){this.parent&&this.parent.updateMatrixComplete&&this.parent.updateMatrix&&this.parent.updateMatrixComplete(!1);this.updateMatrix();a&&this.deepEach(function(a,c){c.matrix&&c.isStageItem&&c.updateMatrix()})};Element.prototype.getAnimationTime=function(){return this.currentTime};var Storyline=function(a){this.container=a;this.scenes=[];this.allSlides=[];this.slideLookup={};this.media=[];this.slideDraws=[];this.startingslide=null;this.quizzes={};this.timers={};this.pathlibs={};this.properties={};this.currentSceneIndex=0;this.constructElement()};Storyline.prototype=new Element;Storyline.prototype.objectType="Storyline";Storyline.prototype.innerType="Storyline"; Storyline.prototype.saveToLocalStorage=function(){if(player.useCompactResume){var a=story.toResumeData();try{localStorageAlias[story.resumeID]=a}catch(b){}}else a=JSON.stringify(story.toData(!0)),localStorageAlias[story.resumeID]=a};Storyline.prototype.clearLocalStorage=function(){localStorageAlias.removeItem(story.resumeID)}; Storyline.prototype.toResumeData=function(){var a="";if(0==player.history.length&&null==player.currentWindowSlide)return"";var b="",c=0;$.each(this.allSlides,function(a,d){d.variables.Visited&&d.trackviews&&(b+=bwChunk.UBase10toN(d.slideIndexForResume,2),c++)});1==c&&(b="");var a=a+bwChunk.CreateChunk(b),d="",e=Window.getWindowResumeData(0,story.allSlides[player.slideIndex],player.history),d=d+bwChunk.CreateChunk(e),f=0;$.each(this.children,function(a,b){if("Window"==b.innerType&&(f++,b.visible)){var c= Window.getWindowResumeData(f,player.currentWindowSlide,b.history);d+=bwChunk.CreateChunk(c)}});var a=a+bwChunk.CreateChunk(d),e=story.getVariableResumeData(),a=a+e,g="";$.each(this.children,function(a,b){if("Scene"==b.innerType){var c=bwChunk.EMPTY_CHUNK;if(b.compactResumeData)c=b.compactResumeData;g+=c}});a+=g;e=bwChunk.UBase10toN(a.length);return a=bwChunk.CreateChunk(e)+a}; Storyline.prototype.updateFromCompactData=function(a){var a=new bwChunk(a),b=a.Remainder(),c=bwChunk.UBaseNto10(a.Data());if(b.length!=c)return!1;a=a.NextChunk();c=a.NextChunk();b=new bwChunk(c.Data());c=c.NextChunk();story.restoreVariableResumeData(c.Data());for(var c=c.NextChunk(),d=0,e=story.getDescendantsByType("Scene");!c.isNothing&&d'),Video.refStore[Video.getStoreReference(g,d)]=e),!g.firstVideoAssetSrc)g.firstVideoAssetSrc=Video.getStoreReference(g, d)}})});player.loadingSlide=null};Storyline.prototype.addSlide=function(){};Storyline.prototype.getStartingSlide=function(a){var b=this.parseObjref(this.startingslide).target;switch(b.innerType){case "Scene":b=this.parseObjref(b.startingslide).target}"SlideDraw"==b.innerType&&a&&(b=b.getFirstSlide());return b};Storyline.prototype.getSlideByID=function(a){for(var b=0;b

Title


");a.css("width",this.width);a.css("height",this.height);a.css("margin","auto");a.addClass(this.id);this.contentRef=a.children("div").first();this.titleRef=a.children("h1").first();this.isPrompt&&a.addClass("prompt");switch(this.align){case "center":a.css("left","50%"),a.css("margin-left",-this.width/2)}switch(this.valign){case "center":a.css("top","50%"), a.css("margin-top",-this.height/2)}$("#slidecontainer").append(a);this.ref=a;this.ref.hide();return!0}; Window.prototype.prepareLightbox=function(){$(".interstitial").removeClass("black");$(".interstitial").removeClass("white");$(".interstitial").unbind();$(document.body).append($(".window.prompt"));if(!this.lightboxPrepared){$(document.body).append(this.ref);this.contentRef.css("width",this.width);this.contentRef.css("height",this.height);this.closeIcon=$("
x
");this.closeIcon.css("left",0.85*player.width-10+"px");this.ref.append(this.closeIcon);var a=this;this.closeIcon.click(function(){a== player.currentWindow&&a.close()});this.lightboxPrepared=!0;this.zoomModifier=0.85;if("LightboxControlsWnd"==this.id)this.controls=$("#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,this.controls.find(".submit-slide").parent().bind("click",function(){0<$(".modalfence:visible").length|| story.handleEvent("onobjectevent","submit_pressed",null,!1,!1,!0)}),this.controls.find(".next-slide").parent().bind("click",function(){story.handleEvent("onobjectevent","next_pressed",null,!1,!1,!0)}),this.controls.find(".previous-slide").parent().bind("click",function(){story.handleEvent("onobjectevent","prev_pressed",null,!1,!1,!0)}),this.controls.find(".play").bind("click",function(){player.activeTimeline.play()}),this.controls.find(".pause").bind("click",function(){player.activeTimeline.pause()}), this.volumeSlider=new VolumeSlider(this.controls.find("#control-volume")),this.volumeSlider.onDragUpdate=function(a){$("audio,video").each(function(c,d){d.volume=Math.min(a*player.clipVolume,1)});Audio.setMasterVolume&&Audio.setMasterVolume(a)}}}; Window.prototype.closeLightbox=function(){if(!player.stackedWindow)$(".blocker").hide(),$(".interstitial").hide(),$(".interstitial").removeClass("black"),player.showingInterstitial=!1,$("#slidecontainer").append($(".window.prompt"));player.currentWindowSlide.variables.Visited=!0;player.currentWindowSlide.viewedCurrent=!0;player.currentWindowSlide.saveIfNecessary();player.currentWindowSlide.hide();player.currentWindowSlide.resetSlide();player.currentWindowSlide.unloadContent();player.currentWindow= null;player.currentWindowSlide=null;player.currentSlide().handleEvent("ontransitionin",null,null,!1,!0);player.currentTime=player.currentSlide().currentTime}; 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&&this.slide.ref.remove();this.slide=a;this.contentRef.empty();this.contentRef.append(a.ref);this.titleRef.html(a.title)}; Window.prototype.close=function(){this.slide&&this.slide.ref&&(player.pause(),this.slide.ref.remove());this.slide=null;this.ref.hide();if(!(this!=player.currentWindow&&this!=player.previousWindow))this.closeLightbox(),player.currentWindow=player.stackedWindow,player.currentWindowSlide=player.stackedWindowSlide,player.stackedWindow=null,player.stackedWindowSlide=null,this.visible=!1,player.windowZoomModifier=1,player.zoomParams=null,player.pause(),player.play()}; Window.prototype.showSlide=function(a,b){if(player.currentWindow&&player.currentWindow!=this)player.stackedWindow=player.currentWindow,player.stackedWindowSlide=player.currentWindowSlide,player.windowStack.push(player.currentWindow);if(-1");$(".contentpane").append(c)}player.currentSlide().saveIfNecessary();player.currentWindowSlide&&(player.currentWindowSlide.saveIfNecessary(), player.currentWindowSlide.resetSlide());this.ref.show();a.createRef();this.appendSlide(a);a.ref.show();a.visible=!0;a.variables.WindowId=this.id;a.variables.Visited=!0;a.viewedCurrent=!0;a.currentIndex=0;a.update(a.currentTime,!0);!b&&player.currentWindow&&player.currentWindowSlide&&player.currentWindow.history.push(player.currentWindowSlide.slideIndex);player.currentWindow=this;player.currentWindowSlide=a;this.visible=!0;if(this.isLightbox)$(".interstitial").show(),player.showingInterstitial=!0; player.currentSlide().handleEvent("ontransitionin",null,null,!1,!0);player.currentSlide().handleEvent("ontransitionincomplete",null,null,!1,!0);player.currentSlide().handleEvent("onslidestart",null,null,!1,!0);player.currentSlide().deepEach(function(a,b){b.handleEvent&&b.handleEvent("onslidestart",null,null,!1,!0)});player.pause();player.currentTime=0;player.play()};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();player.showingInterstitial=!1});d.bind("click",function(){a.slide.children.btn1.handleEvent("onrelease",null,null,!1,!1,!0);$(".interstitial").removeClass("resume");$(".interstitial").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){var b=this.getDescendantsByType("Slide"),c=[];$.each(b,function(a,b){(b.resume||0=c.length){var f=this.slideDraws[e];f&&f.restoreFromResumeData(b.Data());e++}else f=c[d],f.compactResumeData=b.ChunkData(),f.restoreFromResumeData(b.Data(),!0);b=b.NextChunk();d++}this.compactResumeData= bwChunk.CreateChunk(a)}; Scene.prototype.getResumeData=function(){var a="";this.hasVariables()&&(a=this.hasResumeVariables()?a+this.getVariableResumeData():a+bwChunk.EMPTY_CHUNK);var b="";$.each(this.children,function(a,c){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;athis.duration)this.currentPosition=this.duration,this.handleEvent("timercomplete"),this.pause();this.render()}; Timer.prototype.createRef=function(){if(this.ref)return!1;this.ref=$("");player.isIOSFrame?$(document.body).append(this.ref):$(".framewrap").append(this.ref);this.context=this.ref.get(0).getContext("2d");return!0}; Timer.prototype.render=function(){if(this.context){this.context.strokeStyle="#cfcfcf";if(!player.isIOSFrame)this.context.strokeStyle=player.frame.colorGroups.timer.stroke.toColorString();this.context.beginPath();this.context.arc(10,10,9,0,2*Math.PI,!1);this.context.stroke();var a=this.context.createLinearGradient(0,0,0,20);a.addColorStop(0,"#039EF4");a.addColorStop(1,"#0147E6");var b=this.context.createLinearGradient(0,0,0,20);b.addColorStop(0,"#FDE145");b.addColorStop(1,"#E4B202");player.isIOSFrame|| (a=player.frame.colorGroups.timer.duration.toCanvasGradient(this.context,20),b=player.frame.colorGroups.timer.elapsed.toCanvasGradient(this.context,20));this.context.beginPath();this.context.fillStyle=a;this.context.arc(10,10,9,0,2*Math.PI,!1);this.context.fill();var a=-Math.PI/2,c=a-2*this.currentPosition/this.duration*Math.PI;this.context.beginPath();this.context.fillStyle=b;this.context.moveTo(10,10);this.context.arc(10,10,9,a,c,!0);this.context.closePath();this.context.fill()}};var Slide=function(a){this.container=a||$(document.body);this.ref=null;this.title="Untitled Slide";this.transition=null;this.layers={};this.timelineEvents=[];this.clips=[];this.resources=[];this.interactions={};this.responses={};this.navLinks=[];this.layerStack=[];this.loadedChunkXML=this.backgroundReady=this.ready=!1;this.currentIndex=this.zeroTime=this.currentTime=this.slideIndex=0;this.duration=5E3;this.active=!0;this.paused=this.playing=!1;this.width=720;this.height=540;this.scale=1;this.topZ= 5;this.constructElement();this.audioInitialized=this.fullyLoaded=!1};Slide.prototype=new Element;Slide.prototype.objectType="Slide";Slide.prototype.innerType="Slide"; Slide.getResumeReference=function(a){var b;null==a?b=9:(b=""+(a.slideBank?"1":"0"),a.slideBank?(b+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.drawSlideIndex)),b+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneIndex)),b+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.drawIndex))):(b+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneSlideIndex)),b+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneIndex))));return b}; Slide.getFromResumeChunk=function(a){if("1"==a.NextString(1))var b=a.NextChunkedUBase10(),c=a.NextChunkedUBase10(),a=a.NextChunkedUBase10(),c=story.getDescendantsByType("Scene")[c],b=c.getDescendantsByType("SlideDraw")[a].orderedChildren[b];else b=a.NextChunkedUBase10(),c=a.NextChunkedUBase10(),c=story.getDescendantsByType("Scene")[c],b=c.slides[b];return b}; Slide.prototype.restoreFromResumeData=function(a,b){!this.fullyLoaded&&!b&&(this.loadContentFromXML(b),b=!0);this.hasRestoredInteractions=!0;var c=[];this.deepEach(function(a,b){b.resume&&"ShuffleGroup"!=b.innerType&&c.push(b)},function(a){return"Layer"==a.innerType?!1:!0});var d=new bwChunk(a),e=new bwChunk(d.Data()),f=new bwChunk(e.Data());this.resume||(f=d);$.each(this.interactions,function(a,b){b.restoreFromResumeChunk(f);f=f.NextChunk()});if(!b){d=e.NextChunk();this.currentTime=bwChunk.BaseNto10(d.Data(), d.Length());this.fixCurrentIndex();for(var d=d.NextChunk(),e=new bwChunk(d.Data()),g=0;!e.isNothing;){var h=c[g];h?h.restoreFromResumeData(e.ChunkData()):console.error("u:ERROR restoring slide: unknown item",g);e=e.NextChunk();g++}var j=[];$.each(this.children,function(a,b){"Layer"==b.innerType&&j.push(b)});g=d.NextChunk();h=new bwChunk(g.Data());for(e=0;!h.isNothing;)d=j[e],d.restoreFromResumeData(h.Data()),h=h.NextChunk(),e++,d.reset(),d.hide();g=g.NextChunk();for(h=new bwChunk(g.Data());!h.isNothing;)e= h.NextUBase10(),d=j[e],e=d.currentTime,d.slide==player.currentSlide()?d.show():(d.visible=!0,d.setOnStage(!0)),d.currentTime=e,h=h.NextChunk();var d=g.NextChunk(),k=d.Data();this.clips.forEach(function(a){if("audio"==a.innerType){var b=new bwChunk(k);a.SetResumeData(b.Data());k=b.Remainder()}});this.restoreVariableResumeData(d.NextChunk().Data())}}; Slide.prototype.getResumeData=function(){var a="";if(this.variables.Visited)if(this.resume){var b="",c="",d="",e="",f="";this.deepEach(function(a,c){c.resume&&"ShuffleGroup"!=c.innerType&&(b+=bwChunk.CreateChunk(c.GetResumeData()))},function(a){return"Layer"==a.innerType?!1:!0});this.clips.forEach(function(a){"audio"==a.innerType&&(e+=bwChunk.CreateChunk(a.GetResumeData()))});f="";$.each(this.interactions,function(a,b){f+=bwChunk.CreateChunk(b.GetResumeData())});var a=bwChunk.CreateChunk(f),g=bwChunk.Base10toN(this.currentTime), a=a+bwChunk.CreateChunk(g),a=a+bwChunk.CreateChunk(b),h=[];$.each(this.children,function(a,b){"Layer"==b.innerType&&(b.visible&&h.push(b),b.resume&&(c+=bwChunk.CreateChunk(b.getResumeData())))});a+=bwChunk.CreateChunk(c);$.each(h,function(a,b){var c=b.getItemIndex();d+=bwChunk.CreateChunk(bwChunk.Base10toN(c))});a+=bwChunk.CreateChunk(d);a+=bwChunk.CreateChunk(e);g=this.getVariableResumeData();0');this.ref.css("display","none");this.background&&this.background.apply(this.ref);this.ref.get(0).id="slide_"+this.id;this.ref.get(0).item=this;if(this.width>player.frame.availableWidth||this.height>player.frame.availableHeight)this.scale=Math.min(player.frame.availableWidth/this.width,player.frame.availableHeight/this.height),this.y=this.x=0,this.applySize(this.ref); $.each(this.children,function(a,c){c.createRef&&c.createRef()});this.container.append(this.ref);this.ref.css("width",this.width+"px");this.ref.css("height",this.height+"px");player.reorient(!0);return!0};Slide.prototype.reduce=function(){$.each(this.children,function(a,b){b.reduce&&b.reduce()});if(this.canvas)this.canvas.width=1,this.canvas.height=1}; Slide.prototype.destroyRef=function(){$.each(this.children,function(a,b){b.destroyRef&&b.destroyRef()});if(this.ref)this.ref.get(0).item=null,this.ref.get(0).id=null,this.ref.remove(),this.ref=null;for(var a in this.children){var b=this.children[a];b.destroyRef&&(b.ref&&b.destroyRef(),delete this.children[a])}this.audioInitialized=!1;this.clips=[]};Slide.prototype.findClip=function(a){var b=$.grep(this.clips,function(b){return b.id==a});return 0=this.duration){var a=this.handleEvent("ontimelinecomplete");!player.layerPlaying&&a&&this.handleEvent("onallopentimelinescomplete");this.currentTime=parseInt(this.duration);this.pause(!0,!1);this.endedAnimationTime=player.animationTime;this.ended=!0}}; Slide.prototype.update=function(a,b,c){for(this.currentTime=a;1=parseInt(this.currentTime);)this.currentIndex--,this.timelineEvents[this.currentIndex].revert(a);for(;this.currentIndexa.time+1E3),this.currentIndex++; b||this.handleTransitionIn(b);this.updateLayers();if(this.currentTime>=this.duration&&!this.timelineComplete)b=this.handleEvent("ontimelinecomplete"),!player.layerPlaying&&b&&this.handleEvent("onallopentimelinescomplete"),this.timelineComplete=!0;if(this.currentTime');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)l(),$(r).unbind("load"),r.src=Element.PixelSrc,a&&a()},r=new Image;$(r).bind("load",function(){j()});$(r).bind("error",function(){j()});player.renderVectorShapes&&!player.renderVectorsAsSVG&&h&&h.content.path&&!h.hasImagelib&&!h.hasTextlib?e++:r.src=b;k.push({img:r,x:c,y:d,item:h})},k=[],l=function(){$.each(k,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.isSubmitted=function(){var a=!0;$.each(this.interactions,function(b,c){a=a&&c.variables.Status&&"incomplete"!=c.variables.Status&&void 0!=c.variables.Points});return a};Slide.prototype.isAnswered=function(){var a=!0;$.each(this.interactions,function(b,c){a=a&&c.m_bAnswered});return a}; Element.prototype.forceRepaint=function(a){if((!a||player.isIOS)&&this.ref&&"block"==this.ref.css("display"))a=this.ref.get(0),this.ref.hide(),player.uselessOffsetHeight=a.offsetHeight,this.ref.show()};var StageItem=function(a){this.container=a;this.ref=null;this.constructElement();this.dirty=!0;this.hiddenByLayer=this.actionMoved=this.actionControlled=!1;this.content={}};StageItem.prototype=new Element;StageItem.prototype.objectType="Item";StageItem.prototype.innerType="Item";var Item=StageItem;StageItem.prototype.isStageItem=!0; StageItem.prototype.getItemIndex=function(){var a=this,b=0,c=-1;if(this.itemIndex)return this.itemIndex;(this.layer||this.slide).deepEach(function(d,e){e.isStageItem&&"ShuffleGroup"!=e.innerType&&(e==a&&(c=b),b++)},function(a){return"Layer"==a.innerType?!1:!0});return this.itemIndex=c}; StageItem.prototype.getItemByResumeIndex=function(a){var b=0,c=null;(this.layer||this.slide).deepEach(function(d,e){e.isStageItem&&"ShuffleGroup"!=e.innerType&&(b==a&&(c=e),b++)},function(a){return"Layer"==a.innerType?!1:!0});return c};StageItem.FlagA={FLAGA_STATE:1,FLAGA_VARIABLE:2,FLAGA_ONSTAGE:4,FLAGA_DRAGDROP:8,FLAGA_POSITION:16,FLAGA_USEFLAGB:32};StageItem.FlagB={FLAGB_DEPTH:1,FLAGB_SHUFFLED:2,FLAGB_ACTIONMOVED:4,FLAGB_ACTIONCONTROLLED:8,FLAGB_DISABLED:16,FLAGB_REVIEW:32}; StageItem.prototype.restoreFromResumeData=function(a){var b=StageItem.FlagA,c=StageItem.FlagB,d=!1,e=!1,a=new bwChunk(a),f=a.NextUBase10(1),g=0;f&b.FLAGA_USEFLAGB&&(g=a.NextUBase10(1));if(f&b.FLAGA_STATE){var h=a.NextUBase10(2),j="";$.each(this.states,function(a,b){b.index==h&&(j=a)});this.variables.ObjectState=j}f&b.FLAGA_ONSTAGE?d=!0:e=!0;f&b.FLAGA_DRAGDROP&&(a.NextUBase10(2),a.NextUBase10(1));var k=!1;if(f&b.FLAGA_POSITION){var l=a.NextBase10(2),m=a.NextBase10(2),n=a.NextUBase10(2);this.x=l+this.xoffset; this.y=m+this.yoffset;k=!0;switch(n){case 4094:break;case 4095:this.originalParent=this.parent;this.parent=this.slide;break;default:this.originalParent=this.parent,this.parent=this.getItemByResumeIndex(n)}this.updateMatrixComplete(!0)}g&c.FLAGB_DEPTH&&this.setZIndex(a.NextUBase10(2));if(g&c.FLAGB_SHUFFLED){this.shuffled=!0;if(this.shuffleGroup)this.shuffleGroup.shuffled=!0;l=a.NextUBase10(2);m=a.NextUBase10(2);if(!k)this.x=l,this.y=m;this.shuffleX=l;this.shuffleY=m;this.updateMatrixComplete(!0)}f& b.FLAGA_VARIABLE&&this.restoreVariableResumeData(a.NextString());(this.hiddenByLayer=1==a.NextUBase10(1))&&"ShuffleGroup"!=this.innerType&&(e=!0);if(d)this.quickShow?this.quickShow():(this.show(),this.visible=!0);e&&"ShuffleGroup"!=this.innerType&&(this.quickHide?this.quickHide():this.hide())}; StageItem.prototype.GetResumeData=function(a){var b=StageItem.FlagA,c=StageItem.FlagB,d="",e="";if(this.resume||a){var f=this.shouldStoreVariableResume(),a=this.originalZ&&this.depth!=this.originalZ,g="true"==this.variables._disabled,h=this.actionControlled||this.actionMoved||a||this.shuffled||g,j=0,k=0;if(this.variables.ObjectState!=bwUtils.DEFAULT_STATE){var l=this.states[this.variables.ObjectState],m=l?l.index:0;!l&&this.actionstates&&this.actionstateindices&&(l=this.actionstates[this.variables.ObjectState], m=this.actionstateindices[this.variables.ObjectState]||0);0<=m&&(j+=b.FLAGA_STATE,e+=bwChunk.UBase10toN(l.index,2))}f&&(j+=b.FLAGA_VARIABLE);this.visible&&(j+=b.FLAGA_ONSTAGE);this.dropArea&&(l=this.dropArea.getItemIndex(),m=this.dropArea.getDragItemIndex(this),-1"),a))this.textTemplate=a=a.replace(/size='(.*?)(pt|)'/ig,"style='font-size:$1pt'"),this.textTemplateHeight=parseInt(this.textlib.children("textdata").attr("height")),this.textTemplateWidth=parseInt(this.textlib.children("textdata").attr("width"))}; StageItem.prototype.loadImageDataFromXML=function(a){var b=this;b.imagelib=new ppImageLib;$(a).children("imagelib").children("imagedata").each(function(a,d){var e=b.imagelib.AddImage($(d).attr("id"),$(d).attr("type"),null,$(d).attr("width"),$(d).attr("height"),$(d).attr("mobiledx"),$(d).attr("mobiledy")),f=$(d).attr("altimage"),g=$(d).attr("url"),f=player.basepath+(f?f:g),g=$(d).attr("mask");b.content.mask=g;b.content.maskref=$(d).attr("maskref");if(-1this.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.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);player.showItemInfo&&this.ref.append($('
'+this.id+"
"));this.applySize(this.ref);"dragitem"==this.innerType&&this.setZIndex(this.depth); this.container.append(this.ref);this.ref.get(0).item=this;"video"!=this.type&&"audio"!=this.type&&this.bindEvents();$.each(this.children,function(a,b){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.visible=!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(b||!("Layer"==this.innerType||"ExpandingLabel"==this.innerType))$.each(this.children,function(b,d){if(d.depth>a)a=d.depth}),this.ref&&this.ref.css("z-index",a),this.depth=a,this.parent&&this.parent.setZIndex&&this.parent.setZIndex(a)}; 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);"sequencectrl"==this.innerType&&this.ref&&0!=this.ref.get(0).scrollTop&&this.matrix.translate(0,-this.ref.get(0).scrollTop);this.parent&&!this.parent.dragX&&!this.parent.dragY&&this.matrix.translate(this.dragX||0,this.dragY||0);this.parent&&this.parent.matrix&&this.matrix.multiply(this.parent.matrix.copy());this.centerpoint= {x:this.rotatexpos-this.xoffset,y:this.rotateypos-this.yoffset};this.matrix.translate(this.x+this.centerpoint.x,this.y+this.centerpoint.y);this.matrix.rotateDegrees(this.rotation);this.matrix.translate(-this.centerpoint.x,-this.centerpoint.y);this.isRotated=this.parent&&this.parent.isRotated||0!=this.rotation}; Element.prototype.applySize=function(a){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+"px");a.css("top",this.y+"px");a.css("width",this.width+"px");a.css("height",this.height+"px");if("Layer"!=this.innerType&&"ExpandingLabel"!=this.innerType&&0c.textTemplateHeight;)g-=b,a(0,f)}var c=this,d=c.textTemplate,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.css("font-weight","bold");if(!StageItem.contentSizer)StageItem.contentSizer=$("
"),$(document.body).append(StageItem.contentSizer);StageItem.contentSizer.css("width",c.textTemplateWidth);StageItem.contentSizer.append(f);var g=1;b(0.05);1>g&&(g+=0.05,a(0,f), b(0.01));c.contentRef.append(f);var e=parseInt((c.width-c.textTemplateWidth)/2)-c.xoffset,h=parseInt((c.height-c.textTemplateHeight)/2)-c.yoffset;c.contentRef.css("width",c.textTemplateWidth+"px");c.contentRef.css("top",c.textTemplateHeight+"px");c.contentRef.css("left",e+"px");c.contentRef.css("top",h+"px");c.contentRef.find("p").first().css("width",c.textTemplateWidth);c.contentRef.find("p").first().css("height",c.textTemplateHeight)}; 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={left:5E3,top:5E3,right:-5E3,bottom:-5E3};$.each([[0,0],[this.width,0],[this.width,this.height],[0,this.height]],function(c,d){var e=a.matrix.transformPoint(d[0]-a.xoffset,d[1]-a.yoffset),f=e.x,e=e.y;if(fb.right)b.right=f;if(eb.bottom)b.bottom=e});player.showDebugOverlap&&player.testContext&&setTimeout(function(){player.testContext.strokeStyle="rgba(0,0,255,0.5)";player.testContext.strokeRect(b.left,b.top, b.right-b.left,b.bottom-b.top)},0);return b}; StageItem.prototype.getAABB_simple=function(a,b){if(void 0===a)a=this.rotation;if(0==a){var c={};b?(c.left=0,c.top=0,c.right=this.width,c.bottom=this.height):(c.left=this.x+this.dragX,c.top=this.y+this.dragY,c.right=this.x+this.dragX+this.width,c.bottom=this.y+this.dragY+this.height);return c}var c={left:5E3,top:5E3,right:-5E3,bottom:-5E3},d=[[-this.width/2,-this.height/2],[this.width/2,-this.height/2],[this.width/2,this.height/2],[-this.width/2,this.height/2]],e=Math.cos(a*Math.PI/180),f=Math.sin(a* Math.PI/180);$.each(d,function(a,b){x=Math.ceil(-b[0]*e+b[1]*f);y=Math.ceil(b[0]*f-b[1]*e);if(xc.right)c.right=x;if(yc.bottom)c.bottom=y});b?(c.left+=this.rotatexpos,c.top+=this.rotateypos,c.right+=this.rotatexpos,c.bottom+=this.rotateypos):(c.left+=this.x+this.dragX+this.rotatexpos,c.top+=this.y+this.dragY+this.rotateypos,c.right+=this.x+this.dragX+this.rotatexpos,c.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(c.left,c.top,c.right-c.left,c.bottom-c.top)},0);return c}; 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);for(c=0;c"),this.parent.ref.append(this.modalfence),this.modalfence.bind("click",function(){});player.modalLayer=b;this.modalfence.show()}a=b.slide.topMostLayer(); a!=b&&a.handleEvent("endtopmostlayer");util.popArrayElement(this.slide.layerStack,this);this.slide.layerStack.push(this);this.handleEvent("ontopmostlayer");b.hideBaseObjects();this.depth=this.slide.topZ+1;this.slide.topZ=this.depth;if(this.visible&&this.resume)this.ref.css("display","block");else{if(!this.visible)this.currentIndex=this.currentTime=0;if(this.resume&&this.compactResumeData&&(this.restoreFromResumeData(this.compactResumeData),player.activeTimeline==this))player.activeTimeline.currentTime= this.currentTime;this.visible=!0;this.paused=!1}};Layer.prototype.emptyLayer=function(){this.timelineEvents=[]}; Layer.prototype.hide=function(a){if(this.visible){this.visible=!1;player.modalLayer=null;var b=this,c=function(){b.ref.css("display","none");b.handleEvent("ontransitionoutcomplete",null,null,!1,!0);$.each(b.clips,function(a,b){if(b.getIsPlaying())b.m_bResumeOnSeek=!0;b.pauseClip()});b.modalfence&&b.modalfence.hide();b.destroyWebobjects();b.resume?b.compactResumeData=b.getResumeData():b.reset();b.slide.topMostLayer()==b&&b.handleEvent("endtopmostlayer");util.popArrayElement(b.slide.layerStack,b);0< b.slide.layerStack.length?b.slide.layerStack[b.slide.layerStack.length-1].handleEvent("ontopmostlayer"):(b.slide.handleEvent("ontopmostlayer"),player.activeTimeline=player);b.setOnStage(!1);b.restoreBaseObjects();b.pauseparent&&player.play(!0,!0,!1)};b.handleEvent("ontransitionout",null,null,!1,!0);a&&0!=a.duration?(a.setTarget(this),a.apply(function(){c()},null,null,"ease-out")):(b.runningTransition=null,c())}}; Layer.prototype.hideBaseObjects=function(){var a=this;this.hideobjectsondisplay.each(function(b,c){var d=a.parseObjref($(c).attr("value")).target;d.hiddenByLayer=!0;d.hide()})};Layer.prototype.restoreBaseObjects=function(){var a=this;this.hideobjectsondisplay.each(function(b,c){var d=a.parseObjref($(c).attr("value")).target;if(d.hiddenByLayer)d.hiddenByLayer=!1,d.show()})};Layer.prototype.destroyWebobjects=function(){$.each(this.children,function(a,b){b.destroyWebobjects&&b.destroyWebobjects()})}; Layer.prototype.play=function(a,b,c){this.paused=!1;var d=this;c||player.currentSlide().clips.forEach(function(a){if(a.m_bResumeOnSeek&&a.layer==d&&(player.currentClipStartTime=a.lastStartTime,player.currentClipSyncToTimeline=!0,player.currentClip=a,a.playClip()))a.m_bResumeOnSeek=!1});$(".controlbar-button").find(".wait").hide();$(".controlbar-button").find(".play").hide();$(".controlbar-button").find(".pause").show()}; Layer.prototype.pause=function(){this.paused=!0;$.each(this.clips,function(a,b){if(b.syncToTimeline){if(b.getIsPlaying())b.m_bResumeOnSeek=!0;b.pauseClip();if(player.scheduledMediaSrc==b.content.src)clearTimeout(player.mediaTimeout),player.scheduledMediaSrc=null}});$(".controlbar-button").find(".wait").hide();$(".controlbar-button").find(".pause").hide();$(".controlbar-button").find(".play").show()}; Layer.prototype.update=function(){if(!(this.currentTime>parseInt(this.duration)+100)){if(ProgressBar.getCurrentProgressBar().dragging&&player.currentClip)player.currentClip.currentTime=(player.activeTimeline.currentTime-player.currentClipStartTime)/1E3;if(player.activeTimeline==this)ProgressBar.getCurrentProgressBar().index=player.activeTimeline.currentTime,ProgressBar.getCurrentProgressBar().count=player.activeTimeline.duration,ProgressBar.getCurrentProgressBar().update(),this.paused?($(".controlbar-button").find(".wait").hide(), $(".controlbar-button").find(".pause").hide(),$(".controlbar-button").find(".play").show()):($(".controlbar-button").find(".wait").hide(),$(".controlbar-button").find(".play").hide(),$(".controlbar-button").find(".pause").show());$.each(this.clips,function(a,b){b.getIsPlaying&&b.getIsPlaying()});for(player.layerPlaying=!0;0this.currentTime;)this.currentIndex--,this.timelineEvents[this.currentIndex].revert(this.currentTime);for(;this.currentIndex< this.timelineEvents.length&&this.timelineEvents[this.currentIndex].time<=this.currentTime&&player.layerPlaying;)this.timelineEvents[this.currentIndex].act(),this.currentIndex++;if(this.currentTime>=this.duration)this.handleEvent("ontimelinecomplete",null,null,!1,!0)&&player.currentTime>=player.currentSlide().duration&&this.handleEvent("onallopentimelinescomplete"),player.layerPlaying=!1}}; Layer.prototype.handleSlideStart=function(){if(!this.handledSlideStart)this.handledSlideStart=!0,this.handleEvent("onslidestart",null,null,!1,!0),this.deepEach(function(a,b){b.handleEvent&&b.handleEvent("onslidestart",null,null,!1,!0)})};var VectorShape=function(a){this.container=a||$(document.body);this.ref=null;this.constructElement();this.currentIndex=0;this.content={};this.colors={};this.type="textfield";this.active=!0;this.id=Math.random();this.name="item";this.visible=this.layered=!1;this.canSimplify=!0;this.hasEvents=!1;this.xml="";this.deferredResourceIndex=0;this.lastRenderedState="none";this.canvas=null;this.m_nYOffset=this.m_nXOffset=0;this.height=this.width=1E3;this.vectorHot=!1};VectorShape.prototype=new StageItem; VectorShape.prototype.objectType="Item";VectorShape.prototype.innerType="vectorshape";VectorShape.prototype.loadBaseFromXML=StageItem.prototype.loadFromXML; VectorShape.prototype.loadFromXML=function(a,b,c){var d=this;this.loadBaseFromXML(a,b,c);this.yoffset=this.xoffset=0;this.originalWidth=parseInt($(a).attr("width"));this.originalHeight=parseInt($(a).attr("height"));this.originalX=this.x;this.originalY=this.y;if(0<$(a).children("data").children("textdata").children("vartext").length)this.textlib=$(a).children("data");this.canSimplify=!1;$(a).children("states").children().each(function(a,b){var c=$(b).attr("name"),h=$(b).children("data").children("vectordata"), j={left:h.attr("left"),top:h.attr("top"),right:h.attr("right"),bottom:h.attr("bottom"),path:PathLib.getPathFromXML(h.children("pr")),index:a};if(!j.path||""==j.path)j.path=h.children("path").text();d.states[c]=j});this.loadLinksFromXML(a)}; VectorShape.prototype.loadLinksFromXML=function(a){var b=this;$(a).children("textlib").children("textdata").each(function(a,d){var e=$(d).attr("id");$(d).children("linkdata").children("link").each(function(a,c){var d=new LinkArea(b.ref,b.slide,b.layer,e);d.parent=b;d.loadFromXML(c,b.slide,b.layer);b.links[d.id]=d;b.hasLinks=!0})})};VectorShape.prototype.createBaseRef=StageItem.prototype.createRef;VectorShape.prototype.destroyBaseRef=StageItem.prototype.destroyRef; VectorShape.prototype.createRef=function(){if(this.ref||!this.createBaseRef())return!1;if(!this.contentRef)this.contentRef=$('
');this.ref.append(this.contentRef);this.ref.css("width",this.originalWidth);this.ref.css("height",this.originalHeight);var a=$(this.xml).find("textdata").first().attr("valign");a&&this.contentRef.addClass("v"+a);a=$('');a.css("position", "absolute");this.ref.append(a);this.jcanvas=a;this.canvas=a.get(0);this.context=this.canvas.getContext("2d");if(this.renderAsBackground)this.altRef=$('
'),this.altRef.css("width",this.originalWidth),this.altRef.css("height",this.originalHeight),this.ref.append(this.altRef);this.lastRenderedState=null;this.render(this.variables.ObjectState,!0,null,"VectorShape createRef");return!0}; VectorShape.prototype.destroyRef=function(){this.destroyBaseRef();if(this.canvas)$(this.canvas).remove(),this.canvas=null;if(this.contentRef)this.contentRef.remove(),this.contentRef=null;this.bitMask=this.lastRenderedState=null;this.stateMasks={}};VectorShape.prototype.renderCallback=function(){}; VectorShape.prototype.render=function(a,b,c,d,e,f){if(this.ref){var g=this;if(b||a!=this.lastRenderedState)if(this.lastRenderedState=a,g.allResourcesLoaded()){g.blocked=!1;if(!g.canvas)g.canvas=$(this.ref).find("canvas").get(0);if(player.useSafeCanvas)this.canvas.getContext("2d"),this.ref.css("background-color","#"+parseInt(900*Math.random()+1100)%1E3);else{g.m_nXOffset=g.xoffset;g.m_nYOffset=g.yoffset;g.width=g.width;g.height=g.height;b=new ppTextLib(g.xml);c=g.content.path;if(g.states[a])c=g.states[a].path, g.rectShape=new ppRect(g.states[a].left,g.states[a].top,g.states[a].right,g.states[a].bottom);else if(this.originalRectShape)this.rectShape=this.originalRectShape;if(g.rectShape&&0==g.rectShape.right&&0==g.rectShape.bottom)g.rectShape.right=g.width,g.rectShape.bottom=g.height;if(c)try{var h=new Date;ppArt.itemID=g.id;ppArt.item=g;ppArt.DrawVector(g,c,b,player.fontlib,g.imagelib,f);for(var j in g.links)g.links[j].linkdx=ppArt.m_listTextOffsets[g.links[j].textid].x,g.links[j].linkdy=ppArt.m_listTextOffsets[g.links[j].textid].y; g.textOffset&&(g.m_nXOffset+=g.textOffset.x,g.m_nYOffset+=g.textOffset.y);if(g.m_nXOffset!=g.xoffset||g.m_nYOffset!=g.yoffset){var k=g.m_nXOffset-g.xoffset,l=g.m_nYOffset-g.yoffset;g.xoffset=g.m_nXOffset;g.yoffset=g.m_nYOffset;this.x+=k;this.y+=l;g.applySize(g.ref)}parseInt(new Date-h);if(a&&!g.stateMasks)g.stateMasks={};f=function(){if(player.usePixelTesting)return new BitMask(!0,g.width,g.height);var a=new BitMask(!1,g.width,g.height,g.imageWidth||g.width,g.imageHeight||g.height);if(!g.content.mask&& g.content.maskref)g.content.mask=player.bitmasks[g.content.maskref];if(g.content.mask)a.loadFromRLE(g.content.mask),a.pixels&&!a.isOpaque&&(g.width!=$(g.canvas).attr("width")||g.height!=$(g.canvas).attr("height"))&&a.resize($(g.canvas).attr("width"),$(g.canvas).attr("height"),-g.xoffset,-g.yoffset);else if(-1"+a+"");if(a)a=a.replace(/size='(.*?)(pt|)'/ig,"style='font-size:$1pt'"),this.textTemplate=a=a.replace(/pt'/ig,"px'"),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")}};var Audio=function(a,b,c){this.container=a||$(document.body);this.slide=b;this.layer=c;this.ref=null;this.constructElement();this.currentIndex=0;this.content={};this.colors={};this.type="audio";this.active=!0;this.id=Math.random();this.name="item";this.visible=this.layered=!1;this.canSimplify=!0;this.hasEvents=!1;this.isMedia=!0;this.playOnDecode=this.decodeOnLoad=this.decoding=this.isDecoded=!1;this.xml=""};Audio.prototype=new StageItem;Audio.prototype.objectType="Item"; Audio.prototype.innerType="audio";Audio.prototype.loadBaseFromXML=StageItem.prototype.loadFromXML;Audio.prototype.GetResumeData=function(){var a="";if(this.slide.resume){a=0;this.syncToTimeline&&(a+=1);this.playing&&(a+=2);if(this.playing||this.m_bResumeOnSeek)a+=4;a=a.toString()}return a};Audio.prototype.SetResumeData=function(a){if(0');this.ref.attr("src",a.content.src);this.container.append(this.ref);this.ref.get(0).item=this;this.ref.bind("canplay",function(){if(player.blocked)player.currentSlide().currentIndex+=1,a.canPlayThrough=!0,player.unblock()});this.ref.bind("timeupdate",function(){if(4==a.ref.get(0).readyState&&player.blocked)player.currentSlide().currentIndex+= 1,a.canPlayThrough=!0,player.unblock()});this.ref.bind("error",function(){a.canPlayThrough=!0;player.unblock()});this.ref.bind("ended",function(){(a.slide==player.currentSlide()||a.slide==player.currentWindowSlide)&&a.handleEvent("onmediacomplete")});this.ref.bind("play",function(){if(!isNaN(a.correctedPosition)&&a.shouldSetPosition)try{a.setCurrentTime(a.correctedPosition),a.shouldSetPosition=!1}catch(b){}});return!0};Audio.prototype.destroyRef=function(){};Audio.prototype.renderCallback=function(){}; Audio.prototype.render=function(){};Audio.prototype.reset=function(a,b){this.currentTime=0;Element.prototype.reset.call(this,a,b)};Audio.prototype.prep=function(){if(player.isIOS){var a=this;if(this.id!=player.nextPreparedClipID){var b=!1;$("audio,video").each(function(c,d){!d.paused&&!d.ended&&(d.item.slide!=a.slide?d.pause():b=!0)});if(!b)this.ref.get(0).load(),this.prepared=!0,player.nextPreparedClipID=this.id}}}; Audio.prototype.getTimelineAncestor=function(){for(var a=this.parent,b=4;a&&0this.currentTime||1E3*this.currentTime>=this.content.duration)return!1;this.syncToTimeline=!(StoryEvent.currentEvent&& StoryEvent.currentEvent.isUserInitiated)||player.currentClipSyncToTimeline&&player.currentClip==this;this.lastStartTime=isNaN(player.currentClipStartTime)?player.activeTimeline.currentTime:player.currentClipStartTime;if((a=this.ref.get(0))&&a.play){if(this.currentTime!=a.currentTime)try{a.currentTime=this.currentTime}catch(b){}a.play()}}}; Audio.prototype.pauseClip=function(a){if(this.ref&&this.ref.get&&this.ref.get(0)&&this.ref.get(0).pause){var b=this.ref.get(0),c=!b.ended&&!b.paused;b&&b.pause&&b.pause();c&&a&&this.handleEvent("onmediacomplete")}};Audio.prototype.setCurrentTime=function(a){if(this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).currentTime=a};Audio.prototype.getScheduled=function(){return this.ref&&this.ref.get&&this.ref.get(0)?this.ref.get(0).scheduled:!1}; Audio.prototype.setScheduled=function(a){if(this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).scheduled=a};Audio.prototype.getClip=function(){return this.ref&&this.ref.get&&this.ref.get(0)?this.ref.get(0):null};Audio.prototype.getIsPlaying=function(){return this.ref&&this.ref.get&&this.ref.get(0)?!this.ref.get(0).paused&&!this.ref.get(0).ended:!1};var Video=function(a,b,c){this.container=a||$(document.body);this.slide=b;this.layer=c;this.storedRef=this.ref=null;this.constructElement();this.currentIndex=0;this.content={};this.colors={};this.type="video";this.active=!0;this.id=Math.random();this.name="item";this.visible=this.layered=!1;this.canSimplify=!0;this.hasEvents=!1;this.isMedia=!0;this.xml=""};Video.refStore={};Video.prepList={};Video.prototype=new StageItem;Video.prototype.objectType="Item";Video.prototype.innerType="video"; Video.prototype.loadBaseFromXML=StageItem.prototype.loadFromXML; Video.prototype.loadFromXML=function(a,b,c){this.slide=b;this.layer=c;this.children={};this.innerType=this.type="video";this.id=$(a).attr("id");this.xml=a;this.loadElementInfoFromXML(a);this.loadSizeFromXML(a);this.canSimplify=!1;this.content.src=player.basepath+$(a).find("videodata").attr("url");this.content.autoplay="true"==$(a).attr("autoplay");this.content.showcontrols="true"==$(a).attr("showcontrols");this.content.autorewind="true"==$(a).attr("autorewind");this.content.loop="true"==$(a).attr("loop"); this.content.captureanimation="true"==$(a).attr("captureanimation");this.content.poster=player.basepath+$(a).find("videodata").attr("poster");this.content.hasPoster=""!=$(a).find("videodata").attr("poster");this.content.type=$(a).find("videodata").attr("type");this.isUnsupportedType="youtube"==this.content.type;this.usehandcursor="true"==$(a).attr("usehandcursor");this.content.src=this.content.src.replace(".flv",".mp4");this.showPlaceholder=-1'),this.ref.attr("src",a.content.src);this.ref.addClass(this.type);this.ref.addClass("initialized"); this.content.showcontrols&&this.ref.attr("controls","controls");this.content.hasPoster&&(player.isChrome||this.ref.attr("poster",this.content.poster));if(player.noVideo||this.showPlaceholder||this.isUnsupportedType){if(!this.content.hasPoster)this.ref=$('

Not Supported

Flash content is not supported in the HTML5 player.
'),this.ref.addClass(this.type);this.ref.css("width",this.width+"px");this.ref.css("height",this.height+"px");this.ref.get(0).play= function(){if(player.blockedOn==a){var b=player.blocked&&!a.justPlayed;player.unblock(!0);b&&a.handleEvent("onmediacomplete");player.playing=!0;player.activeTimeline.play(!1,!1,!0)}if(!a.justPlayed)a.justPlayed=!0,setTimeout(function(){a.justPlayed=!1},100)};this.ref.get(0).load=function(){};this.ref.get(0).pause=function(){}}if(this.content.captureanimation&&(player.suppressCaptureAnimations||player.isIOS))a.isSuppressedCaptureAnimation=!0,this.ref=$('
'), this.ref.css("width",this.width+"px"),this.ref.css("height",this.height+"px"),this.ref.get(0).play=function(){player.unblock(!0);a.handleEvent("onmediacomplete")},this.ref.get(0).load=function(){},this.ref.get(0).pause=function(){},this.ref.get(0).src="[captureanimation: no source]";this.applySize(this.ref);this.container.append(this.ref);this.ref.get(0).item=this;this.ref.bind("canplay",function(){a.canPlayThrough=!0;player.unblock()});this.ref.bind("timeupdate",function(){if(4==a.ref.get(0).readyState)a.canPlayThrough= !0,player.unblock()});this.ref.bind("error",function(){a.canPlayThrough=!0;player.unblock()});this.ref.bind("ended",function(){a.handleEvent("onmediacomplete")});this.ref.bind("play",function(){var c=a.prepared;a.canPlayThrough=!0;a.prepared=!0;a.controllableFromTimeline=!0;player.nextPreparedClipID=a.getFullObjref();Video.prepList[b]=!0;a.content.showcontrols||a.ref.removeAttr("controls");if(!isNaN(a.correctedPosition)&&a.shouldSetPosition)try{a.setCurrentTime(a.correctedPosition),a.shouldSetPosition= !1}catch(e){}if(!a.playingFromPlayClip&&player.activeTimeline.paused&&player.isIOS&&!c&&a.content.autoplay&&(player.activeTimeline.play(),player.activeTimeline.paused=!1,player.activeTimeline.playing=!0,!c))player.activeTimeline.currentTime=0});return this.refInitialized=!0}; Video.prototype.destroyRef=function(){this.pauseClip();var a=Video.getStoreReference(this.slide,this.content.src);if(this.ref&&this.ref.get&&this.ref.get(0)&&!Video.refStore[a])Video.refStore[a]=this.ref,this.ref.hide(),this.ref.remove();this.ref=null};Video.prototype.renderCallback=function(){};Video.prototype.render=function(){};Video.prototype.showBase=StageItem.prototype.show; Video.prototype.show=function(a,b,c){var d=this;this.showBase(a,b,c);if(!player.noVideo&&(this.container&&!this.content.autoplay&&0==this.ref.parent().length&&(player.isIOS?"block"==this.container.css("display")&&(this.container.append(this.ref),this.ref.show()):(this.container.append(this.ref),this.ref.show())),!c))if(this.showPlaceholder)this.handleEvent("onmediacomplete");else{var e=this;if(e.content.autoplay||!(a&&"StoryEvent"!=a.type))if(player.playing||player.layerPlaying){var f=e.getTimelineAncestor().currentTime- a.time;if(e.ref&&e.ref.get&&e.ref.get(0)){var g=e.ref.get(0);this.isSuppressedCaptureAnimation?e.playClip():(b=StoryEvent.currentEvent&&StoryEvent.currentEvent.isUserInitiated,this.syncToTimeline=StoryEvent.currentEvent&&"TimelineEvent"==StoryEvent.currentEvent.type&&(!b||player.currentClipSyncToTimeline&&player.currentClip==this),this.lastStartTime=isNaN(player.currentClipStartTime)?player.activeTimeline.currentTime:player.currentClipStartTime,clearTimeout(player.mediaTimeout),player.scheduledMediaSrc= d.content.src,this.scheduled=!0,player.mediaTimeout=setTimeout(function(){player.mediaTimeout=null;player.scheduledMediaSrc=null;d.scheduled=!1;e.playClip();player.currentClip=g;player.currentClipStartTime=a.time;player.currentClipSyncToTimeline="TimelineEvent"==a.type;try{e.setCurrentTime(f/1E3)}catch(b){}},0))}}}}; Video.prototype.prep=function(){var a=Video.getStoreReference(this.slide,this.content.src);if(player.isIOS&&player.nextPreparedClipID!=this.getFullObjref()&&player.nextPreparedClipID!=a&&!Video.prepList[a]&&this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).load(),this.prepared=!0,player.nextPreparedClipID=a,Video.prepList[this.firstVideoAssetSrc]=!0};Video.prototype.getTimelineAncestor=Audio.prototype.getTimelineAncestor; Video.prototype.playClip=function(){var a=this;if(this.ref&&this.ref.get&&this.ref.get(0)&&this.ref.get(0).play){0==this.ref.parent().length&&(this.container.append(this.ref),this.ref.show());var b=Video.getStoreReference(this.slide,this.content.src);player.isIOS&&player.nextPreparedClipID!=this.getFullObjref()&&player.nextPreparedClipID!=b&&!Video.prepList[b]?(this.ref.get(0).setAttribute("controls","controls"),Animation.finishForTimeline(a.slide,a.slide.currentTime),player.activeTimeline.pause(!0, !1),setTimeout(function(){a.ref.get(0).setAttribute("controls","controls");player.unblock()},0)):(player.isIOS&&player.unblock(),a.content.showcontrols||a.ref.removeAttr("controls"),this.controllableFromTimeline=this.playingFromPlayClip=!0,this.ref.get(0).play(),setTimeout(function(){a.playingFromPlayClip=!1},0))}}; Video.prototype.pauseClip=function(){var a=this;if(this.ref&&this.ref.get&&this.ref.get(0)&&this.ref.get(0).pause)this.pausingFromPauseClip=!0,this.ref.get(0).pause(),setTimeout(function(){a.pausingFromPauseClip=!1},0)};Video.prototype.getCurrentTime=function(){return this.ref&&this.ref.get&&this.ref.get(0)?this.ref.get(0).currentTime:0};Video.prototype.setCurrentTime=function(a){if(this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).currentTime=a}; Video.prototype.getScheduled=function(){return this.ref&&this.ref.get&&this.ref.get(0)?this.ref.get(0).scheduled:!1};Video.prototype.setScheduled=function(a){if(this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).scheduled=a};Video.prototype.mediaReady=function(){return this&&this.ref&&this.ref.get(0)&&4==this.ref.get(0).readyState?!0:!1};Video.prototype.getClip=function(){return this.ref&&this.ref.get&&this.ref.get(0)?this.ref.get(0):null}; Video.prototype.getIsPlaying=function(){return this.ref&&this.ref.get&&this.ref.get(0)&&!this.ref.get(0).paused&&!this.ref.get(0).ended?!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(a,b){return a.getFullObjref()+":"+b};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.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(){return!0};LinkArea.prototype.render=function(a){switch(a){case "onrollover":new ppTextLib(this.xml);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?$("