var buildDate="20121206 10:45";(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(!z)z=p.createElement("iframe"),z.frameBorder=z.width=z.height=0;b.appendChild(z);if(!N||!z.createElement)N=(z.contentWindow||z.contentDocument).document,N.write(("CSS1Compat"===p.compatMode?"":"")+""), N.close();c=N.createElement(a);N.body.appendChild(c);d=i.css(c,"display");b.removeChild(z)}ea[a]=d}return ea[a]}function fa(a){return i.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var p=a.document,bb=a.navigator,cb=a.location,i=function(){function c(){if(!d.isReady){try{p.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,j=/^\s+/,k=/\s+$/, l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,O=/(?:^|:|,)(?:\s*\[)+/g,o=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,F=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,B=/^-ms-/,u=function(a,b){return(b+"").toUpperCase()},v=bb.userAgent,Z,V,db=Object.prototype.toString,ha=Object.prototype.hasOwnProperty,ia=Array.prototype.push,X=Array.prototype.slice, ta=String.prototype.trim,ua=Array.prototype.indexOf,va={};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&&p.body)return this.context=p,this[0]=p.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:p,(a=l.exec(a))? d.isPlainObject(c)?(a=[p.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=p.getElementById(f[2]))&&c.parentNode){if(c.id!==f[2])return e.find(a);this.length=1;this[0]=c}this.context=p;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 X.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(X.apply(this,arguments),"slice",X.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,r,g=arguments[0]||{},h=1,i=arguments.length,J=!1;"boolean"===typeof g&&(J=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")&& F.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(p);return a},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){va["[object "+b+"]"]=b.toLowerCase()}); v=d.uaMatch(v);if(v.browser)d.browser[v.browser]=!0,d.browser.version=v.version;if(d.browser.webkit)d.browser.safari=!0;i.test("\u00a0")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/);g=d(p);p.addEventListener?V=function(){p.removeEventListener("DOMContentLoaded",V,!1);d.ready()}:p.attachEvent&&(V=function(){"complete"===p.readyState&&(p.detachEvent("onreadystatechange",V),d.ready())});return d}(),oa={};i.Callbacks=function(a){var a=a?oa[a]||c(a):{},d=[],e=[],f,g,h,j,k,l=function(b){var c,e,f,g;for(c=0,e=b.length;c< e;c++)f=b[c],g=i.type(f),"array"===g?l(f):"function"===g&&(!a.unique||!n.has(f))&&d.push(f)},m=function(b,c){c=c||[];f=!a.memory||[b,c];g=!0;k=h||0;h=0;for(j=d.length;d&&k=f&&a&&i.isFunction(a.promise)?a:i.Deferred(),k=j.promise();if(1
a";c=k.getElementsByTagName("*");d=k.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};e=p.createElement("select");f=e.appendChild(p.createElement("option"));c=k.getElementsByTagName("input")[0];b={leadingWhitespace:3=== k.firstChild.nodeType,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===c.value,optSelected:f.selected,getSetAttribute:"t"!==k.className,enctype:!!p.createElement("form").enctype,html5Clone:"<:nav>"!==p.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0, focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};c.checked=!0;b.noCloneChecked=c.cloneNode(!0).checked;e.disabled=!0;b.optDisabled=!f.disabled;try{delete k.test}catch(l){b.deleteExpando=!1}!k.addEventListener&&k.attachEvent&&k.fireEvent&&(k.attachEvent("onclick",function(){b.noCloneEvent=!1}),k.cloneNode(!0).fireEvent("onclick"));c=p.createElement("input");c.value="t";c.setAttribute("type","radio");b.radioValue="t"===c.value; c.setAttribute("checked","checked");k.appendChild(c);d=p.createDocumentFragment();d.appendChild(k.lastChild);b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;b.appendChecked=c.checked;d.removeChild(c);d.appendChild(k);k.innerHTML="";if(a.getComputedStyle)c=p.createElement("div"),c.style.width="0",c.style.marginRight="0",k.style.width="2px",k.appendChild(c),b.reliableMarginRight=0===(parseInt((a.getComputedStyle(c,null)||{marginRight:0}).marginRight,10)||0);if(k.attachEvent)for(h in{submit:1, change:1,focusin:1})c="on"+h,j=c in k,j||(k.setAttribute(c,"return;"),j="function"===typeof k[c]),b[h+"Bubbles"]=j;d.removeChild(k);d=e=f=c=k=c=null;i(function(){var a,c,d,e,f=p.getElementsByTagName("body")[0];if(f){a=p.createElement("div");a.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";f.insertBefore(a,f.firstChild);k=p.createElement("div");a.appendChild(k);k.innerHTML="
t
"; g=k.getElementsByTagName("td");j=0===g[0].offsetHeight;g[0].style.display="";g[1].style.display="none";b.reliableHiddenOffsets=j&&0===g[0].offsetHeight;k.innerHTML="";k.style.width=k.style.paddingLeft="1px";i.boxModel=b.boxModel=2===k.offsetWidth;if("undefined"!==typeof k.style.zoom)k.style.display="inline",k.style.zoom=1,b.inlineBlockNeedsLayout=2===k.offsetWidth,k.style.display="",k.innerHTML="
",b.shrinkWrapBlocks=2!==k.offsetWidth;k.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;"; k.innerHTML="
";c=k.firstChild;d=c.firstChild;e={doesNotAddBorder:5!==d.offsetTop,doesAddBorderForTableAndCells:5===c.nextSibling.firstChild.firstChild.offsetTop};d.style.position="fixed";d.style.top="20px";e.fixedPosition= 20===d.offsetTop||15===d.offsetTop;d.style.position=d.style.top="";c.style.overflow="hidden";c.style.position="relative";e.subtractsBorderForOverflowNotVisible=-5===d.offsetTop;e.doesNotIncludeMarginInBodyOffset=1!==f.offsetTop;f.removeChild(a);k=null;i.extend(b,e)}});return b}();var Va=/^(?:\{.*\}|\[.*\])$/,Ua=/([A-Z])/g;i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a= a.nodeType?i.cache[a[i.expando]]:a[i.expando];return!!a&&!e(a)},data:function(a,c,d,e){if(i.acceptData(a)){var f;f=i.expando;var g="string"===typeof c,h=a.nodeType,j=h?i.cache:a,k=h?a[f]:a[f]&&f,l="events"===c;if(k&&j[k]&&(l||e||j[k].data)||!(g&&d===b)){k||(h?a[f]=k=++i.uuid:k=f);if(!j[k]&&(j[k]={},!h))j[k].toJSON=i.noop;if("object"===typeof c||"function"===typeof c)e?j[k]=i.extend(j[k],c):j[k].data=i.extend(j[k].data,c);f=a=j[k];if(!e){if(!a.data)a.data={};a=a.data}d!==b&&(a[i.camelCase(c)]=d);if(l&& !a[c])return f.events;g?(d=a[c],null==d&&(d=a[i.camelCase(c)])):d=a;return d}}},removeData:function(a,b,c){if(i.acceptData(a)){var d,f,g,h=i.expando,j=a.nodeType,k=j?i.cache:a,l=j?a[h]:h;if(k[l]){if(b&&(d=c?k[l]:k[l].data)){i.isArray(b)||(b in d?b=[b]:(b=i.camelCase(b),b=b in d?[b]:b.split(" ")));for(f=0,g=b.length;fd)return null;a=g?d:0;for(c=g?d+1:f.length;ag.indexOf(":")?"on"+g:"",e){c.result=b;if(!c.target)c.target=e;d=null!=d?i.makeArray(d):[];d.unshift(c);l=i.event.special[g]||{};if(!(l.trigger&&!1===l.trigger.apply(e,d))){n= [[e,l.bindType||g]];if(!f&&!l.noBubble&&!i.isWindow(e)){m=l.delegateType||g;h=Ca.test(m+g)?e:e.parentNode;for(k=null;h;h=h.parentNode)n.push([h,m]),k=h;k&&k===e.ownerDocument&&n.push([k.defaultView||k.parentWindow||a,m])}for(k=0;ke&&h.push({elem:this,matches:d.slice(e)});for(j=0;j+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,h=!1,j=!0,k=/\\/g,l=/\r\n/g,m=/\W/;[0,0].sort(function(){j=!1;return 0});var n=function(a,b,c,e){var c=c||[],f=b=b||p;if(1!==b.nodeType&&9!== b.nodeType)return[];if(!a||"string"!==typeof a)return c;var h,i,r,j,k,l=!0,I=n.isXML(b),m=[],L=a;do if(d.exec(""),h=d.exec(L))if(L=h[3],m.push(h[1]),h[2]){j=h[3];break}while(h);if(1":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!m.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||q([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c"; d.insertBefore(a,d.firstChild);if(p.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=p.createElement("div");a.appendChild(p.createComment("")); if(0

";if(!(b.querySelectorAll&& 0===b.querySelectorAll(".TEST").length)){n=function(b,c,d,e){c=c||p;if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return F(c.getElementsByTagName(b),d);if(f[2]&&o.find.CLASS&&c.getElementsByClassName)return F(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return F([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return F([g],d)}else return F([],d)}try{return F(c.querySelectorAll(b), d)}catch(h){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",r=c.parentNode,j=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);if(j&&r)c=c.parentNode;try{if(!j||r)return F(c.querySelectorAll("[id='"+i+"'] "+b),d)}catch(k){}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=p.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector|| a.msMatchesSelector;if(b){var c=!b.call(p.createElement("div"),"div"),d=!1;try{b.call(p.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=p.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:p.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 z=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,Ga=/<([\w:]+)/,tb=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", "
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ja=l(p);v.optgroup=v.option;v.tbody=v.tfoot=v.colgroup=v.caption=v.thead;v.th=v.td;if(!i.support.htmlSerialize)v._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||p).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))&&!v[(Ga.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Fa,"<$1>");try{for(var c=0,d=this.length;ch.length&&g===p&&"<"===h.charAt(0)&&!wb.test(h)&& (i.support.checkClone||!Ia.test(h))&&(i.support.html5Clone||!Ha.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=(Ga.exec(h)||["",""])[1].toLowerCase();var j=v[f]||v._default,k=j[0],m=b.createElement("div");b===p?Ja.appendChild(m):l(b).appendChild(m);for(m.innerHTML=j[1]+h+j[2];k--;)m= m.lastChild;if(!i.support.tbody){k=tb.test(h);j="table"===f&&!k?m.firstChild&&m.firstChild.childNodes:""===j[1]&&!k?m.childNodes:[];for(f=j.length-1;0<=f;--f)i.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!i.support.leadingWhitespace&&la.test(h)&&m.insertBefore(b.createTextNode(la.exec(h)[0]),m.firstChild);h=m.childNodes}else h=b.createTextNode(h);var n;if(!i.support.appendChecked)if(h[0]&&"number"===typeof(n=h.length))for(f=0;f)<[^<]*)*<\/script>/gi,Kb=/^(?:select|textarea)/i,qa=/\s+/,Lb=/([?&])_=[^&]*/,Pa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Qa=i.fn.load,da={},Ra={},P,H,Sa=["*/"]+["*"];try{P=cb.href}catch(Rb){P=p.createElement("a"),P.href= "",P=P.href}H=Pa.exec(P.toLowerCase())||[];i.fn.extend({load:function(a,c,d){if("string"!==typeof a&&Qa)return Qa.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(Na,"\r\n")}}):{name:b.name,value:c.replace(Na, "\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?Q(a,i.ajaxSettings):(b=a,a=i.ajaxSettings);Q(a, b);return a},ajaxSettings:{url:P,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(H[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","*":Sa},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:w(da),ajaxTransport:w(Ra),ajax:function(a,c){function d(a,c,l,n){if(2!==w){w=2;t&&clearTimeout(t);p=b;q=n||"";u.readyState=0a||304===a){if(e.ifModified){if(D=u.getResponseHeader("Last-Modified"))i.lastModified[m]=D;if(D=u.getResponseHeader("Etag"))i.etag[m]=D}if(304===a)n="notmodified",r=!0;else try{D=e;D.dataFilter&&(l=D.dataFilter(l,D.dataType));var C=D.dataTypes;A={};var Q,K,P=C.length,H,R=C[0],E,N,S,U,G;for(Q=1;Qa&&(a=0);u.status=a;u.statusText=""+(c||n);r?h.resolveWith(f,[I,n,u]):h.rejectWith(f,[u,n,o]);u.statusCode(k);k=b;v&&g.trigger("ajax"+(r? "Success":"Error"),[u,e,r?I:o]);j.fireWith(f,[u,n]);v&&(g.trigger("ajaxComplete",[u,e]),--i.active||i.event.trigger("ajaxStop"))}}"object"===typeof a&&(c=a,a=b);var c=c||{},e=i.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof i)?i(f):i.event,h=i.Deferred(),j=i.Callbacks("once memory"),k=e.statusCode||{},m,l={},n={},q,o,p,t,s,w=0,v,z,u={readyState:0,setRequestHeader:function(a,b){if(!w){var c=a.toLowerCase(),a=n[c]=n[c]||a;l[a]=b}return this},getAllResponseHeaders:function(){return 2=== w?q:null},getResponseHeader:function(a){var c;if(2===w){if(!o)for(o={};c=Fb.exec(q);)o[c[1].toLowerCase()]=c[2];c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){if(!w)e.mimeType=a;return this},abort:function(a){a=a||"abort";p&&p.abort(a);d(0,a);return this}};h.promise(u);u.success=u.done;u.error=u.fail;u.complete=j.add;u.statusCode=function(a){if(a){var b;if(2>w)for(b in a)k[b]=[k[b],a[b]];else b=a[u.status],u.then(b,b)}return this};e.url=((a||e.url)+"").replace(Eb,"").replace(Ib, H[1]+"//");e.dataTypes=i.trim(e.dataType||"*").toLowerCase().split(qa);if(null==e.crossDomain)s=Pa.exec(e.url.toLowerCase()),e.crossDomain=!(!s||!(s[1]!=H[1]||s[2]!=H[2]||(s[3]||("http:"===s[1]?80:443))!=(H[3]||("http:"===H[1]?80:443))));if(e.data&&e.processData&&"string"!==typeof e.data)e.data=i.param(e.data,e.traditional);B(da,e,c,u);if(2===w)return!1;v=e.global;e.type=e.type.toUpperCase();e.hasContent=!Hb.test(e.type);v&&0===i.active++&&i.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+= (Oa.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,!1===e.cache)){s=i.now();var M=e.url.replace(Lb,"$1_="+s);e.url=M+(M===e.url?(Oa.test(e.url)?"&":"?")+"_="+s:"")}(e.data&&e.hasContent&&!1!==e.contentType||c.contentType)&&u.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,i.lastModified[m]&&u.setRequestHeader("If-Modified-Since",i.lastModified[m]),i.etag[m]&&u.setRequestHeader("If-None-Match",i.etag[m]));u.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]? e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+Sa+"; q=0.01":""):e.accepts["*"]);for(z in e.headers)u.setRequestHeader(z,e.headers[z]);if(e.beforeSend&&(!1===e.beforeSend.call(f,u,e)||2===w))return u.abort(),!1;for(z in{success:1,error:1,complete:1})u[z](e[z]);if(p=B(Ra,e,c,u)){u.readyState=1;v&&g.trigger("ajaxSend",[u,e]);e.async&&0w)d(-1,C);else throw C;}}else d(-1,"No Transport");return u}, param:function(a,c){var d=[],e=function(a,b){b=i.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b)c=i.ajaxSettings.traditional;if(i.isArray(a)||a.jquery&&!i.isPlainObject(a))i.each(a,function(){e(this.name,this.value)});else for(var f in a)M(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=p.head||p.getElementsByTagName("head")[0]||p.documentElement;return{send:function(e,f){c=p.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 G)G[a](0,1)}:!1,Nb=0,G;i.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&T()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:T;(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,l,m,n;try{if(d&&(e||4===g.readyState)){d=b;if(h)g.onreadystatechange=i.noop,na&&delete G[h];if(e)4!==g.readyState&&g.abort();else{j=g.status;l=g.getAllResponseHeaders(); m={};if((n=g.responseXML)&&n.documentElement)m.xml=n;m.text=g.responseText;try{k=g.statusText}catch(q){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:1223===j&&(j=204)}}}catch(o){e||f(-1,o)}m&&f(j,k,m,l)};!c.async||4===g.readyState?d():(h=++Nb,na&&(G||(G={},i(a).unload(na)),G[h]=d),g.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ea={},z,N,Ob=/^(?:toggle|show|hide)$/,Pb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,ra=[["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(K("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 m;this.element="object"==typeof a?a:document.getElementById(a);this.wrapper=this.element.parentNode;this.element.style.webkitTransitionProperty="-webkit-transform";this.element.style.webkitTransitionTimingFunction="cubic-bezier(0,0,0.25,1)";this.element.style.webkitTransitionDuration="0";this.element.style.webkitTransform=j+"0,0"+l;this.options={bounce:c,momentum:c,checkDOMChanges:!0,topOnDOMChanges:!1,hScrollbar:c,vScrollbar:c,fadeScrollbar:d||!e,shrinkScrollbar:d|| !e,desktopCompatibility:!1,overflow:"auto",snap:!1,bounceLock:!1,directionLock:!0,scrollbarColor:"rgba(150,150,150,0.5)",onScrollEnd:function(){}};if("object"==typeof b)for(m in b)this.options[m]=b[m];if(this.options.desktopCompatibility)this.options.overflow="hidden";this.onScrollEnd=this.options.onScrollEnd;delete this.options.onScrollEnd;this.wrapper.style.overflow=this.options.overflow;this.refresh();window.addEventListener("onorientationchange"in window?"orientationchange":"resize",this,!1); if(e||this.options.desktopCompatibility)this.element.addEventListener(f,this,!1),this.element.addEventListener(g,this,!1),this.element.addEventListener(h,this,!1);this.options.checkDOMChanges&&this.element.addEventListener("DOMSubtreeModified",this,!1)}function b(a,b,c,d,e){var f=document;this.dir=a;this.fade=c;this.shrink=d;this.uid=++m;this.bar=f.createElement("div");this.bar.style.cssText="position:absolute;top:0;left:0;-webkit-transition-timing-function:cubic-bezier(0,0,0.25,1);pointer-events:none;-webkit-transition-duration:0;-webkit-transition-delay:0;-webkit-transition-property:-webkit-transform;z-index:10;background:"+ e+";-webkit-transform:"+j+"0,0"+l+";"+("horizontal"==a?"-webkit-border-radius:3px 2px;min-width:6px;min-height:5px":"-webkit-border-radius:2px 3px;min-width:5px;min-height:6px");this.wrapper=f.createElement("div");this.wrapper.style.cssText="-webkit-mask:-webkit-canvas(scrollbar"+this.uid+this.dir+");position:absolute;z-index:10;pointer-events:none;overflow:hidden;opacity:0;-webkit-transition-duration:"+(c?"300ms":"0")+";-webkit-transition-delay:0;-webkit-transition-property:opacity;"+("horizontal"== this.dir?"bottom:2px;left:2px;right:7px;height:5px":"top:2px;right:2px;bottom:7px;width:5px;");this.wrapper.appendChild(this.bar);b.appendChild(this.wrapper)}a.prototype={x:0,y:0,enabled:!0,handleEvent:function(a){switch(a.type){case f:this.touchStart(a);break;case g:this.touchMove(a);break;case h:this.touchEnd(a);break;case "webkitTransitionEnd":this.transitionEnd();break;case "orientationchange":case "resize":this.refresh();break;case "DOMSubtreeModified":this.onDOMModified(a)}},onDOMModified:function(a){var b= this;a.target.parentNode==b.element&&(setTimeout(function(){b.refresh()},0),b.options.topOnDOMChanges&&(0!=b.x||0!=b.y)&&b.scrollTo(0,0,"0"))},refresh:function(){var a=this.x,c=this.y;this.scrollWidth=this.wrapper.clientWidth;this.scrollHeight=this.wrapper.clientHeight;this.scrollerWidth=this.element.offsetWidth;this.scrollerHeight=this.element.offsetHeight;this.maxScrollX=this.scrollWidth-this.scrollerWidth;this.maxScrollY=this.scrollHeight-this.scrollerHeight;this.directionY=this.directionX=0;if(this.scrollX)if(0<= this.maxScrollX)a=0;else if(this.xthis.scrollWidth;this.scrollY=!this.options.bounceLock&&!this.scrollX|| this.scrollerHeight>this.scrollHeight;if(this.options.hScrollbar&&this.scrollX)this.scrollBarX=this.scrollBarX||new b("horizontal",this.wrapper,this.options.fadeScrollbar,this.options.shrinkScrollbar,this.options.scrollbarColor),this.scrollBarX.init(this.scrollWidth,this.scrollerWidth);else if(this.scrollBarX)this.scrollBarX=this.scrollBarX.remove();if(this.options.vScrollbar&&this.scrollY&&this.scrollerHeight>this.scrollHeight)this.scrollBarY=this.scrollBarY||new b("vertical",this.wrapper,this.options.fadeScrollbar, this.options.shrinkScrollbar,this.options.scrollbarColor),this.scrollBarY.init(this.scrollHeight,this.scrollerHeight);else if(this.scrollBarY)this.scrollBarY=this.scrollBarY.remove()},setPosition:function(a,b,c){this.x=a;this.y=b;this.element.style.webkitTransform=j+this.x+"px,"+this.y+"px"+l;c||(this.scrollBarX&&this.scrollBarX.setPosition(this.x),this.scrollBarY&&this.scrollBarY.setPosition(this.y))},setTransitionTime:function(a){a=a||"0";this.element.style.webkitTransitionDuration=a;if(this.scrollBarX)this.scrollBarX.bar.style.webkitTransitionDuration= a,this.scrollBarX.wrapper.style.webkitTransitionDuration=c&&this.options.fadeScrollbar?"300ms":"0";if(this.scrollBarY)this.scrollBarY.bar.style.webkitTransitionDuration=a,this.scrollBarY.wrapper.style.webkitTransitionDuration=c&&this.options.fadeScrollbar?"300ms":"0"},touchStart:function(a){var b;if(this.enabled){a.preventDefault();a.stopPropagation();this.scrolling=!0;this.moved=!1;this.distY=this.distX=0;this.setTransitionTime("0");if(this.options.momentum||this.options.snap)if(b=new WebKitCSSMatrix(window.getComputedStyle(this.element).webkitTransform), b.e!=this.x||b.f!=this.y)document.removeEventListener("webkitTransitionEnd",this,!1),this.setPosition(b.e,b.f),this.moved=!0;this.touchStartX=e?a.changedTouches[0].pageX:a.pageX;this.scrollStartX=this.x;this.touchStartY=e?a.changedTouches[0].pageY:a.pageY;this.scrollStartY=this.y;this.scrollStartTime=a.timeStamp;this.directionY=this.directionX=0}},touchMove:function(a){if(this.scrolling){var b=e?a.changedTouches[0].pageX:a.pageX,c=e?a.changedTouches[0].pageY:a.pageY,d=this.scrollX?b-this.touchStartX: 0,f=this.scrollY?c-this.touchStartY:0,g=this.x+d,h=this.y+f;a.stopPropagation();this.touchStartX=b;this.touchStartY=c;if(0<=g||gthis.distY)h=this.y,f=0;else if(this.distY-3>this.distX)g=this.x,d=0;this.setPosition(g, h);this.moved=!0;this.directionX=0this.maxScrollY?this.y+this.scrollerHeight-this.scrollHeight:0)+this.scrollHeight/5:this.y+this.scrollerHeight-this.scrollHeight):{dist:0,time:0},d=Math.max(Math.max(a.time,c.time),1),f=this.x+a.dist,g=this.y+c.dist);if(this.options.snap)a= this.snap(f,g),f=a.x,g=a.y,d=Math.max(a.time,d);this.scrollTo(f,g,d+"ms")}else if(this.resetPosition(),e){for(d=c.target;1!=d.nodeType;)d=d.parentNode;a.preventDefault();f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,a.view,1,c.screenX,c.screenY,c.clientX,c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);f._fake=!0;d.dispatchEvent(f)}}},transitionEnd:function(){document.removeEventListener("webkitTransitionEnd",this,!1);this.resetPosition()},resetPosition:function(){var a= this,b=a.x,c=a.y;if(0<=a.x)b=0;else if(a.xthis.directionX?Math.ceil(a/this.scrollWidth):Math.round(a/this.scrollWidth);this.pageX=-a;a*=this.scrollWidth;if(0< a)a=this.pageX=0;else if(athis.directionY?Math.ceil(b/this.scrollHeight):Math.round(b/this.scrollHeight);this.pageY=-b;b*=this.scrollHeight;if(0c?(b=b*c/e/2.5,e=c):0>a&&e>d&&(b=b*d/e/2.5,e=d);f=b/1.2;return{dist:Math.round(e* (0>a?-1:1)),time:Math.round(f)}},destroy:function(a){window.removeEventListener("onorientationchange"in window?"orientationchange":"resize",this,!1);this.element.removeEventListener(f,this,!1);this.element.removeEventListener(g,this,!1);this.element.removeEventListener(h,this,!1);document.removeEventListener("webkitTransitionEnd",this,!1);this.options.checkDOMChanges&&this.element.removeEventListener("DOMSubtreeModified",this,!1);if(this.scrollBarX)this.scrollBarX=this.scrollBarX.remove();if(this.scrollBarY)this.scrollBarY= this.scrollBarY.remove();a&&this.wrapper.parentNode.removeChild(this.wrapper);return null}};b.prototype={init:function(a,b){var c=document,d=Math.PI;if("horizontal"==this.dir){if(this.maxSize!=this.wrapper.offsetWidth)this.maxSize=this.wrapper.offsetWidth,c=c.getCSSCanvasContext("2d","scrollbar"+this.uid+this.dir,this.maxSize,5),c.fillStyle="rgb(0,0,0)",c.beginPath(),c.arc(2.5,2.5,2.5,d/2,-d/2,!1),c.lineTo(this.maxSize-2.5,0),c.arc(this.maxSize-2.5,2.5,2.5,-d/2,d/2,!1),c.closePath(),c.fill()}else if(this.maxSize!= this.wrapper.offsetHeight)this.maxSize=this.wrapper.offsetHeight,c=c.getCSSCanvasContext("2d","scrollbar"+this.uid+this.dir,5,this.maxSize),c.fillStyle="rgb(0,0,0)",c.beginPath(),c.arc(2.5,2.5,2.5,d,0,!1),c.lineTo(5,this.maxSize-2.5),c.arc(2.5,this.maxSize-2.5,2.5,0,d,!1),c.closePath(),c.fill();this.size=Math.max(Math.round(this.maxSize*this.maxSize/b),6);this.maxScroll=this.maxSize-this.size;this.toWrapperProp=this.maxScroll/(a-b);this.bar.style["horizontal"==this.dir?"width":"height"]=this.size+ "px"},setPosition:function(a){"1"!=this.wrapper.style.opacity&&this.show();a=Math.round(this.toWrapperProp*a);0>a?(a=this.shrink?a+3*a:0,7>this.size+a&&(a=-this.size+6)):a>this.maxScroll&&(a=this.shrink?a+3*(a-this.maxScroll):this.maxScroll,7>this.size+this.maxScroll-a&&(a=this.size+this.maxScroll-6));a="horizontal"==this.dir?j+a+"px,0"+l:j+"0,"+a+"px"+l;this.bar.style.webkitTransform=a},show:function(){if(c)this.wrapper.style.webkitTransitionDelay="0";this.wrapper.style.opacity="1"},hide:function(){if(c)this.wrapper.style.webkitTransitionDelay= "350ms";this.wrapper.style.opacity="0"},remove:function(){this.wrapper.parentNode.removeChild(this.wrapper);return null}};var c="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,d=/iphone|ipad/gi.test(navigator.appVersion),e="ontouchstart"in window,f=e?"touchstart":"mousedown",g=e?"touchmove":"mousemove",h=e?"touchend":"mouseup",j="translate"+(c?"3d(":"("),l=c?",0)":")",m=0;window.iScroll=a})();var util={};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&&(dg;k="greater than";break;case "gte":m=l>=g;k="greater than or equal to";break;case "lt":m=l");this.webobject.attr("src",$(a).attr("url"));this.webobject.attr("width",$(a).attr("width"));this.webobject.attr("height",$(a).attr("height"));this.webobject.css("left",$(a).attr("xpos")+"px");this.webobject.css("top",$(a).attr("ypos")+"px");this.webobject.css("z-index",this.depth); b.ref.append(this.webobject);this.webobject.show()};Element.prototype.destroyWebobjects=function(){if(this.webobject)this.webobject.remove(),this.webobject=null};Element.prototype.open_url=function(a){story.popWindow=window.open($(a).attr("url"),"storyline");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.xoffset||0,d=this.yoffset||0,c=this.slideX()-c,d=this.slideY()-d;return a>c&&ad&&bc++;)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()})};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(){var a=player.useCompactResume?story.toResumeData():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());c.Remainder();for(var c=c.NextChunk(),d=0;!c.isNothing;)c.IsEmpty()||story.getDescendantsByType("Scene")[d].restoreFromResumeData(c.Data()),c=c.NextChunk(),d++;for(;!b.IsEmpty();){var c=new bwChunk(b.Data()),e=bwChunk.UBaseNto10(c.Data()),f; if(0==e){c=Window.parseResumeChunk(b);if(c.slide)this.startingslide=c.slide.getFullObjref();player.history=c.history}else{f=null;var g=1;$.each(this.children,function(a,b){"Window"==b.innerType&&(g==e&&(f=b),g++)});if(f&&(c=Window.parseResumeChunk(b),c.slide))c.win=f,this.startingWindowInfo=c}b=b.NextChunk()}for(;!a.EOF();){var h=a.NextUBase10(2),j=null;$.each(story.allSlides,function(a,b){b.slideIndexForResume==h&&(j=b)});player.slideList.markVisited(j)}return!0}; Storyline.prototype.toData=function(a){var b=this,c={slideID:player.currentSlide().id,history:player.history};$.each(this.variables,function(a,e){if(e!=b.variableDefaults[a]){if(!c.variables)c.variables={};c.variables[a]=e}});$.each(this.children,function(b,e){if("Slide"!=e.innerType&&e.toData){var f=e.toData(a);if(!jQuery.isEmptyObject(f)){if(!c.children)c.children={};c.children[b]=f}}});return c};Storyline.prototype.updateBaseFromData=Element.prototype.updateFromData; Storyline.prototype.updateFromData=function(a){try{this.updateBaseFromData(a);if(a.slideID)this.startingslide=a.slideID;if(a.history)player.history=a.history}catch(b){}}; Storyline.prototype.loadFromXML=function(a){var b=this;b.xml=$(a).children();this.scenes=[];this.allSlides=[];this.slideLookup={};this.media=[];this.currentSceneIndex=0;this.children={};this.resumeID=$(a).children().children("resume").attr("id");this.resumeWindow=$(a).children().children("resume").attr("window");this.resumeSlideID=$(a).children().children("resume").attr("slideid");this.resumeLMS="true"==$(a).children().children("resume").attr("lmsresume");this.resumeFlash="true"==$(a).children().children("resume").attr("flashresume"); this.resumePrompt="true"==$(a).children().children("resume").attr("prompt");this.frameWidth=parseInt($(a).children().children("display").attr("width"));this.frameHeight=parseInt($(a).children().children("display").attr("height"));-1

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()}; 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("LightboxWnd"==this.id||"LightboxControlsWnd"==this.id)this.isLightbox=!0,this.prepareLightbox();else if("MessageWnd"==this.id){var c=$("
");$(".contentpane").append(c)}player.currentWindowSlide&&(player.currentWindowSlide.saveIfNecessary(), player.currentWindowSlide.resetSlide());this.ref.show();a.currentTime=0;a.createRef();this.appendSlide(a);a.ref.show();a.variables.WindowId=this.id;a.variables.Visited=!0;a.viewedCurrent=!0;a.update(0,!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(){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()}; 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.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&&c.push(b)});for(var b=new bwChunk(a),d=0,e=0;!b.isNothing;){if(d>=c.length){var f=story.slideDraws[e];f&&f.restoreFromResumeData(b.Data());e++}else c[d].compactResumeData=b.ChunkData();b=b.NextChunk();d++}this.compactResumeData=bwChunk.CreateChunk(a)}; Scene.prototype.getResumeData=function(){var a="",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){"SlideDraw"==b.innerType&&(c+=b.getResumeData())});b+=c;return a+=bwChunk.CreateChunk(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)this.ref=$(""),player.isIOSFrame?$(document.body).append(this.ref):$(".framewrap").append(this.ref),this.context=this.ref.get(0).getContext("2d")}; 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.backgroundReady=this.ready=!1;this.currentIndex=this.currentTime=this.slideIndex=0;this.duration=10;this.active=!0;this.width=720;this.height=540;this.scale=1;this.topZ=5;this.constructElement();this.fullyLoaded=!1}; Slide.prototype=new Element;Slide.prototype.objectType="Slide";Slide.prototype.innerType="Slide"; Slide.getResumeReference=function(a){strSlideRef="";null==a?strSlideRef=9:(strSlideRef+=a.slideBank?"1":"0",a.slideBank?(strSlideRef+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.drawSlideIndex)),strSlideRef+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneIndex)),strSlideRef+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.drawIndex))):(strSlideRef+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneSlideIndex)),strSlideRef+=bwChunk.CreateChunk(bwChunk.UBase10toN(a.sceneIndex))));return strSlideRef}; 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){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),d=new bwChunk(d.Data()),e=new bwChunk(d.Data());$.each(this.interactions,function(a,b){b.restoreFromResumeChunk(e);e=e.NextChunk()});if(!b){d=d.NextChunk();this.currentTime=bwChunk.BaseNto10(d.Data(),d.Length());this.fixCurrentIndex();for(var d=d.NextChunk(),f=new bwChunk(d.Data()),g=0;!f.isNothing;){var h= c[g];h&&h.restoreFromResumeData(f.ChunkData());f=f.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(f=0;!h.isNothing;)d=j[f],d.restoreFromResumeData(h.Data()),h=h.NextChunk(),f++,d.reset(),d.hide();g=g.NextChunk();for(h=new bwChunk(g.Data());!h.isNothing;)f=h.NextUBase10(),d=j[f],f=d.currentTime,d.slide==player.currentSlide()?d.show():(d.visible=!0,d.setOnStage(!0)),d.currentTime=f,h=h.NextChunk();this.restoreVariableResumeData(g.NextChunk().NextChunk().Data())}}; Slide.prototype.getResumeData=function(){var a="";if(this.resume&&this.variables.Visited){var b="",c="",d="",e="";this.deepEach(function(a,c){c.resume&&"ShuffleGroup"!=c.innerType&&(b+=bwChunk.CreateChunk(c.GetResumeData()))},function(a){return"Layer"==a.innerType?!1:!0});e="";$.each(this.interactions,function(a,b){e+=bwChunk.CreateChunk(b.GetResumeData())});var a=bwChunk.CreateChunk(e),f=bwChunk.Base10toN(this.currentTime),a=a+bwChunk.CreateChunk(f),a=a+bwChunk.CreateChunk(b),g=[];$.each(this.children, function(a,b){"Layer"==b.innerType&&(b.visible&&g.push(b),b.resume&&(c+=bwChunk.CreateChunk(b.getResumeData())))});a+=bwChunk.CreateChunk(c);$.each(g,function(a,b){var c=b.getItemIndex();d+=bwChunk.CreateChunk(bwChunk.Base10toN(c))});a+=bwChunk.CreateChunk(d);a+=bwChunk.CreateChunk("");f=this.getVariableResumeData();0'):$('
'),this.ref.attr("runningindex",Slide.runningIndex++),this.background&&this.background.apply(this.ref),this.ref.get(0).id="slide_"+this.id,$.each(this.children,function(a,c){c.createRef&&c.createRef()}),this.container.append(this.ref),player.reorient(!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.remove(),this.ref=null};Slide.prototype.findClip=function(a){var b=$.grep(this.clips,function(b){return b.id==a});return 0=parseInt(this.currentTime);)this.currentIndex--,this.timelineEvents[this.currentIndex].revert(a);for(;this.currentIndexa.time+1E3),this.currentIndex++; this.handleTransitionIn();this.updateLayers();this.currentTime>=this.duration&&(this.handleEvent("ontimelinecomplete"),player.layerPlaying||this.handleEvent("onallopentimelinescomplete"))};Slide.prototype.tickLayers=function(){$.each(this.layers,function(a,b){b.visible&&!b.paused&&(b.currentTime+=player.TICK_DURATION)})};Slide.prototype.updateLayers=function(){$.each(this.layers,function(a,b){b.visible&&b.update()})}; Slide.prototype.handleTransitionIn=function(){if(!this.transitionedIn)this.transitionedIn=!0,this.handleEvent("ontransitionin",null,null,!1,!0),this.handleEvent("ontransitionincomplete",null,null,!1,!0),this.handleEvent("onslidestart",null,null,!1,!0),this.deepEach(function(a,b){b.handleEvent&&b.handleEvent("onslidestart",null,null,!1,!0)},function(a){return"Layer"!=a.innerType})}; Slide.prototype.addchoiceresponse=function(a){var b=this.children[$(a).attr("interactionid")],a=$(a).attr("value"),c=this.extractVariable(a)||"true",d=b.parseObjref(a).target;"Choice"!=d.innerType&&$.each(b.choices,function(a,b){b.lmstext.toLowerCase()==c.toLowerCase()&&(d=b)});"Choice"==d.innerType?(b.responses[a]=d,b.lmsResponses.push(d),d.selected=!0):(b.variables.Value=c,a=b.parseObjref(c).target,"Choice"==a.innerType?(a.selected=!0,b.lmsResponses.push(a)):b.lmsResponses.push({lmstext:c}))}; Slide.prototype.addpairresponse=function(a){var b=this.children[$(a).attr("interactionid")],c=this.extractVariable($(a).attr("valuea"),$(a).attr("typea")),d=this.extractVariable($(a).attr("valueb"),$(a).attr("typeb"));if(c&&d)switch(a=b.parseObjref(c).target,d=b.parseObjref(d).target,a.addPair(d),d.addPair(a),b.interactionType){case "matching":case "sequence":case "likert":b.lmsResponses.push(a),b.lmsResponses.push(d)}else b.parseObjref($(a).attr("valueb"))}; Slide.prototype.show_slidelayer=function(a){var b=this.parseObjrefFromXML(a).target,c=new Transition(b);c.loadFromXML(a);b.show(c);b.update(0)};Slide.prototype.set_frame_layout=function(a){player.frame.set_frame_layout(a)};Slide.prototype.set_window_control_layout=function(a){player.frame.set_window_control_layout(a)}; Slide.prototype.simplify=function(a){var b=this.childItems(),c=$('');c.attr("width",player.width);c.attr("height",player.height);var d=c.get(0).getContext("2d");this.ref.prepend($(c));var e=0,f=0,g=!1,h=!0;$.each(b,function(a,b){if(player.renderVectorShapes&&player.renderVectorsAsSVG&&b.content.path)b.canSimplify=!1;if(player.renderVectorShapes&&(b.hasImagelib||b.hasTextlib))b.canSimplify=!1;b.canSimplify&&h&&!b.group?f++:(h=!1,b.canSimplify=!1)});var j=function(b, c,d,h){g=!0;var j=function(){e++;if(e==f)m(),$(s).unbind("load"),s.src=Element.PixelSrc,a&&a()},s=new Image;$(s).bind("load",function(){j()});$(s).bind("error",function(){j()});player.renderVectorShapes&&!player.renderVectorsAsSVG&&h&&h.content.path&&!h.hasImagelib&&!h.hasTextlib?e++:s.src=b;l.push({img:s,x:c,y:d,item:h})},l=[],m=function(){$.each(l,function(a,b){if(player.renderVectorShapes&&!player.renderVectorsAsSVG&&b.item&&b.item.content.path&&!b.item.hasImagelib&&!b.item.hasTextlib){var e={canvas:c.get(0), m_nXOffset:b.x,m_nYOffset:b.y,m_nWidth:b.item.width,m_nHeight:b.item.height};ppArt.DrawVector(e,b.item.content.path);b.item.ref.addClass("vector")}else d.drawImage(b.img,b.x,b.y)})};this.background&&this.background.src&&(f++,j(this.background.src,0,0),this.ref.css("background","transparent"));$.each(b,function(a,b){if(b.canSimplify)j(b.content.src,b.x,b.y,b),b.ref.addClass("simplified"),b.simplified=!0,b.ref.attr("src",Element.PixelSrc),b.ref.css("background","transparent"),b.hasEvents||b.ref.remove(), g=!0});a&&!g&&a()};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.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,a=new bwChunk(a),d=a.NextUBase10(1),e=0;d&b.FLAGA_USEFLAGB&&(e=a.NextUBase10(1));if(d&b.FLAGA_STATE){var f=a.NextUBase10(2),g="";$.each(this.states,function(a,b){b.index==f&&(g=a)});this.variables.ObjectState=g}d&b.FLAGA_ONSTAGE?this.quickShow?this.quickShow():(this.show(),this.visible=!0):"ShuffleGroup"!=this.innerType&&(this.quickHide?this.quickHide():this.hide());d&b.FLAGA_DRAGDROP&&(a.NextUBase10(2), a.NextUBase10(1));var h=!1;if(d&b.FLAGA_POSITION){var j=a.NextBase10(2),l=a.NextBase10(2),m=a.NextUBase10(2);this.x=j+this.xoffset;this.y=l+this.yoffset;h=!0;switch(m){case 4094:break;case 4095:this.originalParent=this.parent;this.parent=this.slide;break;default:this.originalParent=this.parent,this.parent=this.getItemByResumeIndex(m)}this.updateMatrixComplete(!0)}e&c.FLAGB_DEPTH&&this.setZIndex(a.NextUBase10(2));if(e&c.FLAGB_SHUFFLED){this.shuffled=!0;if(this.shuffleGroup)this.shuffleGroup.shuffled= !0;j=a.NextUBase10(2);l=a.NextUBase10(2);if(!h)this.x=j,this.y=l;this.shuffleX=j;this.shuffleY=l;this.updateMatrixComplete(!0)}d&b.FLAGA_VARIABLE&&this.restoreVariableResumeData(a.NextString())}; 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,l=0;if(this.variables.ObjectState!=bwUtils.DEFAULT_STATE){var m=this.states[this.variables.ObjectState],k=m?m.index:0;!m&&this.actionstates&&this.actionstateindices&&(m=this.actionstates[this.variables.ObjectState], k=this.actionstateindices[this.variables.ObjectState]||0);0<=k&&(j+=b.FLAGA_STATE,e+=bwChunk.UBase10toN(m.index,2))}f&&(j+=b.FLAGA_VARIABLE);this.visible&&(j+=b.FLAGA_ONSTAGE);this.dropArea&&(m=this.dropArea.getItemIndex(),k=this.dropArea.getDragItemIndex(this),-1"),a))this.textTemplate=a=a.replace(/size='(.*?)(pt|)'/ig,"style='font-size:$1pt'")}; 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(-1");e.imgNode=g.poolImage.get(0);e.Width=$(d).attr("width");e.Height=$(d).attr("height")})}; StageItem.prototype.loadSizeFromXML=function(a){var b=$(a).children("data").children("html5data");if("audio"!=this.type)0this.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(){this.parent.ref||this.parent.createRef();this.container=this.parent.ref;this.ref?this.render(null,!1,null,"StageItem createRef"):(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)};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)}; StageItem.prototype.updateMatrix=function(){this.matrix.reset();this.parent&&!this.parent.dragX&&!this.parent.dragY&&this.matrix.translate(this.dragX||0,this.dragY||0);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.isRotated|| 0!=this.rotation}; StageItem.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");"Layer"!=this.innerType&&"ExpandingLabel"!=this.innerType&&0b.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(){if(0==this.rotation){var a={};a.left=this.x+this.dragX;a.top=this.y+this.dragY;a.right=this.x+this.dragX+this.width;a.bottom=this.y+this.dragY+this.height;return a}var a={left:5E3,top:5E3,right:-5E3,bottom:-5E3},b=[[-this.width/2,-this.height/2],[this.width/2,-this.height/2],[this.width/2,this.height/2],[-this.width/2,this.height/2]],c=Math.cos(this.rotation*Math.PI/180),d=Math.sin(this.rotation*Math.PI/180);$.each(b,function(b,f){x=-f[0]*c+f[1]*d;y=f[0]* d-f[1]*c;if(xa.right)a.right=x;if(ya.bottom)a.bottom=y});a.left+=this.x+this.dragX+this.rotatexpos;a.top+=this.y+this.dragY+this.rotateypos;a.right+=this.x+this.dragX+this.rotatexpos;a.bottom+=this.y+this.dragY+this.rotateypos;player.showDebugOverlap&&player.testContext&&setTimeout(function(){player.testContext.strokeStyle="rgba(0,0,255,0.5)";player.testContext.strokeRect(a.left,a.top,a.right-a.left,a.bottom-a.top)},0);return a}; StageItem.prototype.testRotatedOverlap=function(a){var b=this.getAABB(),c=a.getAABB(),d,e,f,g;d=BitMask.max(b.left,c.left);e=BitMask.min(b.right,c.right);f=BitMask.max(b.top,c.top);g=BitMask.min(b.bottom,c.bottom);if(b.rightc.right||b.bottomc.bottom)return!1;if(player.showDebugOverlap){if(!player.testCanvas)player.testCanvas=$(""),$("#slideframe").append(player.testCanvas), player.testContext=player.testCanvas.get(0).getContext("2d"),player.testContext.fillStyle="rgba(255,255,0,0.5)";player.testCanvas.show();clearTimeout(player.testCanvasClear);player.testCanvasClear=setTimeout(function(){player.testCanvas.hide()},1E3);if(!player.showDebugOverlapPersistent)player.testContext.clearRect(0,0,1E3,1E3),player.testContext.fillStyle="rgba(0,255,255,0.2)",player.testContext.fillRect(b.left,b.top,b.right-b.left,b.bottom-b.top),player.testContext.fillStyle="rgba(0,0,255,0.2)", player.testContext.fillRect(c.left,c.top,c.right-c.left,c.bottom-c.top),player.testContext.strokeStyle="rgba(255,0,255,0.8)",player.testContext.strokeRect(d,f,e-d,g-f)}b=e-d;g=b*(g-f);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");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.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){b.pauseClip()});b.modalfence&&b.modalfence.hide();b.pauseparent&&player.play(!0,!0);b.destroyWebobjects();b.resume?b.compactResumeData=b.getResumeData():b.reset();b.slide.topMostLayer()==b&&b.handleEvent("endtopmostlayer");util.popArrayElement(b.slide.layerStack,b);0parseInt(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());var a=null;$.each(this.clips,function(b,c){c.getIsPlaying&&c.getIsPlaying()&&(a=c)});if(a)this.currentTime=parseInt(1E3*a.getCurrentTime()+player.currentClipStartTime);for(player.layerPlaying=!0;0this.currentTime;)this.currentIndex--, this.timelineEvents[this.currentIndex].revert(this.currentTime);for(;this.currentIndex=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();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")}}; 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; if(g.m_nXOffset!=g.xoffset||g.m_nYOffset!=g.yoffset){var l=g.m_nXOffset-g.xoffset,m=g.m_nYOffset-g.yoffset;if(!g.originalXOffset)g.originalXOffset=g.xoffset,g.originalYOffset=g.yoffset;g.xoffset=g.m_nXOffset;g.yoffset=g.m_nYOffset;this.x+=l;this.y+=m;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.xml=""};Audio.prototype=new StageItem;Audio.prototype.objectType="Item";Audio.prototype.innerType="audio";Audio.prototype.loadBaseFromXML=StageItem.prototype.loadFromXML; Audio.prototype.loadFromXML=function(a,b,c){this.parent=c?c:b;this.slide=b;this.layer=c;this.children={};this.id=$(a).attr("id");this.xml=a;this.loadElementInfoFromXML(a);this.content.src=player.basepath+$(a).attr("url");this.content.duration=parseInt($(a).attr("duration"));b&&b.clips&&b.clips.push&&b.clips.push(this);if(c&&c.clips&&c.clips.push)c.clips.push(this),this.layered=!0;if(!this.resource)this.resource=this.createResource(this.slide,this.content.src)}; Audio.prototype.createRef=function(){if(!this.ref){var a=this;this.container=$(document.body);this.ref=$('');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.handleEvent("onmediacomplete")});this.ref.bind("play",function(){if(!isNaN(a.correctedPosition)&&a.shouldSetPosition)try{a.setCurrentTime(a.correctedPosition),a.shouldSetPosition=!1}catch(b){}})}};Audio.prototype.destroyRef=function(){};Audio.prototype.renderCallback=function(){};Audio.prototype.render=function(){}; 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&&0');this.ref.attr("src",a.content.src);this.ref.addClass(this.type);this.ref.attr("poster",this.content.poster); if(player.noVideo||this.showPlaceholder){if(!this.content.hasPoster)this.ref=$('

Not Supported

Flash content is not supported in the HTML5 player.
'),this.ref.addClass(this.type);this.ref.get(0).play=function(){player.unblock();a.handleEvent("onmediacomplete")};this.ref.get(0).load=function(){};this.ref.get(0).pause=function(){}}if(this.content.captureanimation&&(player.suppressCaptureAnimations||player.isIOS))a=this,a.isSuppressedCaptureAnimation=!0, this.ref=$('
'),this.ref.get(0).play=function(){player.unblock();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.blocked&&player.blockedOn==a&&player.unblock()});this.ref.bind("timeupdate",function(){if(4== a.ref.get(0).readyState)a.canPlayThrough=!0,player.blocked&&player.blockedOn==a&&player.unblock()});this.ref.bind("error",function(){a.canPlayThrough=!0;player.blocked&&player.blockedOn==a&&player.unblock()});this.ref.bind("ended",function(){a.handleEvent("onmediacomplete")});this.ref.bind("play",function(){if(!isNaN(a.correctedPosition)&&a.shouldSetPosition)try{a.setCurrentTime(a.correctedPosition),a.shouldSetPosition=!1}catch(b){}})}}; Video.prototype.destroyRef=function(){this.pauseClip();if(player.isIOS){if(this.ref&&this.ref.get&&this.ref.get(0))Video.refStore[this.id]=this.ref,this.ref.hide(),this.ref.remove();this.ref=null}else{if(this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).src="";this.destroyBaseRef()}};Video.prototype.renderCallback=function(){};Video.prototype.render=function(){};Video.prototype.showBase=StageItem.prototype.show; Video.prototype.show=function(a,b,c){this.showBase(a,b,c);if(!player.noVideo)if(this.showPlaceholder)this.handleEvent("onmediacomplete");else{var d=this;if(d.content.autoplay||"StoryEvent"==a.type)if(player.playing||player.layerPlaying){var e=d.getTimelineAncestor().currentTime-a.time;if(d.ref&&d.ref.get&&d.ref.get(0)){var f=d.ref.get(0);this.isSuppressedCaptureAnimation?d.playClip():(clearTimeout(player.mediaTimeout),player.scheduledMediaSrc=f.src,player.mediaTimeout=setTimeout(function(){player.mediaTimeout= null;player.scheduledMediaSrc=null;d.playClip();player.currentClip=f;player.currentClipStartTime=a.time;player.currentClipSyncToTimeline="TimelineEvent"==a.type;try{d.setCurrentTime(e/1E3)}catch(b){}},0))}}}};Video.prototype.prep=function(){if(player.isIOS&&this.id!=player.nextPreparedClipID&&this.ref&&this.ref.get&&this.ref.get(0))this.ref.get(0).load(),this.prepared=!0,player.nextPreparedClipID=this.id};Video.prototype.getTimelineAncestor=Audio.prototype.getTimelineAncestor; Video.extractZeroTimeAutoPlayEvent=function(a){if(!player.isIOS||0!=a.time)return null;for(var b=0;bthis.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){var a=this;this.container=this.parent.ref;this.ref=$('
');this.applySize(this.ref);this.container.append(this.ref);var b=this.content.multiline?$("