(function(b,e){function f(b){for(var e=0;e<h.bundles.length;e++)for(var f in h.bundles[e])if(f!=b&&-1<E(h.bundles[e][f],b))return f}function g(b,e){for(var f=[],k=0,o;o=b[k];k++){if("string"==typeof o)a:{for(var q=0,p=void 0;p=h.matchers[q];q++){var n=p[1];if(o.match(p[0])){o=n(o);break a}}throw Error(o+" was not recognised by loader");}K(o)&&(o=new u(g(o,e),e));f.push(o)}return f}function h(){var b=L(arguments),e,f;"function"==typeof b[b.length-1]&&(e=b.pop());"boolean"==typeof b[b.length-1]&&(f=
b.pop());b=new w(g(b,f),f);e&&b.then(e);return b}function k(){var b=L(arguments),e=[],f,g;"string"==typeof b[0]&&(f=b.shift());K(b[0])&&(e=b.shift());g=b.shift();return p(f,function(b){function f(){var h=o(L(e),U),k;"function"==typeof g?k=g.apply(U,h):k=g;"undefined"==typeof k&&(k=U.exports);b(k)}for(var U=this,k=[],p=0,n=e.length;p<n;p++){var W=e[p];-1==E(["require","exports"],W)&&k.push(q(W,U))}0<k.length?h.apply(this,k.concat(f)):f()})}function o(b,e){function f(b){return v.exports[q(b,e)]}for(var g=
[],h=0,k=b.length;h<k;h++)"require"==b[h]?g.push(f):"exports"==b[h]?(e.exports=e.exports||{},g.push(e.exports)):g.push(f(b[h]));return g}function q(b,e){var f=(e.id||"").split("/");f.pop();f=f.join("/");return b.replace(/^\./,f)}function s(){var b=L(arguments),e;"string"==typeof b[0]&&(e=b.shift());b=b.shift();return p(e,b)}function p(b,e){var f;if(!b&&V&&!(f=I))a:{for(var g in A)if("interactive"==A[g].readyState){f=J[A[g].id];break a}f=void 0}f?(delete J[f.scriptId],f.body=e,f.execute()):(z=f=new v(b,
e),G[f.id]=f);return f}function u(b,e){this.deps=b;this.collectResults=e}function w(b,e){this.deps=b;this.collectResults=e;0==this.deps.length&&this.complete()}function v(b,e){this.id=b;this.body=e;"undefined"==typeof e&&(this.path=this.resolvePath(b))}function y(b,e){this.id=this.path=b;this.force=!!e}function C(){}function H(b,e,f){for(e=e.split("/");1<e.length;)var g=e.shift(),b=b[g]=b[g]||{};b[e[0]]=f}function M(){for(var b=L(arguments),e=[],f=0,g=b.length;f<g;f++)0<b[f].length&&e.push(b[f].replace(/\/$/,
""));return e.join("/")}function E(b,e){for(var f=0,g;g=b[f];f++)if(e==g)return f;return-1}function L(b){return Array.prototype.slice.call(b)}function S(b){for(var e=1,f;f=arguments[e];e++)for(var g in f)b[g]=f[g];return b}for(var V=b.attachEvent&&!b.opera,A=e.getElementsByTagName("script"),N=0,O,F=e.createElement("script"),x={},G={},z,I,J={},P=b.using,R=b.provide,B=b.define,T=b.loadrunner,D=0,Q;Q=A[D];D++)if(Q.src.match(/loadrunner\.js(\?|#|$)/)){O=Q;break}var K=Array.isArray||function(b){return b.constructor==
Array};C.prototype.then=function(e){this.started||(this.started=!0,this.start());this.completed?e.apply(b,this.results):(this.callbacks=this.callbacks||[],this.callbacks.push(e));return this};C.prototype.start=function(){};C.prototype.complete=function(){if(!this.completed&&(this.results=L(arguments),this.completed=!0,this.callbacks))for(var e=0,f;f=this.callbacks[e];e++)f.apply(b,this.results)};y.loaded=[];y.prototype=new C;y.prototype.start=function(){var b=this,e,g,k;if(k=G[this.id])return k.then(function(){b.complete()}),
this;(e=x[this.id])?e.then(function(){b.loaded()}):!this.force&&-1<E(y.loaded,this.id)?this.loaded():(g=f(this.id))?h(g,function(){b.loaded()}):this.load();return this};y.prototype.load=function(){var e=this;x[this.id]=e;var f=F.cloneNode(!1);this.scriptId=f.id="LR"+ ++N;f.type="text/javascript";f.async=!0;f.onerror=function(){throw Error(e.path+" not loaded");};f.onreadystatechange=f.onload=function(f){f=b.event||f;if("load"==f.type||-1<E(["loaded","complete"],this.readyState))this.onreadystatechange=
null,e.loaded()};f.src=this.path;I=this;A[0].parentNode.insertBefore(f,A[0]);I=null;J[f.id]=this};y.prototype.loaded=function(){this.complete()};y.prototype.complete=function(){-1==E(y.loaded,this.id)&&y.loaded.push(this.id);delete x[this.id];C.prototype.complete.apply(this,arguments)};v.exports={};v.prototype=new y;v.prototype.resolvePath=function(b){return M(h.path,b+".js")};v.prototype.start=function(){var b,e,g=this;this.body?this.execute():(b=v.exports[this.id])?this.exp(b):(e=G[this.id])?e.then(function(b){g.exp(b)}):
(bundle=f(this.id))?h(bundle,function(){g.start()}):(G[this.id]=this,this.load())};v.prototype.loaded=function(){var b,e,f=this;V?(e=v.exports[this.id])?this.exp(e):(b=G[this.id])&&b.then(function(b){f.exp(b)}):(b=z,z=null,b.id=b.id||this.id,b.then(function(b){f.exp(b)}))};v.prototype.complete=function(){delete G[this.id];y.prototype.complete.apply(this,arguments)};v.prototype.execute=function(){var b=this;"object"==typeof this.body?this.exp(this.body):"function"==typeof this.body&&this.body.apply(window,
[function(e){b.exp(e)}])};v.prototype.exp=function(b){this.complete(this.exports=v.exports[this.id]=b||{})};w.prototype=new C;w.prototype.start=function(){function b(){var f=[];e.collectResults&&(f[0]={});for(var g=0,h;h=e.deps[g];g++){if(!h.completed)return;0<h.results.length&&(e.collectResults?h instanceof u?S(f[0],h.results[0]):H(f[0],h.id,h.results[0]):f=f.concat(h.results))}e.complete.apply(e,f)}for(var e=this,f=0,g;g=this.deps[f];f++)g.then(b);return this};u.prototype=new C;u.prototype.start=
function(){var b=this,e=0,f=[];b.collectResults&&(f[0]={});(function X(){var g=b.deps[e++];g?g.then(function(){0<g.results.length&&(b.collectResults?g instanceof u?S(f[0],g.results[0]):H(f[0],g.id,g.results[0]):f.push(g.results[0]));X()}):b.complete.apply(b,f)})();return this};k.amd={};var n=function(b){return b(h,s,n,define)};n.Script=y;n.Module=v;n.Collection=w;n.Sequence=u;n.Dependency=C;n.noConflict=function(){b.using=P;b.provide=R;b.define=B;b.loadrunner=T;return n};b.loadrunner=n;b.using=h;
b.provide=s;b.define=k;h.path="";h.matchers=[];h.matchers.add=function(b,e){this.unshift([b,e])};h.matchers.add(/(^script!|\.js$)/,function(b){var e=new y(b.replace(/^\$/,h.path.replace(/\/$/,"")+"/").replace(/^script!/,""),!1);e.id=b;return e});h.matchers.add(/^[a-zA-Z0-9_\-\/]+$/,function(b){return new v(b)});h.bundles=[];O&&(h.path=O.getAttribute("data-path")||O.src.split(/loadrunner\.js/)[0]||"",(main=O.getAttribute("data-main"))&&h.apply(b,main.split(/\s*,\s*/)).then(function(){}))})(this,document);
window.__twttrlr=loadrunner.noConflict();
__twttrlr(function(b,e,f){e("util/iframe",function(b){var e=document.createElement("div");b(function(b){e.innerHTML='<iframe src="'+b.url+'" allowtransparency="true" frameborder="0" scrolling="no"/>';var f=e.firstChild.cloneNode(!1);f.src=b.url;f.className=b.className||"";for(var g in b.css)f.style[g]=b.css[g];f.title=b.title||"";b.replace?b.replace.parentNode.replaceChild(f,b.replace):document.body.insertBefore(f,document.body.firstChild);return f})});e("util/querystring",function(b){function e(b){return encodeURIComponent(b).replace(/\+/g,
"%2B")}b({decode:function(b){var e={},f,g,h;if(b){b=b.split("&");for(h=0;g=b[h];h++)f=g.split("="),2==f.length&&(e[decodeURIComponent(f[0])]=decodeURIComponent(f[1]))}return e},encode:function(b){var f=[],g;for(g in b)null!==b[g]&&"undefined"!=typeof b[g]&&f.push(e(g)+"="+e(b[g]));return f.sort().join("&")},encodePart:e,decodePart:function(b){return decodeURIComponent(b)}})});e("util/nodeselect",function(b){var e=document;b("querySelectorAll"in e?function(b,f){return e.querySelectorAll(b+"."+f)}:
"getElementsByClassName"in e?function(b,f){var g=e.getElementsByClassName(f),s,p=[];for(i=0;s=g[i];i++)s.tagName.toLowerCase()==b&&p.push(s);return p}:function(b,f){var g=e.getElementsByTagName(b),s,p=RegExp("(?:^|\\s+)"+f+"(?:\\s+|$)"),u=[];for(i=0;s=g[i];i++)p.test(s.className)&&u.push(s);return u})});e("$vendor/domready/ready.js",function(b){(function(b){function e(){f=1;for(var b=0,h=g.length;b<h;b++)g[b]()}var f=0,g=[],s,p,u=b.createElement("a");/^loade|c/.test(b.readyState)&&(f=1);b.addEventListener&&
b.addEventListener("DOMContentLoaded",p=function(){b.removeEventListener("DOMContentLoaded",p,!1);e()},!1);u.doScroll&&b.attachEvent("onreadystatechange",s=function(){/^c/.test(b.readyState)&&(b.detachEvent("onreadystatechange",s),e())});var w=u.doScroll?function(b){self!=top?f?b():g.push(b):function(){try{u.doScroll("left")}catch(e){return setTimeout(function(){w(b)},50)}b()}()}:function(b){f?b():g.push(b)};"undefined"!=typeof module&&module.exports?module.exports={domReady:w}:window.domReady=w})(document);
b();f.Script.loaded.push("$vendor/domready/ready.js")});e("util/domready",function(e){b("$vendor/domready/ready.js",function(){e(domReady)})});e("util/util",function(b){function e(b){for(var f=1,g;g=arguments[f];f++)for(var h in g)b[h]=g[h];return b}b({aug:e,array:function(b){return e([],b)},indexOf:function(b,e){for(var f=0,g;g=b[f];f++)if(e==g)return f;return-1}})});e("tfw/widget/base",function(e){b("util/util","util/domready","util/nodeselect","util/querystring","util/iframe",function(b,f,o,q,
s){var p,u;function w(){var b=y.widgets,e,f,g;for(g in b){g.match(/\./)?e=o.apply(this,g.split(".")):e=document.getElementsByTagName(g);for(var h=0,k;k=e[h];h++)f=new b[g](k),u.push(f),p[f.id]=f,f.render(y)}}var v=0,y;u=[];p={};var C=function(){};b.aug(C.prototype,{_:function(b){var e=this.lang;if(!e||!this.langs.hasOwnProperty(e))e="en";return this.langs[e][b]},add:function(b){u.push(this);p[this.id]=b},create:function(b,e,f,g){this.id=this.generateId();return s({url:b,css:{width:f[0]+("string"!=
typeof f[0]?"px":""),height:f[1]+("string"!=typeof f[1]?"px":"")},className:e,id:this.id,title:g,replace:this.originElement})},params:function(){var b=this.originElement.href&&this.originElement.href.split("?")[1];return b?q.decode(b):{}},generateId:function(){return this.originElement.id?this.originElement.id:"twitter_tweet_button_"+v++}});e({Base:C,init:function(b){y=b},embed:function(){w();f(function(){w()})},find:function(b){return b&&p[b]?p[b].element:null},TWITTER_PROFILE_URL:/^https?\:\/\/(?:www\.)?twitter\.com\/(?:#!?\/)?([a-zA-Z0-9_]{1,20})\/?$/})})});
e("util/events",function(e){b("util/util",function(b){function f(){this.completed=!1;this.callbacks=[]}f.prototype.addCallback=function(b){this.completed?b.apply(this,this.results):this.callbacks.push(b)};f.prototype.complete=function(){this.results=makeArray(arguments);this.completed=!0;for(var b=0,e;e=this.callbacks[b];b++)e.apply(this,this.results)};e({Emitter:{bind:function(b,e){this._handlers=this._handlers||{};this._handlers[b]=this._handlers[b]||[];return this._handlers[b].push(e)},unbind:function(e,
f){if(this._handlers[e])if(f){var g=b.indexOf(this._handlers[e],f);0<=g&&this._handlers[e].splice(g,1)}else this._handlers[e]=[]},trigger:function(b,e){var f=this._handlers&&this._handlers[b];e.type=b;if(f)for(var g=0,h;h=f[g];g++)h.call(this,e)}},Promise:f})})});e("util/uri",function(e){b("util/querystring","util/util",function(b,f){function o(b){var e;if(b.match(/^https?:\/\//))return b;e=location.host;0<location.port.length&&(e+=":"+location.port);return[location.protocol,"//",e,b].join("")}e({absolutize:o,
getCanonicalURL:function(){for(var b=document.getElementsByTagName("link"),e=0,f;f=b[e];e++)if("canonical"==f.getAttribute("rel"))return o(f.getAttribute("href"));return null},getScreenNameFromPage:function(){for(var b=document.getElementsByTagName("a"),e=document.getElementsByTagName("link"),g=/\bme\b/,h=/^https?\:\/\/(www\.)?twitter.com\/([a-zA-Z0-9_]+)$/,b=f.array(b).concat(f.array(e)),o,v,y=0;v=b[y];y++)if(e=v.getAttribute("rel"),v=v.getAttribute("href"),e&&v&&e.match(g)&&(o=v.match(h)))return o[2]}})})});
e("tfw/widget/intent",function(e){b("util/util","tfw/widget/base","util/querystring","util/uri",function(f,k){function o(b){for(var b=b||window.event,e=b.target||b.srcElement,f,g;e&&"a"!==e.nodeName.toLowerCase();)e=e.parentNode;if(e&&"a"===e.nodeName.toLowerCase()&&e.href&&(f=e.href.match(s)))f=[e.href,"original_referer="+location.href].join(-1==e.href.indexOf("?")?"?":"&"),f=f.replace(/^http[:]/,"https:"),f=f.replace(/^\/\//,"https://"),twttr.events.hub?(g=new H(C.generateId(),e),C.add(g),q(f,e),
twttr.events.trigger("click",{target:e,region:"intent",type:"click",data:{}})):(e=f,g=Math.round(y/2-u/2),f=0,v>w&&(f=Math.round(v/2-w/2)),window.open(e,"intent",p+",width="+u+",height="+w+",left="+g+",top="+f)),b.returnValue=!1,b.preventDefault&&b.preventDefault()}function q(e,f){b("xd/parent","xd/jsonrpc",function(b,g){var h=b.connect({window:{width:550,height:450},src:e});g(h).expose({trigger:function(b,e){twttr.events.trigger(b,{target:f,region:"intent",type:b,data:e})}})})}var s=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,
p="scrollbars=yes,resizable=yes,toolbar=no,location=yes",u=550,w=520,v=screen.height,y=screen.width,C,H=function(b,e){this.id=b;this.element=this.originElement=e},M=function(b){this.originElement=[];this.element=b};M.prototype=new k.Base;f.aug(M.prototype,{render:function(){C=this;window.__twitterIntentHandler||(document.addEventListener?document.addEventListener("click",o,!1):document.attachEvent&&document.attachEvent("onclick",o),window.__twitterIntentHandler=!0)}});e({Listener:M})})});e("tfw/widget/tweet",
function(e){b("util/util","tfw/widget/base","util/querystring","util/uri",function(b,f,o,q){var s=document.title,p=encodeURI(location.href),u={en:1,de:1,es:1,fr:1,id:1,it:1,ko:1,ja:1,nl:1,pt:1,ru:1,tr:1},w=function(b){this.originElement=b;this.id=this.generateId();var e=this.params(),f=e.count||b.getAttribute("data-count"),g=e.lang||b.getAttribute("data-lang");this.text=e.text||b.getAttribute("data-text")||s;this.via=e.via||b.getAttribute("data-via")||q.getScreenNameFromPage();this.url=e.url||b.getAttribute("data-url")||
q.getCanonicalURL()||p;this.related=e.related||b.getAttribute("data-related");this.counturl=e.counturl||b.getAttribute("data-counturl");this.searchlink=e.searchlink||b.getAttribute("data-searchlink");this.placeid=e.placeid||b.getAttribute("data-placeid");this.supportCount[f]||(f="horizontal");this.count=f;u[g]||(g="en");this.lang=g};w.prototype=new f.Base;b.aug(w.prototype,{supportCount:{vertical:1,horizontal:1,none:1},titles:{en:"Twitter For Websites: Tweet Button",de:"Twitter f\u00fcr Webseiten: Tweet-Schaltfl\u00e4che",
es:"Twi`tter para sitios web: Bot\u00f3n para Twittear",fr:'Twitter pour votre site web : bouton "Tweeter"',id:"Twitter untuk Situs Web: Tombol Tweet",it:"Tweeter per i siti web: Bottone Tweet",ja:"WEB\u30b5\u30a4\u30c8\u5411\u3051Twitter: \u30c4\u30a4\u30fc\u30c8\u30dc\u30bf\u30f3",ko:"Twitter \uc6f9\ubc84\ufffd \ufffd: \ud2b8\uc717 \ubc84\ud2bc",nl:"Twitter voor websites: tweetknop",pt:"Twitter para websites: Bot\u00e3o de Tweet",ru:"\u0422\u0432\u0438\u0442\u0442\u0435\u0440 \u0434\u043b\u044f \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430: \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0422\u0432\u0438\u0442\u043d\u0443\u0442\u044c\u00bb",
tr:"Web siteleri i\u00e7in Twitter: Tweetle Butonu"},dimensionsMap:{en:{vertical:[55,62],horizontal:[110,20],none:[55,20]},de:{vertical:[67,62],horizontal:[122,20],none:[67,20]},es:{vertical:[64,62],horizontal:[118,20],none:[64,20]},fr:{vertical:[65,62],horizontal:[118,20],none:[65,20]},id:{vertical:[55,62],horizontal:[110,20],none:[55,20]},it:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ko:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ja:{vertical:[80,62],horizontal:[130,20],none:[80,
20]},nl:{vertical:[55,62],horizontal:[110,20],none:[55,20]},pt:{vertical:[66,62],horizontal:[120,20],none:[66,20]},ru:{vertical:[68,62],horizontal:[120,20],none:[68,20]},tr:{vertical:[66,62],horizontal:[120,20],none:[66,20]}},parameters:function(){var b={text:this.text,url:this.url,via:this.via,related:this.related,count:this.count,lang:this.lang,counturl:this.counturl,searchlink:this.searchlink,placeid:this.placeid,original_referer:location.href,id:this.id};b._=(new Date).getTime();return o.encode(b)},
render:function(b){var e=this.dimensionsMap[this.lang][this.count],f=this.titles[this.lang];this.element=this.create(b.assetUrl()+"/widgets/tweet_button.html#"+this.parameters(),"twitter-share-button twitter-count-"+this.count,e,f)}});e({Embeddable:w})})});e("tfw/widget/follow",function(e){b("util/util","tfw/widget/base","util/querystring","util/uri",function(b,f,o){var q={en:1,de:1,es:1,fr:1,id:1,it:1,ko:1,ja:1,nl:1,pt:1,ru:1,tr:1},s=function(b){this.originElement=b;this.id=this.generateId();var e=
this.params(),f=e.lang||b.getAttribute("data-lang")||"en";this.showScreenName=e.show_screen_name||b.getAttribute("data-show-screen-name")||"";this.showCount=e.show_count||b.getAttribute("data-show-count")||"";this.button=e.button||b.getAttribute("data-button")||"blue";this.linkColor=e.link_color||b.getAttribute("data-link-color")||"";this.textColor=e.text_color||b.getAttribute("data-text-color")||"";this.width=e.width||b.getAttribute("data-width")||"";this.screenName=this.screenNameFromHref();this.align=
e.align||b.getAttribute("data-align")||"";this.lang=f;q[f]||(this.lang="en")};s.prototype=new f.Base;b.aug(s.prototype,{titles:{en:"Twitter For Websites: Tweet Button",de:"Twitter f\u00fcr Webseiten: Tweet-Folgen",es:"Twi`tter para sitios web: Bot\u00f3n para Seguir",fr:'Twitter pour votre site web : bouton "Suivre"',id:"",it:"Tweeter per i siti web: Bottone Seguire",ja:"WEB\u30b5\u30a4\u30c8\u5411\u3051Twitter",ko:"Twitter \uc6f9\ubc84\ufffd \ufffd",pt:"Twitter para websites",ru:"\u0422\u0432\u0438\u0442\u0442\u0435\u0440 \u0434\u043b\u044f \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430",
tr:"Web siteleri i\u00e7in Twitter"},langs:{en:{dimensions:[300,20]},de:{dimensions:[300,20]},es:{dimensions:[300,20]},fr:{dimensions:[300,20]},id:{dimensions:[300,20]},it:{dimensions:[300,20]},ko:{dimensions:[300,20]},nl:{dimensions:[300,20]},pt:{dimensions:[300,20]},ja:{dimensions:[300,20]},ru:{dimensions:[300,20]},tr:{dimensions:[300,20]}},parameters:function(){var b={screen_name:this.screenName,lang:this.lang,button:this.button,link_color:this.linkColor,text_color:this.textColor,show_count:this.showCount,
show_screen_name:this.showScreenName,align:this.align,id:this.id};b._=(new Date).getTime();return o.encode(b)},screenNameFromHref:function(){var b;if(b=this.originElement.href.match(f.TWITTER_PROFILE_URL))return b[1]},render:function(b){if(this.screenName){var b=b.assetUrl()+"/widgets/follow_button.html#"+this.parameters(),e=this.langs[this.lang].dimensions;this.width&&(e=[this.width,e[1]]);this.element=this.create(b,"twitter-follow-button",e,this.langs[this.lang].title)}}});e({Embeddable:s})})});
window.twttr=window.twttr||{};(function(){twttr.host=twttr.host||"platform.twitter.com";0==b.path.length&&(b.path="//"+twttr.host+"/js");"undefined"==typeof twttr.ignoreSSL&&(twttr.ignoreSSL=!1);var e=[];twttr.events={bind:function(b,f){return e.push([b,f])}};b("util/util","tfw/widget/follow","tfw/widget/tweet","tfw/widget/intent","util/events","tfw/widget/base",function(f,k,o,q,s,p){function u(){b("xd/parent","xd/jsonrpc",function(b,e){var f=w.assetUrl()+"/widgets/hub.html";twttr.events.hub=b.connect({src:f,
iframe:{name:"twttrHubFrame",style:"position:absolute;top:-9999em;width:10px;height:10px"}});e(twttr.events.hub).expose({trigger:function(b,e,f){var e=e||{},g=e.region;delete e.region;twttr.events.trigger(b,{target:p.find(f),data:e,region:g,type:b})}})})}var w={};w.widgets={"a.twitter-share-button":o.Embeddable,"a.twitter-follow-button":k.Embeddable,body:q.Listener};w.assetUrl=function(b){return((window.location.protocol.match(/s\:$/)||b)&&!twttr.ignoreSSL?"https":"http")+"://"+twttr.host};twttr.events=
f.aug({},s.Emitter);twttr.events.oldbind=twttr.events.bind;twttr.events.bind=function(b,e){u();this.bind=this.oldbind;this.bind(b,e)};for(f=0;handler=e[f];f++)twttr.events.bind(handler[0],handler[1]);twttr.widgets={load:function(){p.init(w);p.embed()}};twttr.widgets.load()})})()});
jQuery("body").click(function(){menuClickFlag||(jQuery("#share").removeClass("enable"),jQuery("#addto").removeClass("enable"),jQuery("#embed").removeClass("embedactive"),jQuery(".dropdown").css("display","none"));menuClickFlag=!1});function CloseEmbedBox(){jQuery("#embed").removeClass("embedactive");document.getElementById("embed").className="";jQuery("#EmbedDiv").css("display","none")}
try{var parameters=[],parameters=jsParameters.split("?"),pVal=parameters[0],nVal=parameters[1],mVal=parameters[2],fVal=parameters[3]}catch(ex){}function SelectData(b){b.select()}function changeRelatedTab(b,e){if("active"!=document.getElementById(b).className)document.getElementById(b).className="active",document.getElementById(e).className=""}
function changeTabCss(b,e,f,g){document.getElementById(b).className="active";document.getElementById(e).className="";document.getElementById(f).className="";document.getElementById("txtEmbed").style.display="none";document.getElementById("txtThumbnail").style.display="none";document.getElementById("txtUrl").style.display="none";if("Embed"==g)document.getElementById("txtEmbed").style.display="inline";else if("URL"==g)document.getElementById("txtUrl").style.display="inline";else if("Thumbnail"==g)document.getElementById("txtThumbnail").style.display=
"inline"}function ShowHideTranscript(b){!0==b?(document.getElementById("imgMinusTrans").style.display="inline",document.getElementById("imgPlusTrans").style.display="none",document.getElementById("divPresentationTrans").style.display="inline"):(document.getElementById("imgMinusTrans").style.display="none",document.getElementById("imgPlusTrans").style.display="inline",document.getElementById("divPresentationTrans").style.display="none")}
function IsNotHtmlTags(b){for(var e=0;e<b.length;e++)if(-1!="<>".indexOf(b.charAt(e)))return!1;return!0}
function copy_Text(){try{document.getElementById("txtWordPress").select();var b=document.getElementById("txtWordPress");if("Netscape"==navigator.appName){if(!document.getElementById("flashcopier")){var e=document.createElement("div");e.id="flashcopier";document.body.appendChild(e)}document.getElementById("flashcopier").innerHTML="";var f='<embed src="'+jsSiteUrl+"asset/swf/clip.swf?s="+encodeURIComponent(b.value)+'" width="1" height="1" type="application/x-shockwave-flash"></embed>';document.getElementById("flashcopier").innerHTML=
f}else"Microsoft Internet Explorer"==navigator.appName&&(Copied=b.createTextRange(),Copied.execCommand("Copy"))}catch(g){}}function getMovieName(b){try{return-1!=navigator.appName.indexOf("Microsoft")?window.document[b]:document[b]}catch(e){}}
function downloadJSAtOnload(){try{try{getMovieName("flashPlayer").startPlayer()}catch(b){}$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetPresentationStats",data:"{'presentationid':'"+jsPresentationId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){ApplyTemplate(b,"#presentationstatsDiv",jsDivsHtml+"presentationstats.txt");document.getElementById("totalViewdiv").style.display="block";document.getElementById("totalEmbedDiv").style.display="block";
document.getElementById("pEmbed").style.display="none";if(11>b.totalSiteUrlLinks)document.getElementById("pstats").style.height="auto";if(0==b.PresentationOtherViews)document.getElementById("pOthers").style.display="none";document.getElementById("statsloading").style.display="none"}});var e=document.createElement("script");e.src="http://cdn.gigya.com/Wildfire/js/wfapiv2.js";document.body.appendChild(e)}catch(f){}}
window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;var IsMorebyUser=!1;function RefreshPage(){location.reload(!0)}
$(document).ready(function(){"True"==jsIsConversionInProgress&&setInterval("RefreshPage()",1E4);$("#aMoreByUser").click(function(){if("active"!=document.getElementById("aMoreByUser").className)if(!0==IsMorebyUser){if($("#relatedDiv").get(0))$("#relatedDiv").get(0).style.display="none";if($("#RelatedContainer").get(0))$("#RelatedContainer").get(0).style.display="inline";if("No other Presentation has been uploaded by this user so far."==$("#RelatedContainer").get(0).innerHTML)$("#relatedUserDiv").get(0).style.height=
"40px";changeRelatedTab("aMoreByUser","aRelatedPresentations")}else $("#RelatedLoading").get(0).style.display="inline",$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetRelatedData",data:"{'searchtype': 'UsersPresentation','presentationId':'"+jsPresentationId+"','categoryName':'"+jsCategoryName+"','presentationTitle':'"+encodeURIComponent(PTitle)+"','presentationMemberId':'"+pVal+"','presentationAllTags':'"+jsPresentationAllTags+"'}",contentType:"application/json; charset=utf-8",dataType:"json",
success:function(b){changeRelatedTab("aMoreByUser","aRelatedPresentations");0!=b.PresentationCount?(ApplyTemplate(b,"#RelatedContainer",jsDivsHtml+"RelatedPresentation.txt"),$("#RelatedLoading").get(0).style.display="none",$("#RelatedContainer").get(0).style.display="inline"):(b=$("#RelatedContainer").get(0),b.innerHTML="No other Presentation has been uploaded by this user so far.",b.style.paddingTop="10px",$("#RelatedLoading").get(0).style.display="none",$("#relatedUserDiv").get(0).style.height=
"40px");IsMorebyUser=!0;$("#relatedDiv").get(0).style.display="none"}})});$("#aRelatedPresentations").click(function(){if("active"!=document.getElementById("aRelatedPresentations").className)changeRelatedTab("aRelatedPresentations","aMoreByUser"),$("#relatedDiv").get(0).style.display="inline",$("#RelatedContainer").get(0).style.display="none",$("#relatedUserDiv").get(0).style.height="420px"})});
function CheckValidation(b){0!=b&&(PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetInappropriateData",data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){ApplyTemplate(b,"#PopupDiv",jsDivsHtml+"inappropriate.txt");PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground")}}))}var SelectId,SelectVal;function SetInnappValue(b){SelectId=b.selectedIndex;SelectVal=b.options[b.selectedIndex].text}
var ValReturn="0";
function ValidateFlagComments(b,e,f){try{e=document.getElementById(e);e.style.display="none";var g=document.getElementById(f),b=document.getElementById(b);if(0>=b.selectedIndex)e.innerHTML="Choose option",e.style.display="inline",ValReturn="0";else{var h=new String(g.value),h=h.replace(/^\s+/,""),h=h.replace(/\s+$/,"");if(""==h){e.innerHTML="*Please enter some text to post a comment.";e.style.display="inline";try{g.focus()}catch(k){}ValReturn="0"}else if(IsNotHtmlTags(h))if(1500<h.length){e.innerHTML=
"You can enter only upto 1500 characters.";e.style.display="inline";try{g.focus()}catch(o){}ValReturn="0"}else document.getElementById("PopupDiv").style.display="none",ValReturn=ValReturn="1","0"!=ValReturn&&(PopupCloseDiv(),PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateInappropriate",data:"{'selectedIndexValue':'"+SelectId+"','selectedText':'"+SelectVal+"','presentationId':'"+jsPresentationId+"','isFeaturedUser':'"+jsIsFeaturedUser+
"','pun':'"+Pun+"','displayName':'"+jsDisplayName+"','pTitle':'"+PTitle+"','comment':'"+h+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){PopupCloseDiv()}}));else{e.innerHTML="*Invalid characters";e.style.display="inline";try{g.focus()}catch(q){}ValReturn="0"}}}catch(s){}}var jsLike="";
function LikeDislike(b,e){"True"==e||"liked"==jsLike||(PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/SetLikeDislike",data:"{'likeChoice': '"+b+"','presentationId':'"+jsPresentationId+"','isPremiumOwner':'"+isPremium+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(0!=e)document.getElementById("aLike").style.color="black",document.getElementById("aLike").style.cursor="default",document.getElementById("aDislike").style.color=
"black",document.getElementById("aDislike").style.cursor="default","like"==b?document.getElementById("lblLikePpt").innerHTML=e:document.getElementById("lblDislikePpt").innerHTML=e,jsLike="liked";PopupCloseDiv()}}))}var favouritedflag=0;
function AddToFav(b){1==isAlreadyAdded||1==favouritedflag?location.href=jsSiteUrl+"Favourite-Presentations":0!=mVal&&(PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/SaveFavPresentation",data:"{'presentationId':'"+jsPresentationId+"','isPremiumOwner':'"+isPremium+"','presentationOwnerID':'"+pVal+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(!0==e)document.getElementById("aTopAddToFav").innerHTML=
"<span class='fav_icon dvleft' style='margin-top: 1px'></span>&nbsp;In Your Favorites",document.getElementById("aTopAddToFav").title="In your favorites",document.getElementById("DivFavCount").innerHTML=Number(b)+Number(1),document.getElementById("alertDiv").style.display="inline",setTimeout("document.getElementById('alertDiv').style.display = 'none';",1E4);PopupCloseDiv();favouritedflag=1}}))}var PlayerType="player",PrsPrefix,PrsDisplayName;
function ShowWordPress(b,e,f){PrsPrefix=e;PrsDisplayName=f;PopupShowDiv("DivProgressBar","modalBackground");PopupCloseDiv();ApplyTemplate("","#PopupDiv",jsDivsHtml+"wordpressdiv.txt");PopupShowDiv("PopupDiv","modalBackground")}function IsValidAlphaNumericWithSpace(b){for(var e=0;e<b.length;e++)if(-1!="<>".indexOf(b.charAt(e)))return!1}function trimString(b){return(this!=window?this:b).replace(/^\s+/g,"").replace(/\s+$/g,"")}
function ApplyTemplate(b,e,f){try{$(e).setTemplateURL(f),$(e).processTemplate(b)}catch(g){}}function TrimToSmallText(b,e){b.length>e&&(b=b.substring(0,e)+"..");return b}function CountCharactersGeneralWithTwoParams(b,e){var f;f=document.getElementById("presentationComments_spMsg");b=document.getElementById(b);return null!=b&&b.value.length>e?(f.style.display="inline",f.innerHTML="You can enter only upto "+e+" characters",8==event.keyCode||46==event.keyCode?!0:!1):!0}
function EnableDisableCommentsSection(b,e,f,g,h,k,o,q,s,p,u,w){try{document.getElementById(h).style.display="none";1==b?(document.getElementById(f).style.display="none",document.getElementById(g).style.display="inline",document.getElementById(e).style.display="inline"):(document.getElementById(f).style.display="none",document.getElementById(e).style.display="none",document.getElementById(g).style.display="none");if("reply"==q){var v=document.getElementById(jschkPubPri).checked;PostReply(h,v,k,o,s,
p,f,e,g,u,w)}else"updatecomment"==q&&UpdateComment(h,k,o,s,p,f,e,g,u,"");return!1}catch(y){}}
function ValidateCommentOnKeyPress(b,e,f){b=b?b:window.event;e=null==e||"undefined"==e||""==e?document.getElementById("spMsg"):document.getElementById(e);if(1500<(null==f||"undefined"==f?document.getElementById(jstxtComments):document.getElementById(f)).value.length){e.style.display="inline";e.innerHTML="You can enter only upto 1500 characters.";if(17==b.keyCode||8==b.keyCode||46==b.keyCode)return b.returnValue=!0;f="0,8,9,36,35,37,38,39,40,45,46".split(",");for(e=0;e<f.length;e++)if(f[e]==b.keyCode){b.returnValue=
!0;break}e==f.length&&b.preventDefault&&b.preventDefault();return!1}e.style.display="none";if(null!=document.getElementById("errorDiv"))document.getElementById("errorDiv").style.display="none";return!0}function ValidateReplies(b,e,f){try{if(ValidateSplCharAndLength(b,e))document.getElementById(f).style.display="inline",ShowHideCommentProgressLoaders(0);else return!1}catch(g){}}
function ValidatePostComment(b,e,f,g){try{return ValidateSplCharAndLength(b,e,g)?(document.getElementById(f).style.display="inline",ShowHideCommentProgressLoaders(0),!0):!1}catch(h){}}var commentTypeEditReplyOrComment,replyDesc;function SetEditTextByText(b,e,f,g,h,k,o,q){try{replyDesc=o,commentTypeEditReplyOrComment=q,ShowInfoConnect(b,e,h,k),document.getElementById(e).value=f,document.getElementById(jshdnReplyId).value=g}catch(s){return!1}}
function ShowInfoConnect(b,e,f,g){try{if(""!=document.getElementById(jsdivsOpenForReply).value){var h=document.getElementById(jsdivsOpenForReply).value;document.getElementById(h).style.display="none";document.getElementById(jsdivsOpenForReply).value=""}document.getElementById(b).style.display="inline";document.getElementById(jsdivsOpenForReply).value=b;document.getElementById(jshdnReplyId).value="";document.getElementById(f).innerHTML="";document.getElementById(f).style.display="none";try{document.getElementById(g).focus(),
document.getElementById(e).focus()}catch(k){}}catch(o){}}function HideInfoConnect(b){try{document.getElementById(b).style.display="none"}catch(e){}}function ShowHideCommentProgressLoaders(b){0==b?document.getElementById(jsdivLoadingComments).style.display="none":document.getElementById(jsdivLoadingComments).style.display="inline"}function ShowHideDeleteProgressLoaders(b,e){document.getElementById(b).style.display="block";document.getElementById(b).innerHTML=e}
function SetReplyEmailId(b){document.getElementById(jshdnEmailIdForReply).value=unescape(b)}
function ValidateSplCharAndLength(b,e,f){try{var g;g=null==e||"undefined"==e||""==e?document.getElementById("spMsg"):document.getElementById(e);g.innerHTML="";sourceTextBox=document.getElementById(b);var h=trimString(sourceTextBox.value).length;if(0==h)return g.style.display="inline","reply"!=f?(null==f||"undefined"==f||""==f?document.getElementById("errorDiv").style.display="none":document.getElementById("errorDiv").style.display="block",g.innerHTML="*Please enter some text to post a comment."):
g.innerHTML="*Please enter some text to post a reply.",!1;if(1500<Number(h)){if("comment"==f)document.getElementById("errorDiv").style.display="block";g.style.display="inline";g.innerHTML="You can enter only upto 1500 characters.";return!1}if(!0==ValidateComments(e,b)){if(null==e||"undefined"==e||""==e)document.getElementById(jsinptCmnts).value="1";if("comment"==f){var k;if(document.getElementById("chkPubPri"))k=document.getElementById("chkPubPri").checked;else if(document.getElementById("presentationComments_chkPubPri"))k=
document.getElementById("presentationComments_chkPubPri").checked;PostComment(sourceTextBox.value,k);return!1}return!0}return!1}catch(o){}}
function UpdateComment(b,e,f,g,h,k,o,q,s){b=document.getElementById(b);document.getElementById(s);$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateComment",data:"{'cmntDesc':'"+replaceAll(b.value,"'",">")+"','commentId':'"+e+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b&&ShowUserComments(jspageNumber)}})}
function DeleteComment(b){$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/DeleteComment",data:"{'commentId':'"+b+"','isPremiumOwner':'"+isPremium+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b&&ShowUserComments(jspageNumber)}})}
function DeleteReplyComment(b){$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/DeleteReplyComment",data:"{'commentReplyId':'"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b&&ShowUserComments(jspageNumber)}})}var containerDiv="";
function PostComment(b,e){try{if(null==e||"undefined"==e)e=!1;PTitle=replaceAll(PTitle,"'",">");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/PostComment",data:"{'presentationMemberId':'"+pVal+"','comment':'"+replaceAll(b,"'",">")+"','presentationId':'"+jsPresentationId+"','title':'"+PTitle+"','ownerName':'"+jsDisplayName+"','emailId':'"+jsEmailId+"','isPrivateMsg':'"+e+"','pun':'"+Pun+"','isPremiumOwner':'"+isPremium+"','presentationOwnerID':'"+pVal+"' }",contentType:"application/json; charset=utf-8",
dataType:"json",success:function(){jspageNumber=1;ShowUserComments(jspageNumber)}})}catch(f){}}var replyContainerDiv="",countpost=0,pervDiv="";
function PostReply(b,e,f,g,h,k){var b=document.getElementById(b),g=document.getElementById(jshdnReplyId).value,o=document.getElementById(jshdnEmailIdForReply).value;$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/PostReplyToComment",data:"{'replyText':'"+replaceAll(b.value,"'",">")+"','pun':'"+Pun+"','hdnReplyId':'"+g+"','commentId':'"+f+"','hdnEmailIdForReply':'"+o+"','presentationMemberId':'"+pVal+"','isPrivate':'"+e+"','presentationOwnerID':'"+pVal+"'}",contentType:"application/json; charset=utf-8",
dataType:"json",success:function(b){""!=b?ShowUserComments(jspageNumber):(document.getElementById(h).style.display="inline",document.getElementById(k).style.display="inline","fail"==b?document.getElementById(k).innerHTML="Please insert the message again.":document.getElementById(k).innerHTML=b)}})}
function ValidateComments(b,e){var f,g;f=null==b||"undefined"==b||""==b?document.getElementById("spMsg"):document.getElementById(b);g=null==e||"undefined"==e?document.getElementById(jstxtComments):document.getElementById(e);f.innerHTML="";g.value=trimString(g.value);var h=new String(g.value),h=h.replace(/^\s+/,""),h=h.replace(/\s+$/,""),k=!1;if(""==h){document.getElementById("errorDiv").style.display="block";f.style.display="inline";f.innerHTML="Enter comment";try{g.focus()}catch(o){}k=!1}else{if(1500<
h.length){document.getElementById("errorDiv").style.display="block";f.style.display="inline";f.innerHTML="You can enter only upto 1500 characters.";try{g.focus()}catch(q){}}else{if(null!=document.getElementById("errorDiv")||""!=document.getElementById("errorDiv")||"undefined"!=document.getElementById("errorDiv"))document.getElementById("errorDiv").style.display="none";f.style.display="none"}if(IsNotHtmlTags(h)){if(1500<h.length)document.getElementById("errorDiv").style.display="block",f.style.display=
"inline",f.innerHTML="You can enter only upto 1500 characters.";k=!0}else document.getElementById("errorDiv").style.display="block",f.style.display="inline",f.innerHTML="*Invalid characters",k=!1}if(k)document.getElementById(jsdivLoadingComments).style.display="inline";return k}function ShowCmt(b){b=b.innerHTML;b=b.replace(/^\s+/,"");b=b.replace(/\s+$/,"");if("Post a Comment"==b)return document.getElementById(jstxtComments).focus(),document.getElementById(jstxtComments).value="",!1}var jsFollowerUser;
function ShowStartFollowing(b){""==b&&(b=jsFollowerUser);"denied"!=b&&"start following"==b&&ShowStartFollowingDiv()}function ShowStartFollowingDiv(){PopupShowDiv("DivProgressBar","modalBackground");ApplyTemplate("","#PopupDiv",jsDivsHtml+"startfollowingdiv.txt");PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground")}
function StartFollowing(){try{var b;b=document.getElementById("chkPublic").checked?!0:!1;PopupCloseDiv();PopupShowDiv("DivProgressBar","modalBackground");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/StartFollowing",data:"{'presentationMemberId':'"+pVal+"','isPublic':'"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){PopupCloseDiv();if(!0==e)document.getElementById("aStartFollowing").style.display="none",document.getElementById("aStopFollowing").style.display=
"inline",!0==b?(document.getElementById("followerCount").innerHTML=Number(jsPresentationUserFollowers)+Number(1),jsPresentationUserFollowers=Number(jsPresentationUserFollowers)+Number(1),followerType="True"):followerType="False"}})}catch(e){}}var jsStopfollowUser;
function StopFollowing(){$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/Stopfollowing",data:"{'presentationMemberId':'"+pVal+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){if(!0==b&&(document.getElementById("aStartFollowing").style.display="inline",document.getElementById("aStopFollowing").style.display="none","True"==followerType))document.getElementById("followerCount").innerHTML=Number(jsPresentationUserFollowers)-Number(1),jsPresentationUserFollowers=
Number(jsPresentationUserFollowers)-Number(1);PopupCloseDiv();jsFollowerUser=followUser}})}function StopFollowingUser(b){ApplyTemplate("","#PopupDiv",jsDivsHtml+"stopfollowing.txt");PopupShowDiv("PopupDiv","modalBackground");jsStopfollowUser=b}
function ShowCustomizeDiv(b,e,f){try{PTitle=replaceAll(PTitle,"'",">"),PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetCustomEmbedInfo",data:"{'xmlPath':'"+b+"','displayName':'"+jsDisplayName+"','pun':'"+Pun+"','title':'"+PTitle+"','playerType':'"+e+"','templateName':'default','memberType':'"+f+"','pMid':'"+pVal+"','publicView':'true','fullName': '"+fVal+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){ApplyTemplate(b,
"#PopupDiv",jsDivsHtml+"customizeplayer.txt?ver=21122011");document.getElementById("rdobtndiv").style.display="none";document.getElementById("includeDiv").className="";$("#logoDiv").empty();PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground");SetValues(b.EmbedCode,b.themeColor,b.valOfWid,b.valOfCOl,b.embedVal);SetCustProperties("ddlCustSize","txtCustEmbed","playerPreview","rbInclRel")}})}catch(g){}}var embed,themeColor,valOfWidth,valOfColor,hdnEmbed;
function SetValues(b,e,f,g,h){embed=b;themeColor=e;valOfWidth=f;valOfColor=g;hdnEmbed=h}
function SetCustProperties(b,e,f,g){if(null==b||"undefined"==b)b="ddlCustSize";if(null==e||"undefined"==e)e="txtCustEmbed";if(null==f||"undefined"==f)f="playerPreview";if(null==g||"undefined"==g)g="rbInclRel";var h=document.getElementById(b).selectedIndex;document.getElementById(b);var k=document.getElementById(b)[h].innerHTML.split("x"),b=embed.replace(/width="425"/g,'width="'+k[0]+'"').replace(/height="354"/g,'height="'+k[1]+'"'),o=themeColor;document.getElementById(f).style.borderStyle="none";
if("0px"!=valOfWidth&&"No Border"!=valOfWidth){document.getElementById(f).style.borderStyle="solid";var h=valOfColor,q=valOfWidth;document.getElementById(f).style.borderWidth=q;document.getElementById(f).style.borderColor=h;"playerPreview"!=f?(b=!0==document.getElementById(g).checked?b.replace(/&rl=0/g,"&rl=1"):b.replace(/&rl=1/g,"&rl=0"),b=b.replace(/&p=/g,"&c="+o+"&p=")):b=!1==document.getElementById(g).checked?b.replace(/&rl=1/g,"&rl=0"):b.replace(/&rl=0/g,"&rl=1");""!=trimString(q)&&"0px"!=trimString(q)&&
"No Border"!=trimString(q)&&(f=Number(k[0])+Number(2*q.replace("px","")),b=b.replace(/<object width/g,"<div style='float:left;width:"+f+"'><div style='border-style:solid; border-color:"+h+"; border-width:"+q+"; float:left;'><object width"),b=b.replace(/object>/g,"object></div>"),b=b.replace("</a></div>","</a></div></div>"))}else"playerPreview"!=f&&""!=trimString(o)&&(b=b.replace(/&rl=0/g,"&rl=1"),b=b.replace(/&p=/g,"&c="+o+"&p=")),b=!0!=document.getElementById(g).checked?b.replace(/&rl=1/g,"&rl=0"):
b.replace(/&rl=0/g,"&rl=1");if(null!=hdnEmbed||"undefined"==hdnEmbed)if(-1==Number(hdnEmbed.indexOf("#ChangedTempOfPres#"))||-1==hdnEmbed.indexOf("#ChangedTempOfPres#")||"-1"==hdnEmbed.indexOf("#ChangedTempOfPres#"))hdnEmbed=b+"#ChangedTempOfPres#";b=b.replace(/&p=/g,"&pl=as&p=");document.getElementById(e).value=b;return!1}
function SetCustBorderWidth(b,e,f){if(null==e||"undefined"==e)e="selOptWid";b=document.getElementById(e).selectedIndex;e=document.getElementById(e)[b].value;null!=f&&"undefined"!=f&&(valOfWidth=e,SetCustProperties());return!1}function SetCustomBorderColor(b,e,f){if(null==e||"undefined"==e)e="playerPreview";document.getElementById(e).style.borderStyle="solid";valOfColor=document.getElementById(e).style.borderColor=b;null!=f&&"undefined"!=f&&SetCustBorderWidth(e,"selOptWid",1);return!1}
function ShowBlog(b){PopupShowDiv("GigyaDiv","modalBackground");GigyaCode(b)}function GigyaCode(b){Wildfire.initPost("213441","divWildfirePost",400,200,{defaultContent:b,UIConfig:'<config><display showEmail="false" showBookmark="true" showCodeBox="false" networksToHide="blackplanet, wordpress, migente, bebo, myspacecomment" /></config>'})}var valDownload,pdvalDownload;
function Downloadppt(b,e){PopupShowDiv("DivProgressBar","modalBackground");var f=jsSiteUrl+"presentationdownload.aspx?pptdownload="+b+"&pd="+e+"&prem="+isPremium;PopupCloseDiv();OpenSmallWindow(f)}function IsValidAlpha2(b){for(var e=0;e<b.length;e++)if(!isAlpha2(b.charAt(e)))return!1;return!0}function isAlpha2(b){return 1<b.length?!1:-1!="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ".indexOf(b)?!0:!1}
function ValidateRegistration(){document.getElementById("lblName").innerHTML="";var b=!0,e=document.getElementById("spnName");document.getElementById("txtName").value=trimString(document.getElementById("txtName").value);var f=document.getElementById("txtName"),g=document.getElementById("txtPhone");""==g.value?(b=!1,g.className="redline"):g.className="txtbx light_text12";if(""==f.value)b=!1,f.className="redline";else{if(!1==IsValidAlpha2(f.value)){document.getElementById("lblName").innerHTML="*Invalid name.<br>";
document.getElementById("lblName").style.display="block";document.getElementById("lblName").className="errdv";e.style.display="none";try{f.style.border="solid 1px #C7413E"}catch(h){}return!1}f.className="txtbx light_text12";document.getElementById("lblName").style.display="none"}return b}
function ClearMsgs(b,e,f){f=window.event?window.event:f;if(13==("Microsoft Internet Explorer"==navigator.appName?f.keyCode:f.which)&&"register"==e&&!1!=ValidateRegistration())document.getElementById("hrefDownload").onclick()}
function buttonEnable(){var b=document.getElementById("txtName");document.getElementById("txtCountryCode");var e=document.getElementById("txtPhone"),f=document.getElementById("spnName"),g=document.getElementById("spnPhone"),h=document.getElementById("hrefDownload");document.getElementById("lblFirstNameError");""!=trimString(b.value)?(f.style.display="block",f.className="dvleft icon_greentick mleft10 martop5"):f.style.display="none";g.style.display=""!=e.value?"block":"none";""!=e.value&&""!=trimString(b.value)?
(h.className="mainbtn",h.onclick=function(){if(ValidateRegistration())UpdateMemberInfo(),PopupCloseDiv(),Downloadppt(valDownload,pdvalDownload);else return!1}):(h.className="disablebtn",h.onclick=function(){return!1})}function onFocusName(){document.getElementById("txtName").focus()}
function GetMemberInfo(b,e){valDownload=b;pdvalDownload=e;PopupShowDiv("DivProgressBar","modalBackground");jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetMemberProfileDetails",async:!1,data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){ApplyTemplate("","#PopupDiv",jsDivsHtml+"downloadpresentation.txt");""!=b[3]?Downloadppt(valDownload,pdvalDownload):(document.getElementById("txtName").value=b[0].toString(),document.getElementById("txtEmail").value=
b[1].toString(),document.getElementById("txtCountryCode").value=b[2].toString(),document.getElementById("txtPhone").value=b[3].toString(),PopupCloseDiv(),PopupShowDiv("PopupDiv","modalBackground"),document.getElementById("txtName").focus())}})}
function UpdateMemberInfo(){var b=document.getElementById("txtName"),e=document.getElementById("txtCountryCode"),f=document.getElementById("txtPhone");document.getElementById("txtEmail");jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateMemberProfileDetails",data:"{'memberId':'"+memberId+"','firstName':'"+b.value+"','countryCode':'"+e.value+"','phone':'"+f.value+"' }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){}})}
var ShiftKeypressed="",CtlKeypressed="",txtSelected="1",preKey="";function SetShiftKey(b){16==("Microsoft Internet Explorer"==navigator.appName?b.keyCode:b.which)&&(ShiftKeypressed="n")}
function IsNumeric(b){var e="Microsoft Internet Explorer"==navigator.appName?b.keyCode:b.which;16==e&&(ShiftKeypressed="y");"ctl"==preKey&&86==e||17==e&&(preKey="ctl");if(!("ctl"==preKey&&86==e)&&("y"==ShiftKeypressed||65<=e&&90>=e||219<=e&&222>=e||190<e&&192>=e||106==e||107==e||111==e||188==e||59==e||32==e)){if(b.preventDefault)b.preventDefault();else return b.returnValue=!1;b.returnValue=!1}}
function RemoveAlphaNumeric(){try{var b,e;e="1"==txtSelected?"txtCountryCode":"txtPhone";var f=document.getElementById(e).value,g=f.length;for(i=0;i<g;i++)b=document.getElementById(e).value.charAt(i),-1=="0123456789".indexOf(b)&&(f=f.replace(b,""));document.getElementById(e).value=f}catch(h){}}function ChooseTxt(b){txtSelected="txtCountryCode"==b?1:0}
function OpenSmallWindow(b){window.open(b,"myconsole","top=1000,left=2,height=1,width=1,resizable=0,menubar=0,toolbar=0,location=1,directories=0,scrollbars=0,status=0")}function OpenSignInDiv(){PopupShowDiv("DivProgressBar","modalBackground");ApplyTemplate("","#PopupDiv",jsDivsHtml+"signindiv.txt");PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground");$("#txtEmailId").get(0).focus();return!1}
function ValidateLogin(){var b=document.getElementById("txtPassword"),e=document.getElementById("txtEmailId"),f=document.getElementById("chkRememberMe");e.value=trimString(e.value);""==e.value?(document.getElementById("lblLoginError").style.display="inline",document.getElementById("lblLoginError").innerHTML="*Some fields were missed.",document.getElementById("txtEmailId").focus()):(document.getElementById("lblLoginError").style.display="none",!1!=Validatepassword("false")&&(PopupCloseDiv(),PopupShowDiv("DivProgressBar",
"modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/Login",data:"{'emailId':'"+e.value+"','password':'"+b.value+"','isRemberMe':'"+f.checked+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){!0==b?location.href=1==jComment?jsSiteUrl+"comments/"+jsPresentationId+"/1":jsSiteUrl+"Presentation/"+Pun+"/":(1==jComment?SeeAllOpenSignInDiv():OpenSignInDiv(),document.getElementById("lblLoginError").style.display="inline",document.getElementById("lblLoginError").innerHTML=
"*Invalid username or password.",document.getElementById("txtEmailId").value="",document.getElementById("txtEmailId").focus())}})))}
function Validatepassword(b){var e=!1;passwordControl=document.getElementById("txtPassword");if(""==passwordControl.value)document.getElementById("lblLoginError").style.display="inline",document.getElementById("lblLoginError").innerHTML="*Some fields were missed.",e=!1;else if("false"==b)document.getElementById("lblLoginError").style.display="none",e=!0;if(!1==e&&document.getElementById("pSignIn"))document.getElementById("pSignIn").style.paddingBottom="0px";return e}
function SetCookies(b){if("AllowMatureContent"==b&&-1==document.cookie.indexOf("AllowMatureContent"))b=new Date,b.setTime(b.getTime()+864E5),document.cookie="AllowMatureContent=yes; domain="+jsCookieDomain+" ; expires="+b+"; path=/",location.href=jsSiteUrl+"Presentation/"+Pun+"/"}var oldChannelId=0;
function AddToChannel(){try{PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/AddPptToChannel",data:"{'presentationId':'"+jsPresentationId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){ApplyTemplate(b,"#PopupDiv",jsDivsHtml+"addtochannel.txt");if("create"==b.ChannelEdit)document.getElementById("divEdit").style.display="none",document.getElementById("divSave").style.display="none",document.getElementById("divCreate").style.display=
"inline";else if("save"==b.ChannelEdit)document.getElementById("divEdit").style.display="none",document.getElementById("divSave").style.display="inline";else if("edit"==b.ChannelEdit){for(var f=0;f<document.getElementById("ddlEditChannels").length;f++)if(document.getElementById("ddlEditChannels").options[f].text==b.SelectedValue){document.getElementById("ddlEditChannels").options[f].selected=!0;break}oldChannelId=b.OldChannelId;if(document.getElementById("spnChnlEditText"))document.getElementById("spnChnlEditText").innerHTML=
"Presentation already added by you in Channel - <strong style='color:#1374BA'><a href='"+jsSiteUrl+"channels/"+b.DisplayName+"/"+b.SelectedValue.replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-")+"/'>"+TrimToSmallText(b.SelectedValue,22)+"</a></strong>";document.getElementById("divChannelColor").className="alertgreenbg";document.getElementById("divEdit").style.display="inline";document.getElementById("divSave").style.display="none"}PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground")}})}catch(b){}}
function SaveChannelChanges(b,e,f){var g,h=!1;if(0==b){document.getElementById(f).innerHTML="";b=document.getElementById(e).selectedIndex;if(0==b)return document.getElementById(f).innerHTML="Please select a channel first.",!1;oldChannelId=g=document.getElementById(e).options[document.getElementById(e).selectedIndex].value}else if(1==b)h=!0,g=oldChannelId;else if(2==b){document.getElementById(f).innerHTML="";b=document.getElementById(e).selectedIndex;if(0==b)return document.getElementById(f).innerHTML=
"Please select a channel first.",!1;g=document.getElementById(e).options[document.getElementById(e).selectedIndex].value}PopupCloseDiv();PopupShowDiv("DivProgressBar","modalBackground");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateChannelInfo",data:"{'presentationId' : '"+jsPresentationId+"','channelId' : '"+g+"','presMemberId' : '"+pVal+"','isDelete': '"+h+"','oldChannelId':'"+oldChannelId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){if("saved"==
b.ReturnVal){var e=document.getElementById("ddlChannels").options[document.getElementById("ddlChannels").selectedIndex].text;document.getElementById("divEdit").style.display="inline";for(var f=0;f<document.getElementById("ddlEditChannels").length;f++)if(document.getElementById("ddlEditChannels").options[f].text==e){document.getElementById("ddlEditChannels").options[f].selected=!0;break}document.getElementById("divSave").style.display="none";if(document.getElementById("spnChnlEditText"))document.getElementById("spnChnlEditText").innerHTML=
"The Presentation has been successfully added to the Channel - <strong style='color:#1374BA'><a href='"+jsSiteUrl+"channels/"+b.DisplayName+"/"+e.replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-")+"/'>"+TrimToSmallText(e,8)+"</a></strong>";document.getElementById("divChannelColor").className="alertgreenbg";AddpptToChannel();PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground")}else if("updated"==b.ReturnVal){oldChannelId=g;PopupCloseDiv();e=document.getElementById("ddlEditChannels").options[document.getElementById("ddlEditChannels").selectedIndex].text;
for(f=0;f<document.getElementById("ddlEditChannels").length;f++)if(document.getElementById("ddlEditChannels").options[f].text==e){document.getElementById("ddlEditChannels").options[f].selected=!0;break}AddpptToChannel();PopupShowDiv("PopupDiv","modalBackground");if(document.getElementById("spnChnlEditText"))document.getElementById("spnChnlEditText").innerHTML="The Presentation has been successfully added to the Channel - <strong style='color:#1374BA'><a href='"+jsSiteUrl+"channels/"+b.DisplayName+
"/"+e.replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-")+"/'>"+TrimToSmallText(e,8)+"</a></strong>";document.getElementById("divChannelColor").className="alertgreenbg"}else if("removed"==b.ReturnVal)AddpptToChannel(),PopupCloseDiv(),document.getElementById("PopupDiv").style.display="none";else if("exists"==b.ReturnVal)PopupCloseDiv(),document.getElementById("divCreate").style.display="none",document.getElementById("divSave").style.display="none",document.getElementById("divEdit").style.display=
"none",document.getElementById("divExists").style.display="block",PopupShowDiv("PopupDiv","modalBackground");else if("notapproved"==b.ReturnVal)PopupCloseDiv(),document.getElementById("divCreate").style.display="none",document.getElementById("divSave").style.display="none",document.getElementById("divEdit").style.display="none",document.getElementById("divExists").style.display="none",document.getElementById("divNotApproved").style.display="block",AddpptToChannel(),PopupShowDiv("PopupDiv","modalBackground")}})}
function AddpptToChannel(){document.getElementById("rptchannelDiv").style.display="none";$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetChannelsInPresentation",data:"{'presentationId':'"+jsPresentationId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){0==b.Channels.length?document.getElementById("ChannelStatistic").style.display="none":(ApplyTemplate(b,"#Container",jsDivsHtml+"channeldiv.txt"),document.getElementById("ChannelStatistic").style.display=
"inline");document.getElementById("channelStatsLoading").style.display="none"}})}
function OpenTags(b){try{if(0<elementsArray.length)for(var e=0;e<elementsArray.length;e++)void 0!=elementsArray[e]&&delete elementsArray[e];"inline"==document.getElementById(b).style.display?(document.getElementById(b).style.display="none",document.getElementById("aHrefTags").style.display="inline"):(document.getElementById(b).style.display="inline",document.getElementById("aHrefTags").style.display="none");document.getElementById("txtTags")+idTagCount?(document.getElementById("txtTags"+idTagCount).focus(),
document.getElementById("txtFirstTags1").style.display="none"):document.getElementById("txtFirstTags1").focus()}catch(f){}}
function ValidatePasscode(){var b=document.getElementById("txtPassCode").value;""==trimString(b)?document.getElementById("lblPassCodeMsg").innerHTML="*PassCode Required":(PopupShowDiv("DivProgressBar","modalBackground"),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/ValidatePremiumUserPassCode",data:"{'presentationID':'"+jsPresentationId+"','passCode':'"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){PopupCloseDiv();!0==b?(document.getElementById("spnPassCode").style.display=
"none",document.getElementById("spnMatureContent").style.display="none",document.getElementById("spnBlockedPremiumUser").style.display="none",document.getElementById("maincontentinn").style.display="block"):document.getElementById("lblPassCodeMsg").innerHTML="*Please enter valid Passcode."}}))}
function clickButtonLogin(b,e,f){b=b?b:window.event;document.getElementById(e);if(13==b.keyCode)return"passcode"==f?(document.getElementById("btnValidatePassCode").click(),ValidatePasscode()):"import"==f?ValidateImportContact():ValidateLogin("Presentation/"+Pun+"/"),!1}var jspageNumber=1,oXMLHTTP;
function ShowUserComments(b){jspageNumber=b;try{oXMLHTTP=GetXmlHttpObject(),b=jsSiteUrl+"presentationcomment.aspx?pagenumber="+b+"&presentationid="+jsPresentationId+"&pun="+Pun+"&userid="+pVal+"&userType="+jsUserType+"&isShowPptComment="+isShowPptComment,oXMLHTTP.onreadystatechange=stateChangedComments,oXMLHTTP.open("GET",b,!0),oXMLHTTP.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"),d=new Date,t=d.getTime(),thetimestring=t.toString(10),oXMLHTTP.send(thetimestring)}catch(e){}}
function stateChangedComments(){if(4==oXMLHTTP.readyState||"complete"==oXMLHTTP.readyState){var b=oXMLHTTP.responseText,e=b.indexOf("<div3>"),f=b.indexOf("</div3>")-1,b=b.substring(e,f),e=document.getElementById("jsdivCommentsList");e.style.display="block";e.innerHTML=b;jshdnReplyId="hdnReplyId";jsdivsOpenForReply="divsOpenForReply";jshdnEmailIdForReply="hdnEmailIdForReply";jsdivCommentsList="presentationCommentList";if(pVal==mVal)try{$("#spnPrivMsgChk").get(0).style.display="none",$("#commentdiv").get(0).style.display=
"none"}catch(g){}}}function GetXmlHttpObject(){return window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}function Showloading(){$("#commentloading").get(0).style.display="inline"}function share(b){var e=screen.width/2-315,f=screen.height/2-195;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(jsSiteUrl+"Share.aspx?pun="+b),"sharer","toolbar=0,status=0,width=626,height=436,resizable=no, top="+f+", left="+e+"");return!1}
function GetChannelImage(b){if(null==b||""==b)b="channel-default.gif";return b}function ImageNotExists(b){return null==b||""==b?"inline":"none"}function ImageExists(b){return null==b||""==b?"none":"inline"}function trimValue(b,e){b.length>e&&(b=b.substring(0,e)+"...");return b}
function ShowToolTipDIv(b,e,f,g){document.getElementById(b).style.display="block";document.getElementById(b).style.top=TopPos(document.getElementById(e),f);document.getElementById(b).style.left=LeftPos(document.getElementById(e),g)}function TopPos(b,e,f){var g=0;if(f&&"dvSeeAllPremiumMember1"==f)g=b.offsetTop;else for(;b;)g+=b.offsetTop,b=b.offsetParent;return g+e+"px"}
function LeftPos(b,e,f){var g=0;if(f&&"dvSeeAllPremiumMember1"==f)g=b.offsetLeft;else for(;b;)g+=b.offsetLeft,b=b.offsetParent;return g+e+"px"}var RequestMessage="Request authorSTREAM to make it available for iPad.";
function RequestIpad(){IsIpadCall=!0;$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/RequestIpad",data:"{'Presentationid':'"+jsPresentationId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){document.getElementById("arequestDiv").innerHTML="Your request has been submitted.";document.getElementById("arequestDiv").style.color="#1175BA";document.getElementById("arequestDiv").style.textDecoration="none";RequestMessage="Your request has been submitted."}})}
try{if(void 0!=OSName&&"Windows"!=OSName&&"MacOS"!=OSName&&"Linux"!=OSName&&"UNIX"!=OSName){var imagePath="",headID=document.getElementsByTagName("head")[0],cssNode=document.createElement("link");cssNode.type="text/css";cssNode.rel="stylesheet";cssNode.href=jsNewCssPath+"player.css";cssNode.media="screen";headID.appendChild(cssNode);document.getElementById("fplayer").style.display="none";document.getElementById("main_div").style.display="block"}else document.getElementById("fplayer").style.display=
"block"}catch(ex$$20){}function cacheImage(b){var e=new Image;e.src=b;return e}function initializeSlideArray(){arrSlides=[];for(i=0;i<totalSlides;i++)0<slideUrl.indexOf("200,150.jpg")?arrSlides.push(slideUrl.replace("slide1","slide"+(i+1))):arrSlides.push(slideUrl+(i+1)+".jpg");arrSlides[0]=cacheImage(arrSlides[currSlide-1]);bSlideReady=!0;loadImage(currSlide)}
function cacheNextSlide(){nextSlide<totalSlides&&"string"==typeof arrSlides[nextSlide]&&(bSlideReady=!1,arrSlides[nextSlide]=cacheImage(arrSlides[nextSlide]),download());return!0}function download(){arrSlides[nextSlide].complete?bSlideReady=!0:setTimeout("download()",100);return!0}function initPresentation(b,e,f){currSlide=b;slideUrl=e;totalSlides=f;initializeSlideArray()}
function loadImage(b){var e="";if(bSlideReady){0<arrSlides[b-1].src.indexOf("200,150.jpg")?(e='<img id="playerImg" src="'+arrSlides[b-1].src+'" align="center" valign="middle" style="margin-top:100px;width:200px;height:150px;" /><div style=\'background:#262626;width:300px;position:absolute;margin-top:10px;margin-left:178px;color:white\'><div>This presentation is not available for iPad.</div>',e="Your request has been submitted."==RequestMessage?e+"<div style='color:#1175BA' onclick='javascript:IsIpadCall = true;'>"+
RequestMessage+"</div>":e+"<div id='requestDiv'><a id='arequestDiv' onclick='RequestIpad();' onmousemove='document.getElementById('requestDiv').style.textDecoration = '#fff';' onmouseout='document.getElementById('requestDiv').style.textDecoration = 'none';'>"+RequestMessage+"</a></div>",e+="</div>"):e='<img id="playerImg" src="'+arrSlides[b-1].src+'" width="652" height="489"/>';var f=b+"/"+totalSlides;nextSlide=b;document.getElementById("mainPlayer").innerHTML=e;document.getElementById("ipadLoaderDiv").style.display=
"none";document.getElementById("slideStatus").innerHTML=f;cacheNextSlide()}}function loadThumbnailsSlide(){document.getElementById("mainPlayer").style.visibility="hidden";document.getElementById("lastScreen").style.visibility="visible";document.getElementById("control_pannel").style.visibility="hidden"}
function reloadPresentation(){UpdatePresentationViews();document.getElementById("mainPlayer").style.visibility="visible";document.getElementById("lastScreen").style.visibility="hidden";document.getElementById("control_pannel").style.visibility="visible";document.getElementById("playerStartarrow").className="disable_arrow_left";IsToCall=!0;currSlide=1;loadImage(currSlide)}
function loadNextImage(){document.getElementById("ipadLoaderDiv").style.display="block";document.getElementById("playerStartarrow").className="arrow_left";currSlide<totalSlides&&bSlideReady?(currSlide++,loadImage(currSlide)):bSlideReady?currSlide==totalSlides&&loadlastCall():setTimeout("loadNextImage();",100)}function loadlastCall(){loadThumbnailsSlide();currentClickValue=1;NavigateImages("prev");document.getElementById("ipadLoaderDiv").style.display="none"}
function loadPreviousImage(){1==currSlide?document.getElementById("ipadLoaderDiv").style.display="none":document.getElementById("ipadLoaderDiv").style.display="block";if(2==currSlide)document.getElementById("playerStartarrow").className="disable_arrow_left";bSlideReady=!0;1<currSlide&&(currSlide--,loadImage(currSlide))}var currentClickValue=1,IsToCall=!0;
function NavigateImages(b){IsToCall=!1;if("next"==b)2>currentClickValue&&(currentClickValue+=1),document.getElementById("navigatePre").className="left_grey_arrow";else if("disable_left_grey_arrow"!=document.getElementById("navigatePre").className)1<currentClickValue?(currentClickValue-=1,1==currentClickValue?document.getElementById("navigatePre").className="disable_left_grey_arrow":document.getElementById("navigatePre").className="left_grey_arrow"):document.getElementById("navigatePre").className=
"disable_left_grey_arrow";if(2!=currentClickValue)try{b=4*currentClickValue-4,document.getElementById("relateddiv1").innerHTML=titleurl[b],document.getElementById("relateddiv2").innerHTML=titleurl[b+1],document.getElementById("relateddiv3").innerHTML=titleurl[b+2],document.getElementById("relateddiv4").innerHTML=titleurl[b+3],document.getElementById("relateddiv3").style.display="block",document.getElementById("relateddiv4").style.display="block",document.getElementById("navigateNext").className="right_grey_arrow"}catch(e){}else if("disableright_grey_arrow"!=
document.getElementById("navigateNext").className)document.getElementById("relateddiv1").innerHTML=titleurl[4],document.getElementById("relateddiv2").innerHTML=titleurl[5],document.getElementById("relateddiv3").innerHTML=titleurl[6],document.getElementById("relateddiv4").innerHTML=titleurl[7],document.getElementById("navigateNext").className="disableright_grey_arrow"}var ShowLoader=!0;
function CheckforOS(){if("Windows"!=OSName&&"MacOS"!=OSName&&"Linux"!=OSName&&"UNIX"!=OSName)CheckImageUrl(),-1!=imagePath.indexOf(".jpg")?(imagePath=imagePath.replace("118_88.jpg",""),initPresentation(1,imagePath,jsSlideCount),UpdatePresentationViews(),GetLeftPosition("playerImageDiv")):(imgTag='<img id="playerImg" src="" align="center" valign="middle" style="margin-top:100px;width:200px;height:150px;" /><div style=\'background:#262626;width:300px;position:absolute;margin-top:10px;margin-left:178px;color:white\'><div>This presentation is not available for iPad.</div>',
imgTag=imgTag+"<div id='requestDiv'><a id='arequestDiv' onclick='RequestIpad();' onmousemove='document.getElementById('requestDiv').style.textDecoration = '#fff';' onmouseout='document.getElementById('requestDiv').style.textDecoration = 'none';'>"+RequestMessage+"</a></div>",imgTag+="</div>",document.getElementById("mainPlayer").innerHTML=imgTag,document.getElementById("ipadLoaderDiv").style.display="none",document.getElementById("slideStatus").style.display="none",document.getElementById("control_pannel").style.display=
"none",document.getElementById("playerImageDiv").style.cursor="default",ShowLoader=!1)}
function UpdatePresentationViews(){PTitle=replaceAll(PTitle,"'",">");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateIpadView",data:"{'presentationid':'"+jsPresentationId+"','isPremium':'"+isPremium+"','ownerId':'"+pVal+"','viewerId':'"+mVal+"','title':'"+PTitle+"','viewerDisplayName':'"+nVal+"','uniqueName':'"+Pun+"','searchQuery':'"+jsSearchQuery+"','referalUrl':'"+jsReferral+"','totalSlides':'"+jsSlideCount+"','viewUrl':'"+jsViewerUrl+"','viewerIp':'"+jsViewerIp+"','isIpAdd':'"+
jsIsIpAddress+"'}",contentType:"application/json; charset=utf-8",dataType:"json"})}var leftCoord=0,middlecoord,lastcoord;function GetLeftPosition(b){for(b=document.getElementById(b);b;)leftCoord+=b.offsetLeft,b=b.offsetParent;lastcoord=leftCoord+652;middlecoord=lastcoord/2}var IsIpadCall;function GetMousePosition(b){ShowLoader&&(IsToCall&&!IsIpadCall&&(window.Event&&document.captureEvents(Event.MOUSEMOVE),getCursorXPosition(b)),IsIpadCall=!1)}
function getCursorXPosition(b){(window.Event?b.pageX:event.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft))>=middlecoord?loadNextImage():loadPreviousImage()}var idCount=1,startLoop=0,idTagCount=0,tagArrayList=[],elementsArray=[],jtxtTag;try{jtxtTag=document.getElementById("txtFirstTags1"),tagArrayList=jtxtTag.value.split(",")}catch(ex$$22){}var TagCount=0,hdnTags="",hdnTagsId="";
function UpdateTags(b,e){try{for(var f=0;f<elementsArray.length;f++)void 0!=elementsArray[f]&&(hdnTags=hdnTags+elementsArray[f]+",",hdnTagsId+="-1,");var g=b+","+hdnTags.substring(0,hdnTags.length-1),g=unescape(replaceAll(g,",,",",")),h=","+e+","+hdnTagsId.substring(0,hdnTagsId.length-1),h=replaceAll(h,",,",",");PopupShowDiv("DivProgressBar","modalBackground");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateTags",data:"{'tagNames':'"+g+"','tagIds':'"+h+"','presentationId' : '"+jsPresentationId+
"','chkAllowTag':'2'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){TagCount=""!=b?0:1;document.getElementById("presentationTags").innerHTML=""!=b?b:"No tags for this presentation.";document.getElementById("divTags").style.display="none";document.getElementById("aHrefTags").style.display="block";PopupCloseDiv()}})}catch(k){}}
function splitTags(b){var e=!0,f=b?b:window.event,g;try{g=document.getElementById("txtTags"+idTagCount)?document.getElementById("txtTags"+idTagCount):document.getElementById("txtFirstTags1");var h=trimString(g.value);if(","==h||""==h){g.value="";return}g.style.width="130px";if(13!=f.keyCode)for(i=0;29>i;i++)if(-1<g.value.indexOf("@/'\\\":?!%~`()[]{}^|+=*&$#_;<>".charAt(i),0))g.value=g.value.replace("@/'\\\":?!%~`()[]{}^|+=*&$#_;<>".charAt(i),""),e=188==f.keyCode?!0:!1;tagArrayList=g.value.split(",");
appendtags(b)}catch(k){}return e}var temptagcount=-1;
function appendtags(b){try{var e=b?b:window.event,f=0;if(window.event){if(f=b.keyCode,44==f)b.keyCode=0}else if(b.which)f=b.which;-1==temptagcount&&(temptagcount=Number(intialTagcount)+1);if(13==f||44==f||13==e.keyCode||"callback"==b||188==e.keyCode)if(0<tagArrayList.length&&5>=temptagcount){if(""!=tagArrayList[startLoop]){if(!ValidateTag())return!0;idTagCount++;var g=document.getElementById("tagAppendDiv"),h=document.createElement("li");h.id="liTags"+idTagCount;h.innerHTML="<input id='txtTags"+idTagCount+
"' type='text' style='width:100px;border:0;text-align:left;margin-top:2px;margin-left:3px' maxlength='35' onkeyup = 'return splitTags(event);' onkeypress = 'return splitTags(event);' onpaste='return splitTags(event)';/>";var k=document.createElement("li");k.id=idCount;k.value=tagArrayList[startLoop];var o=unescape(tagArrayList[startLoop]);k.innerHTML="<a >"+tagArrayList[startLoop]+"<span style='padding-left:5px; cursor:pointer;font:bold 12px arial; color:#a6b3cf;' onclick = \"AddRemoveElements('Remove','"+
(idCount-1)+"','"+o+"');\">x</span></a>";g.appendChild(k);g.appendChild(h);AddRemoveElements("Add",idCount-1,unescape(tagArrayList[startLoop]));document.getElementById("txtFirstTags1").style.display="none";jtxtTag=document.getElementById("txtTags"+idTagCount);if(document.getElementById("txtTags"+(Number(idTagCount)-1)))document.getElementById("txtTags"+(Number(idTagCount)-1)).style.display="none",document.getElementById("liTags"+(Number(idTagCount)-1)).style.display="none";jtxtTag.value="";jtxtTag.style.width=
"5px";jtxtTag.value="";jtxtTag.focus();idCount++}tagArrayList.length>startLoop+1?(startLoop++,appendtags("callback")):startLoop=0}else if(5<temptagcount)if(document.getElementById("divTagsvalidationmsg").innerHTML="*You can't enter more than 5 tags.",HideTagValidation(),document.getElementById("txtTags"+(idCount-1)))document.getElementById("txtTags"+(idCount-1)).value="";else if(document.getElementById("txtFirstTags1"))document.getElementById("txtFirstTags1").value=""}catch(q){}}
function ValidateTag(){var b=!0;if(3>tagArrayList[startLoop].length){if(document.getElementById("txtTags"+idTagCount))document.getElementById("txtTags"+idTagCount).value="";else if(document.getElementById("txtFirstTags1"))document.getElementById("txtFirstTags1").value="";document.getElementById("divTagsvalidationmsg").innerHTML="*tag should have atleast 3 characters.";HideTagValidation();b=!1}if(!isNaN(tagArrayList[startLoop])){if(document.getElementById("txtTags"+idTagCount))document.getElementById("txtTags"+
idTagCount).value="";else if(document.getElementById("txtFirstTags1"))document.getElementById("txtFirstTags1").value="";document.getElementById("divTagsvalidationmsg").innerHTML="*Numeric tags are not allowed.";HideTagValidation();b=!1}return b}var t;function HideTagValidation(){clearTimeout(t);document.getElementById("divTagsvalidationmsg").style.display="inline";t=setTimeout("document.getElementById('divTagsvalidationmsg').style.display = 'none';",5E3)}
function AddRemoveElements(b,e,f){try{"Remove"==b?(temptagcount-=1,document.getElementById(Number(e)+1).style.display="none",""!=hdnTags&&""!=hdnTagsId&&(hdnTags=hdnTags.replace(f+",",""),hdnTagsId=hdnTagsId.substring(0,hdnTagsId.length-3)),delete elementsArray[e]):(temptagcount+=1,elementsArray[e]=f)}catch(g){}}function SetFocus(){document.getElementById("txtTags"+idTagCount)?document.getElementById("txtTags"+idTagCount).focus():document.getElementById("txtFirstTags1").focus()}
function replaceAll(b,e,f){return b.replace(RegExp(e,"g"),f)}
function SeeAllValidateSplCharAndLength(b,e,f,g){try{var h;h=null==e||"undefined"==e||""==e?document.getElementById("spMsg"):document.getElementById(e);h.innerHTML="";sourceTextBox=document.getElementById(b);var k=trimString(sourceTextBox.value).length;if(0==k){h.style.display="block";if("reply"!=f)null==f||"undefined"==f||""==f?document.getElementById("errorDiv").style.display="none":document.getElementById("errorDiv").style.display="block",h.innerHTML="*Please enter some text to post a comment.";
else if(h.innerHTML="*Please enter some text to post a reply.",null!=document.getElementById("errorDiv")||"undefined"!=document.getElementById("errorDiv")||""!=document.getElementById("errorDiv"))document.getElementById("errorDiv").style.display="none";h.style.padding="5px 0";return!1}if(1500<Number(k))return h.style.display="block",h.innerHTML="You can enter only upto 1500 characters.",document.getElementById("errorDiv").style.display="block",h.style.padding="5px 0",!1;if(!0==SeeAllValidateComments(h,
b)){if(null==e||"undefined"==e||""==e)document.getElementById(jsinptCmnts).value="1";if("comment"==f){var o;if(document.getElementById("chkPubPri"))o=document.getElementById("chkPubPri").checked;else if(document.getElementById("presentationComments_chkPubPri"))o=document.getElementById("presentationComments_chkPubPri").checked;SeeAllPostComment(sourceTextBox.value,o,g);return!1}return!0}return!1}catch(q){}}
function SeeAllValidatePostComment(b,e,f,g){try{return SeeAllValidateSplCharAndLength(b,e,g)?(document.getElementById(f).style.display="inline",ShowHideCommentProgressLoaders(0),!0):!1}catch(h){}}
function SeeAllEnableDisableCommentsSection(b,e,f,g,h,k,o,q,s,p,u,w,v,y){try{var C="False";document.getElementById(h).style.display="none";1==b?(document.getElementById(f).style.display="none",document.getElementById(g).style.display="inline",document.getElementById(e).style.display="inline"):(document.getElementById(f).style.display="none",document.getElementById(e).style.display="none",document.getElementById(g).style.display="none");if("reply"==q){if(null!=document.getElementById("chkPubPri"))C=
document.getElementById("chkPubPri").checked;SeeAllPostReply(h,C,k,o,s,p,f,e,g,u,w,v,y)}else"updatecomment"==q&&SeeAllUpdateComment(h,k,o,s,p,f,e,g,u,v,y);return!1}catch(H){}}
function SeeAllDeleteReplyComment(b,e,f,g){$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/DeleteReplyComment",data:"{'commentReplyId':'"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b&&(url=jsSiteUrl+"comments/"+f+"/"+g,$.get(url,function(){location.href=jsSiteUrl+"comments/"+f+"/"+g}))}})}replyContainerDiv="";countpost=0;pervDiv="";
function SeeAllPostReply(b,e,f,g,h,k,o,q,s,p,u,w,v){try{var y=document.getElementById(b),C=document.getElementById(jshdnReplyId).value,H=document.getElementById(jshdnEmailIdForReply).value;""==H&&(H="");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/PostReplyToComment",data:"{'replyText':'"+replaceAll(y.value,"'",">")+"','pun':'"+Pun+"','hdnReplyId':'"+C+"','commentId':'"+f+"','hdnEmailIdForReply':'"+H+"','presentationMemberId':'"+presentationMemberId+"','isPrivate':'"+e+"','presentationOwnerID':'"+
presentationMemberId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b?(url=jsSiteUrl+"comments/"+w+"/"+v,$.get(url,function(){location.href=jsSiteUrl+"comments/"+jsPresentationId+"/"+v})):(document.getElementById(h).style.display="inline",document.getElementById(k).style.display="inline","fail"==b?document.getElementById(k).innerHTML="Please insert the message again.":document.getElementById(k).innerHTML=b)}})}catch(M){}}containerDiv="";
function SeeAllPostComment(b,e,f){if(null==e||"undefined"==e)e=!1;PTitle=replaceAll(PTitle,"'",">");$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/PostComment",data:"{'presentationMemberId':'"+presentationMemberId+"','comment':'"+replaceAll(b,"'",">")+"','presentationId':'"+jsPresentationId+"','title':'"+PTitle+"','ownerName':'"+jsDisplayName+"','emailId':'"+jsEmailId+"','isPrivateMsg':'"+e+"','pun':'"+Pun+"','isPremiumOwner':'"+isPremium+"','presentationOwnerID':'"+presentationMemberId+
"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){url=jsSiteUrl+"comments/"+jsPresentationId+"/"+f;$.get(url,function(){location.href=jsSiteUrl+"comments/"+jsPresentationId+"/1"})}})}
function SeeAllUpdateComment(b,e,f,g,h,k,o,q,s,p,u){try{b=document.getElementById(b),document.getElementById(s),$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/UpdateComment",data:"{'cmntDesc':'"+replaceAll(b.value,"'",">")+"','commentId':'"+e+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){""!=b&&(url=jsSiteUrl+"comments/"+p+"/"+u,$.get(url,function(){location.href=jsSiteUrl+"comments/"+p+"/"+u}))}})}catch(w){}}var NewpageNumber="";
function SeeAllDeleteComment(b,e,f,g,h){$.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/DeleteComment",data:"{'commentId':'"+b+"','isPremiumOwner':'"+isPremium+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){1<g&&1==h&&(g-=1);url=jsSiteUrl+"comments/"+f+"/"+g;$.get(url,function(){location.href=jsSiteUrl+"comments/"+f+"/"+g})}})}
function SeeAllValidateComments(b,e){var f,g;f=null==b||"undefined"==b||""==b?document.getElementById("spMsg"):b;g=null==e||"undefined"==e?document.getElementById(jstxtComments):document.getElementById(e);f.innerHTML="";g.value=trimString(g.value);var h=new String(g.value),h=h.replace(/^\s+/,""),h=h.replace(/\s+$/,""),k=!1;if(""==h){f.style.display="inline";f.innerHTML="*Please enter some text to post a comment.";if(null!=document.getElementById("errorDiv")||""!=document.getElementById("errorDiv")||
"undefined"!=document.getElementById("errorDiv"))document.getElementById("errorDiv").style.display="block";f.style.padding="5px";try{g.focus()}catch(o){}k=!1}else{if(1500<h.length){f.style.display="inline";f.innerHTML="You can enter only upto 1500 characters.";document.getElementById("errorDiv").style.display="block";f.style.padding="5px";try{g.focus()}catch(q){}}else{if(null!=document.getElementById("errorDiv")||""!=document.getElementById("errorDiv")||"undefined"!=document.getElementById("errorDiv"))document.getElementById("errorDiv").style.display=
"none";f.style.display="none"}if(IsNotHtmlTags(h)){if(1500<h.length)f.style.display="inline",f.innerHTML="You can enter only upto 1500 characters.",document.getElementById("errorDiv").style.display="block",f.style.padding="5px";k=!0}else f.style.display="block",f.innerHTML="*Invalid characters",document.getElementById("errorDiv").style.display="block",f.style.padding="5px",k=!1}if(k)document.getElementById(jsdivLoadingComments).style.display="inline";return k}
function GetPageNumber(b,e){try{location.href=jsSiteUrl+"comments/"+b+"/"+e}catch(f){}}function ShareOnSites(b,e){var f=location.href,g="";"stumble"==e?(f=b+f+"&title="+f,g="450"):(f=b+f+"&title="+f,g="800");window.open(f,"sharer","toolbar=0,status=0,width= "+g+",height=436,resizable=no, top="+(screen.height/2-195)+", left="+(screen.width/2-315)+"");return!1}
function IsValidEmails(b){try{for(var b=new String(b),b=b.split(/(,)|(;)/),e=0;e<b.length;e++)if(b[e]&&!1==IsValidEmail(b[e].trim())&&""!=b[e].trim()&&";"!=b[e].trim()&&","!=b[e].trim())return!1}catch(f){}return!0}
function IsValidEmail(b){for(i=0;27>i;i++)if(-1<b.indexOf("/'\\ \";:?!%~`()[]{}^|+=*&$#,".charAt(i),0))return!1;for(i=0;i<b.length;i++)if(127<b.charCodeAt(i))return!1;var e=b.indexOf("@",0);if(-1==e)return!1;if(0==e)return!1;if(-1<b.indexOf("@",e+1))return!1;if(-1==b.indexOf(".",e))return!1;if(-1!=b.indexOf("@.",0))return!1;if(-1!=b.indexOf(".@",0))return!1;if(-1!=b.indexOf("..",0))return!1;b=b.substring(b.lastIndexOf(".")+1).toLowerCase();return 2!=b.length&&"com"!=b&&"net"!=b&&"org"!=b&&"edu"!=
b&&"int"!=b&&"mil"!=b&&"gov"!=b&"arpa"!=b&&"biz"!=b&&"aero"!=b&&"name"!=b&&"coop"!=b&&"info"!=b&&"pro"!=b&&"museum"!=b?!1:!0}function openAdcontentDiv(){PopupShowDiv("DivProgressBar","modalBackground");ApplyTemplate("","#PopupDiv",jsDivsHtml+"adfreecontent.txt");PopupCloseDiv();PopupShowDiv("PopupDiv","modalBackground");CreateTrackCookie(trackCookieValue)}
function CreateTrackCookie(b){jQuery.ajax({type:"POST",url:jsSiteUrl+"Action/AjaxServerResponse.aspx/CreateTrackCookie",data:"{'trackCookieValue':'"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",Async:"false",success:function(){}})}function UpgradeNow(){window.location.href=jsSiteUrl+"premium/buynow/business/"}function SeePremiumPlan(){window.location.href=jsSiteUrl+"Premium/"}
var jsMemberType,jsFullName,BigthumbnailPath,PDescription,ThumbnailPath,jsIsPasscodeSendToEmail,jsPlayerThumbnailPath,passcodeProtected="",autoCompleteContacts=[],autoCompleteContactEmails=[],autoCompleteHandler,finalEmailList,passcode="",Pun;function openShare(){openSharePopup(jsPresentationId,Pun,ThumbnailPath)}var isDecoded=!1;
function openSharePopup(b,e,f){ThumbnailPath=f;jsPresentationId=b;Pun=e;isDecoded||(PTitle=decodeURIComponent(PTitle),isDecoded=!0);"False"!=jsPrivate&&pVal!=mVal?(PopupShowDiv("DivProgressBar","modalBackground"),ApplyTemplate("","#PopupDiv",jsDivsHtml+"sharedblock.txt"),PopupCloseDiv(),PopupShowDiv("PopupDiv","modalBackground")):openPublicShare()}
function openPublicShare(b){try{jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/GetMyContactList",data:"{'presentationId':'"+jsPresentationId+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(document.getElementById("signInUser"))document.getElementById("signInUser").innerHTML="Signed in as "+nVal;ApplyTemplate(e,"#PopupDiv",TxtPath+"presentationpublicsharediv.txt?ver=26092011");document.getElementById("spnPresentationName").innerHTML=PTitle;
""!=jsLoggedInDisplayName&&!b&&0<memberId?document.getElementById("TxtName").value=jsLoggedInDisplayName:""!=jsLoggedInDisplayName&&b?document.getElementById("TxtName").value=tempName:document.getElementById("TxtName").value="";0<memberId?(document.getElementById("signInNormalUser").style.display="inline",document.getElementById("signInGuestUser").style.display="none"):(document.getElementById("signInNormalUser").style.display="none",document.getElementById("signInGuestUser").style.display="inline");
if(document.getElementById("signInUser"))document.getElementById("signInUser").innerHTML="Signed in as "+nVal;try{PopupCloseDiv()}catch(g){}PopupShowDiv("PopupDiv","modalBackground");document.getElementById("progressAllShare").style.display="none";document.getElementById("dvShareBox").style.display="block";try{if(b)if("SUCCESS"==b){var h=finalEmailList.split(",").length-1;document.getElementById("messageBoxShared").style.display="inline";document.getElementById("spnMessageShared").innerHTML="Your presentation link is shared with "+
h+" person(s).";HideMessage("messageBoxShared")}else jQuery("#lblValidation").get(0).style.display="inline",jQuery("#lblValidation").get(0).style.visibility="visible",jQuery("#pnlValidationMessages").get(0).style.display="inline",jQuery("#pnlValidationMessages").get(0).style.visibility="visible",jQuery("#lblValidation").get(0).innerHTML=b}catch(k){}0==memberId?(document.getElementById("signInNormalUser").style.display="none",document.getElementById("signInGuestUser").style.display="inline",document.getElementById("contactExist").style.display=
"none",document.getElementById("noContactExist").style.display="none",document.getElementById("guestMsg").style.display="inline"):0==e.UserEmailContactCount?(document.getElementById("contactExist").style.display="none",document.getElementById("noContactExist").style.display="inline",document.getElementById("guestMsg").style.display="none"):actb(document.getElementById("TxtEmails"),autoCompleteContacts)}})}catch(e){}}
function ValidateImportContact(){var b=!0,e=document.getElementById("TxtUserName"),f=document.getElementById("TxtPassword");""==e.value&&(e.focus(),b=!1);""==f.value&&(f.focus(),b=!1);""==e.value&&""==f.value&&e.focus();if(!1==b)document.getElementById("SpanError").style.display="block",document.getElementById("SpanError").innerHTML="*Some fields were missed.<br>";"@yahoo.com"==EmailType&&(EmailType=YahooEmailType);!0==b&&(PopupCloseDiv(),PopupShowDiv("DivProgressBar","modalBackground"),jQuery.ajax({type:"POST",
url:jsSiteUrl+"presentationmethods.aspx/ImportContacts",data:"{'userName':'"+e.value+"','userPassword':'"+f.value+"','emailType':'"+EmailType+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){if(0==b.totalRecord)PopupCloseDiv(),ShowImportContact(emailTypeVal),jQuery("#SpanError").get(0).innerHTML="The username or password you entered is incorrect. Please try again.";else{PopupCloseDiv();ApplyTemplate(b,"#PopupDiv",TxtPath+"uploadcontactlist.txt?ver=26092011","");
PopupShowDiv("PopupDiv","modalBackground");if("@gmail.com"==EmailType)document.getElementById("importType").innerHTML="Gmail";if("@yahoo.com"==EmailType)document.getElementById("importType").innerHTML="Yahoo";if("@aol.com"==EmailType)document.getElementById("importType").innerHTML="AOL";if("@msn.com"==EmailType)document.getElementById("importType").innerHTML="MSN";document.getElementById("contactCount").innerHTML="("+jQuery("#contactDiv input:[type=checkbox]").size()+")";if(document.getElementById("signInUser"))document.getElementById("signInUser").innerHTML=
"Signed in as "+nVal}}}))}
function ValidateAddContact(){for(var b=!1,e=document.form1.elements,f="",g=0;g<e.length;g++)if("checkbox"==e[g].type)try{e[g].checked&&(EmailId=new String(e[g].attributes.value.value),f=f+EmailId+",",b=!0)}catch(h){}b?document.getElementById("contactError").innerHTML="":document.getElementById("contactError").innerHTML="Please select atleast one Email id to add as a contact";b&&(PopupCloseDiv(),PopupShowDiv("DivProgressBar","modalBackground"),jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/SaveContacts",
data:"{'emailList':'"+f+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){try{!0==b&&(PopupCloseDiv(),openSharePopup(jsPresentationId))}catch(e){}}}))}
function CheckUncheckUserContacts(b){var e=document.getElementById("contactDiv");if(null!=e.getElementsByTagName("input"))for(var f=0;f<e.getElementsByTagName("input").length;f++)if("checkbox"==e.getElementsByTagName("input").item(f).type)(e.getElementsByTagName("input").item(f).checked=b)?jQuery(e.getElementsByTagName("input").item(f)).parent().parent().css("background-color","#ffffe5"):jQuery(e.getElementsByTagName("input").item(f)).parent().parent().css("background-color","#FFFFFF")}
function CheckUncheckContact(b){b.checked?jQuery(b).parent().parent().css("background-color","#ffffe5"):(document.getElementById("chkAllmportedContact").checked=!1,jQuery(b).parent().parent().css("background-color","#FFFFFF"))}var emailTypeVal="gmail";
function ShowImportContact(b){emailTypeVal=b;if(0!=mVal){if(PopupShowDiv("DivProgressBar","modalBackground"),ApplyTemplate("","#PopupDiv",TxtPath+"uploadimportcontactdiv.txt?ver=26092011"),PopupCloseDiv(),PopupShowDiv("PopupDiv","modalBackground"),jQuery("#TxtUserName").get(0).focus(),CheckRadio(b),document.getElementById("signInUser"))document.getElementById("signInUser").innerHTML="Signed in as "+nVal}else OpenSignInDiv()}var YahooEmailType="@yahoo.com",EmailType="@gmail.com";
function SetYahooId(b){YahooEmailType=b.options[b.selectedIndex].text}
function CheckRadio(b){emailTypeVal=b;document.getElementById("yahooList").style.display="none";document.getElementById("divGmail").className="";document.getElementById("divYahoo").className="";document.getElementById("divMsn").className="";document.getElementById("divAol").className="";if("gmail"==b)document.getElementById("divGmail").className="active",document.getElementById("lblService").style.display="block",EmailType=document.getElementById("lblService").innerHTML="@gmail.com";if("yahoo"==b)document.getElementById("divYahoo").className=
"active",document.getElementById("yahooList").style.display="block",document.getElementById("lblService").style.display="none",EmailType="@yahoo.com";if("aol"==b)document.getElementById("divAol").className="active",document.getElementById("lblService").style.display="block",EmailType=document.getElementById("lblService").innerHTML="@aol.com";if("msn"==b)document.getElementById("divMsn").className="active",document.getElementById("lblService").style.display="block",EmailType=document.getElementById("lblService").innerHTML=
"@msn.com"}
function ValidateSharePrivatePresentation(b,e,f,g){try{var h=!0,b=!0,k=!1;finalEmailList="";var o=document.getElementById("TxtEmails");""==o.value||","==o.value||";"==o.value||"Enter an e-mail address or authorSTREAM user name separated by a comma."==o.value?(b=h=!1,document.getElementById("lblEmailsError").style.visibility="hidden",document.getElementById("lblEmailsError").style.display="none"):!1==IsValidEmailsOrUsername(o.value)?(document.getElementById("lblEmailsError").style.display="block",
document.getElementById("lblEmailsError").style.visibility="visible",b=!1,k=!0):(document.getElementById("lblEmailsError").style.visibility="hidden",document.getElementById("lblEmailsError").style.display="none");o=document.getElementById("TxtMessage");""!=o.value||"write your message here."!=trimString(o.value.toLowerCase())?500<o.value.length?(document.getElementById("lblTextError").style.display="inline",document.getElementById("lblTextError").style.visibility="visible",document.getElementById("lblTextError").innerHTML=
"*Message can not exceed more than 500 characters.",b=!1,k=!0):!1==IsNotHtmlTags(o.value)?(document.getElementById("lblTextError").style.display="inline",document.getElementById("lblTextError").style.visibility="visible",document.getElementById("lblTextError").innerHTML="*Message contains invalid characters.",b=!1,k=!0):(document.getElementById("lblTextError").style.display="none",document.getElementById("lblTextError").style.visibility="hidden",document.getElementById("lblTextError").innerHTML=""):
document.getElementById("lblTextError").innerHTML="";!1==h?(document.getElementById("lblValidation").style.visibility="visible",document.getElementById("lblValidation").style.display="inline",k=!0):(document.getElementById("lblValidation").style.visibility="hidden",document.getElementById("lblValidation").style.display="none");k?(document.getElementById("pnlValidationMessages").style.display="inline",document.getElementById("pnlValidationMessages").style.visibility="visible"):(document.getElementById("pnlValidationMessages").style.display=
"none",document.getElementById("pnlValidationMessages").style.visibility="hidden");var q=trimString(document.getElementById("TxtMessage").value);trimString(document.getElementById("TxtEmails").value);"write your message here."==trimString(q.toLowerCase())&&(q="");o=!1;if(document.getElementById("chkSendPasscodeInEmail")&&"1"==passcodeProtected)o=document.getElementById("chkSendPasscodeInEmail").checked;if(b){document.getElementById("progressAllShare").style.display="block";document.getElementById("dvShareBox").style.display=
"none";finalEmailList=RemoveDuplicate(finalEmailList);try{jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/SharePrivatePresentation",data:"{'presentationId':'"+jsPresentationId+"','title':'"+replaceAll(PTitle,"'","&#39;")+"','presentationDescription':'"+e+"','displayName':'"+f+"','presentaionUniqueName':'"+Pun+"','txtEmails':'"+finalEmailList+"','txtMessage':'"+q+"','presentationSmallThumbNailPath':'"+g+"','isSendPasscodeInEmail':'"+o+"','passcode':'"+passcode+"','pOption':'"+passcodeProtected+
"','isUpdatePrivateSetting':'false'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){!0==b?(PopupShowDiv("DivProgressBar","modalBackground"),openPrivateShare("SUCCESS")):(PopupShowDiv("DivProgressBar","modalBackground"),openPrivateShare("*Sorry there is some problem while sending messsage"))}})}catch(s){}}}catch(p){}}function RemoveDuplicate(b){for(var b=b.split(","),e="",f=0;f<b.length;f++)-1==e.indexOf(b[f])&&(e=e+b[f]+",");return e}var tempName="";
function ValidatePublicSharePresentation(b,e,f,g){try{var h=!0,k=!0,o=!1;finalEmailList="";var q=document.getElementById("lblNameError"),s=document.getElementById(f);tempName=s.value;q.innerHTML="";q.style.visibility="hidden";s.className="txtbx";q.style.display="none";if(""==trimString(s.value))q.innerHTML="*From field can't be left blank.",s.className="redline",q.style.display="inline",q.style.visibility="visible",k=!1,o=!0;var p=document.getElementById("TxtEmails");""==p.value||","==p.value||";"==
p.value||"Enter an e-mail address or authorSTREAM user name separated by a comma."==p.value?(k=h=!1,document.getElementById("lblEmailsError").style.visibility="hidden",document.getElementById("lblEmailsError").style.display="none"):!1==IsValidEmailsOrUsername(p.value)?(document.getElementById("lblEmailsError").style.display="block",document.getElementById("lblEmailsError").style.visibility="visible",k=!1,o=!0):(document.getElementById("lblEmailsError").style.visibility="hidden",document.getElementById("lblEmailsError").style.display=
"none");p=document.getElementById("TxtMessage");""!=p.value||"write your message here."!=trimString(p.value.toLowerCase())?500<p.value.length?(document.getElementById("lblTextError").style.display="inline",document.getElementById("lblTextError").style.visibility="visible",document.getElementById("lblTextError").innerHTML="*Message can not exceed more than 500 characters.",k=!1,o=!0):!1==IsNotHtmlTags(p.value)?(document.getElementById("lblTextError").style.display="inline",document.getElementById("lblTextError").style.visibility=
"visible",document.getElementById("lblTextError").innerHTML="*Message contains invalid characters.",k=!1,o=!0):(document.getElementById("lblTextError").style.display="none",document.getElementById("lblTextError").style.visibility="hidden",document.getElementById("lblTextError").innerHTML=""):document.getElementById("lblTextError").innerHTML="";!1==h?(document.getElementById("lblValidation").style.visibility="visible",document.getElementById("lblValidation").style.display="inline",o=!0):(document.getElementById("lblValidation").style.visibility=
"hidden",document.getElementById("lblValidation").style.display="none");o?(document.getElementById("pnlValidationMessages").style.display="inline",document.getElementById("pnlValidationMessages").style.visibility="visible"):(document.getElementById("pnlValidationMessages").style.display="none",document.getElementById("pnlValidationMessages").style.visibility="hidden");var u=trimString(document.getElementById("TxtMessage").value);trimString(document.getElementById("TxtEmails").value);"write your message here."==
trimString(u.toLowerCase())&&(u="");f=!1;if(document.getElementById("chkSendPasscodeInEmail")&&"1"==passcodeProtected)f=document.getElementById("chkSendPasscodeInEmail").checked;if(k){document.getElementById("progressAllShare").style.display="inline";document.getElementById("dvShareBox").style.display="none";finalEmailList=RemoveDuplicate(finalEmailList);try{jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/SendEmails",data:"{'presentationId':'"+jsPresentationId+"','isPrivate':'"+b+
"','title':'"+replaceAll(PTitle,"'","&#39;")+"','presentationDescription':'"+e+"','displayName':'"+s.value+"','presentaionUniqueName':'"+Pun+"','txtEmails':'"+finalEmailList+"','txtName':'"+s.value+"','txtMessage':'"+u+"','presentationSmallThumbNailPath':'"+g+"','isSendPasscodeInEmail':'"+f+"','passcode':'"+passcode+"','isPremiumOwner':'"+isPremium+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){PopupCloseDiv();!0==b?(PopupShowDiv("DivProgressBar","modalBackground"),
openPublicShare("SUCCESS")):(PopupShowDiv("DivProgressBar","modalBackground"),openPublicShare("*Sorry there is some problem while sending messsage"))}})}catch(w){}}}catch(v){}}function IsValidAlphaNumericWithSpace(b){for(var e=0;e<b.length;e++)if(-1!="<>".indexOf(b.charAt(e)))return!1}function IsValidEmails(b){for(var b=new String(b),b=b.split(/(,)|(;)/),e=0;e<b.length;e++)if(!1==IsValidEmail(trimString(b[e]))&&""!=trimString(b[e])&&";"!=trimString(b[e])&&","!=trimString(b[e]))return!1;return!0}
function IsValidEmailsOrUsername(b){for(var b=new String(b),b=b.split(/(,)|(;)/),e=0;e<b.length;e++)if(b[e])if(!1==IsValidEmail(trimString(b[e]))&&""!=trimString(b[e])&&";"!=trimString(b[e])&&","!=trimString(b[e]))if(IsValidUserName(trimString(b[e])))finalEmailList=finalEmailList+GetEmailID(trimString(b[e]))+",";else return!1;else""!=trimString(b[e])&&";"!=trimString(b[e])&&","!=trimString(b[e])&&(finalEmailList=finalEmailList+trimString(b[e])+",");return!0}
function GetEmailID(b){for(var e=0;e<autoCompleteContacts.length;e++)if(trimString(autoCompleteContacts[e])==b)return trimString(autoCompleteContactEmails[e])}function IsValidUserName(b){var e,f=!1;for(e=0;e<autoCompleteContacts.length;e++)autoCompleteContacts[e]==b&&(f=!0);return f}
function IsValidEmail(b){for(i=0;29>i;i++)if(-1<b.indexOf("/'\\ \";:?!%~`()[]{}^|+=*&$#,<>".charAt(i),0))return!1;for(i=0;i<b.length;i++)if(127<b.charCodeAt(i))return!1;var e=b.indexOf("@",0);if(-1==e)return!1;if(0==e)return!1;if(-1<b.indexOf("@",e+1))return!1;if(-1==b.indexOf(".",e))return!1;if(-1!=b.indexOf("@.",0))return!1;if(-1!=b.indexOf(".@",0))return!1;if(-1!=b.indexOf("..",0))return!1;b=b.substring(b.lastIndexOf(".")+1).toLowerCase();return 2!=b.length&&"com"!=b&&"net"!=b&&"org"!=b&&"edu"!=
b&&"int"!=b&&"mil"!=b&&"gov"!=b&"arpa"!=b&&"biz"!=b&&"aero"!=b&&"name"!=b&&"coop"!=b&&"info"!=b&&"pro"!=b&&"museum"!=b?!1:!0}function IsNotHtmlTags(b){for(var e=0;e<b.length;e++)if(-1!="<>".indexOf(b.charAt(e)))return!1;return!0}
function SetSelectedCount(){for(var b=0,e=document.form1.elements,f=0,f=0;f<e.length;f++)"checkbox"==e[f].type&&"checkbox"==e[f].name&&e[f].checked&&(b+=1);e=document.getElementById("selectedContacts");document.getElementById("chkSelectAllContacts").checked&&(b-=1);e.innerHTML=" ("+b+")"}
function checkUncheckAll(b){(b=b.checked)&&EmailBoxGetFocus();for(var e=document.form1.elements,f=0,f=0;f<e.length;f++)if("checkbox"==e[f].type&&"checkbox"==e[f].name){e[f].checked=b;try{var g=new String(e[f].attributes.value.value);"Send Passcode in email"==g||"on"==g||null!=g&&"undefined"!=g&&"null"!=g&&CheckUncheck(e[f],g)}catch(h){}}SetSelectedCount();b||EmailBoxLostFocus()}
function CheckUncheck(b,e){void 0==b.checked||!1==b.checked?(RemoveContact(e),document.getElementById("chkSelectAllContacts").checked=!1,jQuery(b).parent().parent().css("background-color","#FFFFFF")):(jQuery(b).parent().parent().css("background-color","#ffffe5"),AddContact(e));ShowClearButton(document.getElementById("TxtEmails"),"dvClearEmailList")}
function RemoveContact(b){var e=new String(document.getElementById("TxtEmails").value),e=e.replace(b+",",""),e=e.replace("  "," ");document.getElementById("TxtEmails").value=e}function AddContact(b){var e=document.getElementById("TxtEmails"),f=new String(e.value);""!=f&&","!=f.charAt(f.length-1)&&";"!=f.charAt(f.length-1)&&(f+=",");e.value=f;if(-1==e.value.indexOf(b+",",0))e.value=e.value+b+","}String.prototype.trim=function(){a=this.replace(/^\s+/,"");return a.replace(/\s+$/,"")};
function CheckAuthorStreamUser(b,e){return b?'<a target="blank" href="'+(jsSiteUrl+e+"/")+'" class="dvleft link11">aS Member</a><span class="icon_cup_blue dvleft mTop3 mleft5"></span>':""}function ShowContactEmail(b){return b?"none":"inline"}function CreateAutoCompleteContactList(b,e,f){try{var g=autoCompleteContacts.length;autoCompleteContacts[g]=b?e:f;autoCompleteContactEmails[g]=f}catch(h){}return""}function GetContactInfo(b,e,f){return b?f:e}
function GetUserImage(b,e,f){var g="";try{if(b){var h=e.split("?"),g=""!=h[1]?g+'<div class="dvleft"><img src="'+jsSiteUrl+"ImageHandler.ashx?imgPath="+h[1]+'&height=25&width=30"/></div>':g+'<div class="smal_guestimg mTop3"></div>';if("pp"==h[0]||"p"==h[0])g=g+'<span id="spnToolTip'+f+'" onmouseover="javascript:ShowToolTip(event,\'dvSeeAllPremiumMember\',this.id,5);"',g+=" onmouseout=\"javascript:HideToolTip('dvSeeAllPremiumMember');\"",g+=' class="icon_yelostar" style="margin-top:18px; margin-left:-30px;cursor: pointer;"></span>'}else g=
'<div class="smal_guestimg mTop3"></div>'}catch(k){}return g}
function DeleteSharedMember(b){var e=document.getElementById("progressDeleteShare"),f=document.getElementById("addPeople"),g=document.getElementById("share"+b);if(confirm("Are you sure you want to delete?"))f.style.display="none",e.style.display="block",document.getElementById("hdnMemberID"),jQuery.ajax({type:"POST",url:jsSiteUrl+"presentationmethods.aspx/DeletedSharedMember",data:"{'presentationId' : '"+jsPresentationId+"','shareID' : '"+b+"'}",contentType:"application/json; charset=utf-8",dataType:"json",
success:function(b){var k=document.getElementById("messageBoxShared"),o=document.getElementById("spnMessageShared");k.style.display="inline";"1"==b?(b=document.getElementById("totalShared"),"1"==b.value?(b.value="0",document.getElementById("noSharedMember").style.display="inline"):b.value=parseInt(b.value)-1,g.style.display="none",o.innerHTML="The contact has been removed from your Shared With list."):o.innerHTML="Some error occured while deleting. Please try again!";HideMessage("messageBoxShared");
f.style.display="inline";e.style.display="none"}})}function resetSharedBox(){var b=document.getElementById("pnlValidationMessages"),e=document.getElementById("TxtEmails");document.getElementById("chkSendPasscodeInEmail");var f=document.getElementById("TxtMessage");e.value="Enter an e-mail address or authorSTREAM user name separated by a comma.";e.className="txtbx light_text12";f.value="";SetMessagText();b.style.display="none";checkUncheckAll(this,!1);EmailBoxLostFocus()}
function EmailBoxLostFocus(){var b=document.getElementById("TxtEmails");if(""==trimString(b.value))b.value="Enter an e-mail address or authorSTREAM user name separated by a comma.",b.className="txtbx light_text11"}function EmailBoxGetFocus(){var b=document.getElementById("TxtEmails");if("Enter an e-mail address or authorSTREAM user name separated by a comma."==trimString(b.value))b.value="",b.className="txtbx"}
function addEvent(b,e,f){b.attachEvent?b.attachEvent("on"+e,f):b.addEventListener?b.addEventListener(e,f,!0):b["on"+e]=f}function removeEvent(b,e,f){b.detachEvent?b.detachEvent("on"+e,f):b.removeEventListener?b.removeEventListener(e,f,!0):b["on"+e]=null}function stopEvent(b){if(b.stopPropagation)b.stopPropagation(),b.preventDefault();else if("undefined"!=typeof b.cancelBubble)b.cancelBubble=!0,b.returnValue=!1;return!1}
function getElement(b){return window.event?window.event.srcElement:b.currentTarget}function getTargetElement(b){return window.event?window.event.srcElement:b.target}function stopSelect(b){"undefined"!=typeof b.onselectstart&&addEvent(b,"selectstart",function(){return!1})}
function getCaretEnd(b){if("undefined"!=typeof b.selectionEnd)return b.selectionEnd;if(document.selection&&document.selection.createRange){var e=document.selection.createRange();try{var f=e.duplicate();f.moveToElementText(b)}catch(g){f=b.createTextRange()}f.setEndPoint("EndToEnd",e);e=f.text.length;return e>b.value.length?-1:e}}
function getCaretStart(b){if("undefined"!=typeof b.selectionStart)return b.selectionStart;if(document.selection&&document.selection.createRange){var e=document.selection.createRange();try{var f=e.duplicate();f.moveToElementText(b)}catch(g){f=b.createTextRange()}f.setEndPoint("EndToStart",e);e=f.text.length;return e>b.value.length?-1:e}}
function setCaret(b,e){b.focus();b.setSelectionRange?b.setSelectionRange(e,e):b.createTextRange&&(m=b.createTextRange(),m.moveStart("character",e),m.collapse(),m.select())}function setSelection(b,e,f){b.focus();b.setSelectionRange?b.setSelectionRange(e,f):b.createTextRange&&(m=b.createTextRange(),m.moveStart("character",e),m.moveEnd("character",f),m.select())}String.prototype.addslashes=function(){return this.replace(/(["\\\.\|\[\]\^\*\+\?\$\(\)])/g,"\\$1")};
String.prototype.trim=function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1")};function curTop(b){for(toreturn=0;b;)toreturn+=b.offsetTop,b=b.offsetParent;return toreturn}function curLeft(b){for(toreturn=0;b;)toreturn+=b.offsetLeft,b=b.offsetParent;return toreturn}function isNumber(b){return"number"==typeof b&&isFinite(b)}function replaceHTML(b,e){for(;el=b.childNodes[0];)b.removeChild(el);b.appendChild(document.createTextNode(e))}
function ClearEmailList(){document.getElementById("TxtEmails").value="";EmailBoxLostFocus();document.getElementById("chkSelectAllContacts").checked=!1;checkUncheckAll(this);document.getElementById("dvClearEmailList").style.display="none"}function ClearMessage(){document.getElementById("TxtMessage").value="";document.getElementById("dvClearMessage").style.display="none";SetMessagText()}
function ShowClearButton(b,e){""!=trimString(b.value)?document.getElementById(e).style.display="inline":document.getElementById(e).style.display="none"}function ClearMessageText(){var b=document.getElementById("TxtMessage");if("write your message here."==trimString(b.value.toLowerCase()))b.value="",b.className="txtbx"}function SetMessagText(){var b=document.getElementById("TxtMessage");if(""==trimString(b.value))b.value="Write your message here.",b.className="txtbx light_text11"}
function actb(b,e){function f(){removeEvent(document,"keydown",S);removeEvent(z,"blur",f);removeEvent(document,"keypress",L);E()}function g(b){if(0<n.actb_delimiter.length)var e=trimString(A[N]).addslashes(),f=trimString(A[N]).length;else e=z.value.addslashes(),f=z.value.length;for(var g="",h=b.search(n.actb_firstText?RegExp("^"+e,"i"):RegExp(e,"i")),e=0;e<h;e++)g+=b.substr(e,1);g+="<font style='"+n.actb_hStyle+"'>";for(e=h;e<f+h;e++)g+=b.substr(e,1);g+="</font>";for(e=f+h;e<b.length;e++)g+=b.substr(e,
1);return g}function h(){document.getElementById("tat_table")&&(F=!1,document.getElementById("Emaildv").removeChild(document.getElementById("tat_table")));if(0==Q)F=!1;else{a=document.createElement("table");a.cellSpacing="1px";a.cellPadding="0px";a.style.position="absolute";a.style.zIndex="1000";var b=jQuery("#TxtEmails");a.style.top=eval(b.position().top+Number(document.getElementById("TxtEmails").style.height.replace("px",""))+10)+"px";a.style.left=b.position().left+"px";a.style.backgroundColor=
n.actb_bgColor;a.id="tat_table";a.style.border="solid 1px #c4c4c4";a.style.borderBottom="solid 0px #c4c4c4";a.style.width="317px";document.getElementById("Emaildv").appendChild(a);var e=!0,f=1;if(n.actb_mouse)a.onmouseout=C,a.onmouseover=y;for(var h=0,b=0;b<n.actb_keywords.length;b++){if(P[b]){h++;r=a.insertRow(-1);e&&!T?(r.style.backgroundColor=n.actb_hColor,e=!1,x=h):R==b?(r.style.backgroundColor=n.actb_hColor,e=!1,x=h):r.style.backgroundColor=n.actb_bgColor;r.id="tat_tr"+f;c=r.insertCell(-1);c.style.color=
n.actb_textColor;c.style.fontFamily=n.actb_fFamily;c.style.fontSize=n.actb_fSize;c.innerHTML=g(n.actb_keywords[b]);c.id="tat_td"+f;c.setAttribute("pos",f);c.style.padding="5px";c.style.borderBottom="solid 1px  #c4c4c4";if(n.actb_mouse)c.style.cursor="pointer",c.onclick=v,c.onmouseover=H;f++}if(f-1==n.actb_lim&&f<G){r=a.insertRow(-1);r.style.backgroundColor=n.actb_bgColor;c=r.insertCell(-1);c.style.color=n.actb_textColor;c.style.fontFamily="arial narrow";c.style.fontSize=n.actb_fSize;c.align="center";
replaceHTML(c,"\\/");if(n.actb_mouse)c.style.cursor="pointer",c.onclick=u;break}}I=1;J=f-1;F=!0;0>=x&&(x=1)}}function k(){document.getElementById("Emaildv").removeChild(document.getElementById("tat_table"));a=document.createElement("table");a.cellSpacing="1px";a.cellPadding="0px";a.style.position="absolute";var b=jQuery("#TxtEmails");a.style.top=eval(b.position().top+Number(document.getElementById("TxtEmails").style.height.replace("px",""))+10)+"px";a.style.left=b.position().left+"px";a.style.backgroundColor=
n.actb_bgColor;a.id="tat_table";a.style.border="solid 1px #c4c4c4";a.style.borderBottom="solid 0px #c4c4c4";a.style.width="317px";if(n.actb_mouse)a.onmouseout=C,a.onmouseover=y;document.getElementById("Emaildv").appendChild(a);var e=1;if(1<I&&(r=a.insertRow(-1),r.style.backgroundColor=n.actb_bgColor,c=r.insertCell(-1),c.style.color=n.actb_textColor,c.style.fontFamily="arial narrow",c.style.fontSize=n.actb_fSize,c.align="center",replaceHTML(c,"/\\"),n.actb_mouse))c.style.cursor="pointer",c.onclick=
w;for(b=0;b<n.actb_keywords.length;b++){if(P[b]){if(e>=I&&e<=J&&(r=a.insertRow(-1),r.style.backgroundColor=n.actb_bgColor,r.id="tat_tr"+e,c=r.insertCell(-1),c.style.color=n.actb_textColor,c.style.fontFamily=n.actb_fFamily,c.style.fontSize=n.actb_fSize,c.innerHTML=g(n.actb_keywords[b]),c.id="tat_td"+e,c.setAttribute("pos",e),c.style.padding="5px",c.style.borderBottom="solid 1px  #c4c4c4",n.actb_mouse))c.style.cursor="pointer",c.onclick=v,c.onmouseover=H;e++}if(e>J)break}if(e-1<G&&(r=a.insertRow(-1),
r.style.backgroundColor=n.actb_bgColor,c=r.insertCell(-1),c.style.color=n.actb_textColor,c.style.fontFamily="arial narrow",c.style.fontSize=n.actb_fSize,c.align="center",replaceHTML(c,"\\/"),n.actb_mouse))c.style.cursor="pointer",c.onclick=u}function o(){if(F&&1!=x)document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_bgColor,x--,x<I&&p(),document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_hColor,B&&clearTimeout(B),0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}
function q(){if(F&&x!=G)document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_bgColor,x++,x>J&&s(),document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_hColor,B&&clearTimeout(B),0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}function s(){I++;J++;k()}function p(){I--;J--;k()}function u(){document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_bgColor;x++;s();document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_hColor;z.focus();D=0;B&&
clearTimeout(B);0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}function w(b){b||(b=event);b.stopPropagation?b.stopPropagation():b.cancelBubble=!0;document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_bgColor;x--;p();document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_hColor;z.focus();D=0;B&&clearTimeout(B);0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}function v(){F&&(D=0,x=this.getAttribute("pos"),M())}function y(){D=1}function C(){D=
0;B&&clearTimeout(B);0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}function H(){D=1;document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_bgColor;for(x=this.getAttribute("pos");x<I;)p();for(;x>J;)s();document.getElementById("tat_tr"+x).style.backgroundColor=n.actb_hColor;B&&clearTimeout(B);0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut))}function M(){if(F){F=!1;for(var b="",e=0,f=0;f<=n.actb_keywords.length;f++)if(P[f]&&e++,e==x){b=n.actb_keywords[f];
break}if(0<n.actb_delimiter.length){str="";for(i=l=0;i<A.length;i++){if(N==i){prespace=postspace="";gotbreak=!1;for(j=0;j<A[i].length;++j){if(" "!=A[i].charAt(j)){gotbreak=!0;break}prespace+=" "}for(j=A[i].length-1;0<=j&&!(" "!=A[i].charAt(j));--j)postspace+=" ";str+=prespace;str+=b;l=str.length;gotbreak&&(str+=postspace)}else str+=A[i];i!=A.length-1&&(str+=O[i])}z.value=str;setCaret(z,l)}else z.value=b;D=0;E();l=getCaretStart(z)}}function E(){0==D&&(F=0,document.getElementById("tat_table")&&document.getElementById("Emaildv").removeChild(document.getElementById("tat_table")),
B&&clearTimeout(B))}function L(b){K&&stopEvent(b);return!K}function S(b){b||(b=event);a=b.keyCode;caret_pos_start=getCaretStart(z);K=0;switch(a){case 38:return o(),K=1,!1;case 40:return q(),K=1,!1;case 13:case 9:return F?(K=1,M(),!1):!0;default:setTimeout(function(){V(a)},50)}}function V(b){if(!(38==b||40==b||13==b)){if(F){for(var e=0,f=0,b=0;b<=n.actb_keywords.length;b++)if(P[b]&&f++,f==x){e=b;break}R=e}else R=-1;if(""==z.value)D=0,E();else{if(0<n.actb_delimiter.length){caret_pos_start=getCaretStart(z);
caret_pos_end=getCaretEnd(z);delim_split="";for(b=0;b<n.actb_delimiter.length;b++)delim_split+=n.actb_delimiter[b];delim_split=delim_split.addslashes();delim_split_rx=RegExp("(["+delim_split+"])");f=0;A=[""];for(b=0,j=z.value.length;b<z.value.length;b++,j--)0==z.value.substr(b,j).search(delim_split_rx)?(ma=z.value.substr(b,j).match(delim_split_rx),O[f]=ma[1],f++,A[f]=""):A[f]+=z.value.charAt(b);e=0;N=-1;for(b=0;b<A.length;b++)caret_pos_end>=e&&caret_pos_end<=e+A[b].length&&(N=b),e+=A[b].length+1;
b=trimString(A[N]);e=trimString(A[N].addslashes())}else b=z.value,e=z.value.addslashes();0==b.length&&(D=0,E());if(b.length<n.actb_startcheck)return this;e=n.actb_firstText?RegExp("^"+e,"i"):RegExp(e,"i");G=0;T=!1;for(b=Q=0;b<n.actb_keywords.length;b++)P[b]=!1,e.test(n.actb_keywords[b])&&(G++,P[b]=!0,Q++,R==b&&(T=!0));B&&clearTimeout(B);0<n.actb_timeOut&&(B=setTimeout(function(){D=0;E()},n.actb_timeOut));h()}}}this.actb_timeOut=-1;this.actb_lim=4;this.actb_firstText=!1;this.actb_mouse=!0;this.actb_delimiter=
[";",","];this.actb_startcheck=1;this.actb_bgColor="#eaeaea";this.actb_textColor="#444";this.actb_hColor="#f7f7f7";this.actb_fFamily="Verdana";this.actb_fSize="11px";this.actb_hStyle='text-decoration:underline;border-bottom:solid 1px #c4c4c4;font-weight="bold"';var A=[],N=0,O=[],F=!1,x=0,G=0,z=null,I=0,J=0,P=[],R=0,B,T=!1,D=1,Q=0,K=!1;this.actb_keywords=[];this.actb_keywords=e;var n=this,z=b;addEvent(z,"focus",function(){addEvent(document,"keydown",S);addEvent(z,"blur",f);addEvent(document,"keypress",
L)});return this}function OpenAddChannel(){0==memberId?OpenSignInDiv():AddToChannel()}
function show(b,e){if("ShareDiv"==b&&"none"==document.getElementById(b).style.display)document.getElementById("AddPres").style.display="none",document.getElementById("EmbedDiv").style.display="none",document.getElementById("addto").className="",document.getElementById("embed").className="";if("AddPres"==b&&"none"==document.getElementById(b).style.display)document.getElementById("ShareDiv").style.display="none",document.getElementById("EmbedDiv").style.display="none",document.getElementById("share").className=
"",document.getElementById("embed").className="";if("EmbedDiv"==b&&"none"==document.getElementById(b).style.display)document.getElementById("AddPres").style.display="none",document.getElementById("ShareDiv").style.display="none",document.getElementById("addto").className="",document.getElementById("embed").className="";if("none"==document.getElementById(b).style.display){menuClickFlag=!0;document.getElementById(b).style.display="inline";var f=jQuery("#"+e).position();jQuery(".popupblock").css({top:+f.top+
29+"px",left:+f.left-1+"px"});"embed"==e?document.getElementById(e).className="embedactive":document.getElementById(e).className="enable"}else menuClickFlag=!1,document.getElementById(b).style.display="none",document.getElementById(e).className=""}function ShowHideViewBox(b,e){var e=document.getElementById(e),f=document.getElementById(b);"none"==f.style.display?(f.style.display="inline",e.className="uparow dvright mTop3"):(f.style.display="none",e.className="downarow dvright mTop3")}
function HideToolTip(b){document.getElementById(b).style.display="none"}
function ShowToolTip(b,e,f,g){ctrl=document.getElementById(e);b=document.getElementById(f);ctrl.style.display="block";1==g?(ctrl.style.top=TopPos(b,-95),ctrl.style.left=LeftPos(b,-150)):2==g?(b=jQuery("#"+f).position(),jQuery("#"+e).css({left:b.left+"px",top:b.top+10+"px"}),jQuery("#"+e).show()):3==g?(ctrl.style.top=TopPos(b,10),ctrl.style.left=LeftPos(b,-250)):4==g?(ctrl.style.top=TopPos(b,10),ctrl.style.left=LeftPos(b,-250)):5==g?(g=jQuery("#contactExist").position(),b=jQuery("#"+f).position(),
jQuery("#"+f).width(),jQuery("#"+e).css({left:g.left+20+"px",top:b.top-10+jQuery("#contactExist").scrollTop()+"px"}),jQuery("#"+e).show()):6==g?(b=jQuery("#"+f).position(),jQuery("#"+e).css({left:b.left-30+"px",top:b.top+10+"px"}),jQuery("#"+e).show()):7==g?(b=jQuery("#"+f).position(),jQuery("#"+e).css({left:b.left+20+"px",top:b.top+10+"px"}),jQuery("#"+e).show()):8==g?(b=jQuery("#"+f).position(),jQuery("#"+e).css({left:b.left+15+"px",top:b.top+"px"}),jQuery("#"+e).show()):(ctrl.style.top=TopPos(b,
-158),ctrl.style.left=LeftPos(b,-418))}
eval(function(b,e,f,g,h,k){h=function(b){return(b<e?"":h(parseInt(b/e)))+(35<(b%=e)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;f--;)k[h(f)]=g[f]||h(f);g=[function(b){return k[b]}];h=function(){return"\\w+"};f=1}for(;f--;)g[f]&&(b=b.replace(RegExp("\\b"+h(f)+"\\b","g"),g[f]));return b}("a(37.b&&!37.b.38){(9(b){6 m=9(s,A,f){5.1M=[];5.1u={};5.2p=E;5.1N={};5.1c={};5.f=b.1m({1Z:1f,3a:1O,2q:1f,2r:1f,3b:1O,3c:1O},f);5.1v=(5.f.1v!==F)?(5.f.1v):(13.20);5.Y=(5.f.Y!==F)?(5.f.Y):(13.3d);5.3e(s,A);a(s){5.1w(5.1c['21'],A,5.f)}5.1c=E};m.y.2s='0.7.8';m.R=1O;m.y.3e=9(s,A){6 2t=/\\{#14 *(\\w*?)( .*)*\\}/g;6 22,1x,M;6 1y=E;6 2u=[];2v((22=2t.3N(s))!=E){1y=2t.1y;1x=22[1];M=s.2w('{#/14 '+1x+'}',1y);a(M==-1){C j Z('15: m \"'+1x+'\" 2x 23 3O.');}5.1c[1x]=s.2y(1y,M);2u[1x]=13.2z(22[2])}a(1y===E){5.1c['21']=s;c}N(6 i 24 5.1c){a(i!='21'){5.1N[i]=j m()}}N(6 i 24 5.1c){a(i!='21'){5.1N[i].1w(5.1c[i],b.1m({},A||{},5.1N||{}),b.1m({},5.f,2u[i]));5.1c[i]=E}}};m.y.1w=9(s,A,f){a(s==F){5.1M.B(j 1g('',1,5));c}s=s.U(/[\\n\\r]/g,'');s=s.U(/\\{\\*.*?\\*\\}/g,'');5.2p=b.1m({},5.1N||{},A||{});5.f=j 2A(f);6 p=5.1M;6 1P=s.1h(/\\{#.*?\\}/g);6 16=0,M=0;6 e;6 1i=0;6 25=0;N(6 i=0,l=(1P)?(1P.V):(0);i<l;++i){6 17=1P[i];a(1i){M=s.2w('{#/1z}');a(M==-1){C j Z(\"15: 3P 1Q 3f 1z.\");}a(M>16){p.B(j 1g(s.2y(16,M),1,5))}16=M+11;1i=0;i=b.3Q('{#/1z}',1P);1R}M=s.2w(17,16);a(M>16){p.B(j 1g(s.2y(16,M),1i,5))}6 3R=17.1h(/\\{#([\\w\\/]+).*?\\}/);6 26=I.$1;2B(26){q'3S':++25;p.27();q'a':e=j 1A(17,p);p.B(e);p=e;D;q'J':p.27();D;q'/a':2v(25){p=p.28();--25}q'/N':q'/29':p=p.28();D;q'29':e=j 1n(17,p,5);p.B(e);p=e;D;q'N':e=2a(17,p,5);p.B(e);p=e;D;q'1R':q'D':p.B(j 18(26));D;q'2C':p.B(j 2D(17,5.2p));D;q'h':p.B(j 2E(17));D;q'2F':p.B(j 2G(17));D;q'3T':p.B(j 1g('{',1,5));D;q'3U':p.B(j 1g('}',1,5));D;q'1z':1i=1;D;q'/1z':a(m.R){C j Z(\"15: 3V 2H 3f 1z.\");}D;2I:a(m.R){C j Z('15: 3W 3X: '+26+'.');}}16=M+17.V}a(s.V>16){p.B(j 1g(s.3Y(16),1i,5))}};m.y.K=9(d,h,z,H){++H;6 $T=d,2b,2c;a(5.f.3b){$T=5.1v(d,{2d:(5.f.3a&&H==1),1S:5.f.1Z},5.Y)}a(!5.f.3c){2b=5.1u;2c=h}J{2b=5.1v(5.1u,{2d:(5.f.2q),1S:1f},5.Y);2c=5.1v(h,{2d:(5.f.2q&&H==1),1S:1f},5.Y)}6 $P=b.1m({},2b,2c);6 $Q=(z!=F)?(z):({});$Q.2s=5.2s;6 19='';N(6 i=0,l=5.1M.V;i<l;++i){19+=5.1M[i].K($T,$P,$Q,H)}--H;c 19};m.y.2J=9(1T,1o){5.1u[1T]=1o};13=9(){};13.3d=9(3g){c 3g.U(/&/g,'&3Z;').U(/>/g,'&3h;').U(/</g,'&3i;').U(/\"/g,'&40;').U(/'/g,'&#39;')};13.20=9(d,1B,Y){a(d==E){c d}2B(d.2K){q 2A:6 o={};N(6 i 24 d){o[i]=13.20(d[i],1B,Y)}a(!1B.1S){a(d.41(\"2L\"))o.2L=d.2L}c o;q 42:6 o=[];N(6 i=0,l=d.V;i<l;++i){o[i]=13.20(d[i],1B,Y)}c o;q 2M:c(1B.2d)?(Y(d)):(d);q 43:a(1B.1S){a(m.R)C j Z(\"15: 44 45 23 46.\");J c F}2I:c d}};13.2z=9(2e){a(2e===E||2e===F){c{}}6 o=2e.47(/[= ]/);a(o[0]===''){o.48()}6 2N={};N(6 i=0,l=o.V;i<l;i+=2){2N[o[i]]=o[i+1]}c 2N};6 1g=9(2O,1i,14){5.2f=2O;5.3j=1i;5.1d=14};1g.y.K=9(d,h,z,H){6 2g=5.2f;a(!5.3j){6 2P=5.1d;6 $T=d;6 $P=h;6 $Q=z;2g=2g.U(/\\{(.*?)\\}/g,9(49,3k){1C{6 1D=10(3k);a(1E 1D=='9'){a(2P.f.1Z||!2P.f.2r){c''}J{1D=1D($T,$P,$Q)}}c(1D===F)?(\"\"):(2M(1D))}1F(e){a(m.R){a(e 1G 18)e.1j=\"4a\";C e;}c\"\"}})}c 2g};6 1A=9(L,1H){5.2h=1H;L.1h(/\\{#(?:J)*a (.*?)\\}/);5.3l=I.$1;5.1p=[];5.1q=[];5.1I=5.1p};1A.y.B=9(e){5.1I.B(e)};1A.y.28=9(){c 5.2h};1A.y.27=9(){5.1I=5.1q};1A.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;6 19='';1C{6 2Q=(10(5.3l))?(5.1p):(5.1q);N(6 i=0,l=2Q.V;i<l;++i){19+=2Q[i].K(d,h,z,H)}}1F(e){a(m.R||(e 1G 18))C e;}c 19};2a=9(L,1H,14){a(L.1h(/\\{#N (\\w+?) *= *(\\S+?) +4b +(\\S+?) *(?:12=(\\S+?))*\\}/)){L='{#29 2a.3m 3n '+I.$1+' 2H='+(I.$2||0)+' 1Q='+(I.$3||-1)+' 12='+(I.$4||1)+' u=$T}';c j 1n(L,1H,14)}J{C j Z('15: 4c 4d \"3o\": '+L);}};2a.3m=9(i){c i};6 1n=9(L,1H,14){5.2h=1H;5.1d=14;L.1h(/\\{#29 (.+?) 3n (\\w+?)( .+)*\\}/);5.3p=I.$1;5.x=I.$2;5.W=I.$3||E;5.W=13.2z(5.W);5.1p=[];5.1q=[];5.1I=5.1p};1n.y.B=9(e){5.1I.B(e)};1n.y.28=9(){c 5.2h};1n.y.27=9(){5.1I=5.1q};1n.y.K=9(d,h,z,H){1C{6 $T=d;6 $P=h;6 $Q=z;6 1r=10(5.3p);6 1U=[];6 1J=1E 1r;a(1J=='3q'){6 2R=[];b.1e(1r,9(k,v){1U.B(k);2R.B(v)});1r=2R}6 u=(5.W.u!==F)?(10(5.W.u)):(($T!=E)?($T):({}));6 s=1V(10(5.W.2H)||0),e;6 12=1V(10(5.W.12)||1);a(1J!='9'){e=1r.V}J{a(5.W.1Q===F||5.W.1Q===E){e=1V.4e}J{e=1V(10(5.W.1Q))+((12>0)?(1):(-1))}}6 19='';6 i,l;a(5.W.1W){6 2S=s+1V(10(5.W.1W));e=(2S>e)?(e):(2S)}a((e>s&&12>0)||(e<s&&12<0)){6 1K=0;6 3r=(1J!='9')?(4f.4g((e-s)/12)):F;6 1s,1k;N(;((12>0)?(s<e):(s>e));s+=12,++1K){1s=1U[s];a(1J!='9'){1k=1r[s]}J{1k=1r(s);a(1k===F||1k===E){D}}a((1E 1k=='9')&&(5.1d.f.1Z||!5.1d.f.2r)){1R}a((1J=='3q')&&(1s 24 2A)){1R}6 3s=u[5.x];u[5.x]=1k;u[5.x+'$3t']=s;u[5.x+'$1K']=1K;u[5.x+'$3u']=(1K==0);u[5.x+'$3v']=(s+12>=e);u[5.x+'$3w']=3r;u[5.x+'$1U']=(1s!==F&&1s.2K==2M)?(5.1d.Y(1s)):(1s);u[5.x+'$1E']=1E 1k;N(i=0,l=5.1p.V;i<l;++i){1C{19+=5.1p[i].K(u,h,z,H)}1F(2T){a(2T 1G 18){2B(2T.1j){q'1R':i=l;D;q'D':i=l;s=e;D;2I:C e;}}J{C e;}}}1l u[5.x+'$3t'];1l u[5.x+'$1K'];1l u[5.x+'$3u'];1l u[5.x+'$3v'];1l u[5.x+'$3w'];1l u[5.x+'$1U'];1l u[5.x+'$1E'];1l u[5.x];u[5.x]=3s}}J{N(i=0,l=5.1q.V;i<l;++i){19+=5.1q[i].K($T,h,z,H)}}c 19}1F(e){a(m.R||(e 1G 18))C e;c\"\"}};6 18=9(1j){5.1j=1j};18.y=Z;18.y.K=9(d){C 5;};6 2D=9(L,A){L.1h(/\\{#2C (.*?)(?: 4h=(.*?))?\\}/);5.1d=A[I.$1];a(5.1d==F){a(m.R)C j Z('15: 4i 3o 2C: '+I.$1);}5.3x=I.$2};2D.y.K=9(d,h,z,H){6 $T=d;6 $P=h;1C{c 5.1d.K(10(5.3x),h,z,H)}1F(e){a(m.R||(e 1G 18))C e;}c''};6 2E=9(L){L.1h(/\\{#h 1T=(\\w*?) 1o=(.*?)\\}/);5.x=I.$1;5.2f=I.$2};2E.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;1C{h[5.x]=10(5.2f)}1F(e){a(m.R||(e 1G 18))C e;h[5.x]=F}c''};6 2G=9(L){L.1h(/\\{#2F 4j=(.*?)\\}/);5.2U=10(I.$1);5.2V=5.2U.V;a(5.2V<=0){C j Z('15: 2F 4k 4l 4m');}5.2W=0;5.2X=-1};2G.y.K=9(d,h,z,H){6 2Y=b.O(z,'1X');a(2Y!=5.2X){5.2X=2Y;5.2W=0}6 i=5.2W++%5.2V;c 5.2U[i]};b.1a.1w=9(s,A,f){a(s.2K===m){c b(5).1e(9(){b.O(5,'2i',s);b.O(5,'1X',0)})}J{c b(5).1e(9(){b.O(5,'2i',j m(s,A,f));b.O(5,'1X',0)})}};b.1a.4n=9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c b(5).1w(s,A,f)};b.1a.4o=9(30,A,f){6 s=b('#'+30).2O();a(s==E){s=b('#'+30).3z();s=s.U(/&3i;/g,\"<\").U(/&3h;/g,\">\")}s=b.4p(s);s=s.U(/^<\\!\\[4q\\[([\\s\\S]*)\\]\\]>$/3A,'$1');s=s.U(/^<\\!--([\\s\\S]*)--\>$/3A,'$1');c b(5).1w(s,A,f)};b.1a.4r=9(){6 1W=0;b(5).1e(9(){a(b.2j(5)){++1W}});c 1W};b.1a.4s=9(){b(5).3B();c b(5).1e(9(){b.3C(5,'2i')})};b.1a.2J=9(1T,1o){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}t.2J(1T,1o)})};b.1a.31=9(d,h){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}b.O(5,'1X',b.O(5,'1X')+1);b(5).3z(t.K(d,h,5,0))})};b.1a.4t=9(1L,h,G){6 X=5;G=b.1m({1j:'4u',1Y:1O,32:1f},G);b.2Z({1t:1L,1j:G.1j,O:G.O,3E:G.3E,1Y:G.1Y,32:G.32,3F:G.3F,4v:'4w',4x:9(d){6 r=b(X).31(d,h);a(G.2k){G.2k(r)}},4y:G.4z,4A:G.4B});c 5};6 2l=9(1t,h,2m,2n,1b,G){5.3G=1t;5.1u=h;5.3H=2m;5.3I=2n;5.1b=1b;5.3J=E;5.33=G||{};6 X=5;b(1b).1e(9(){b.O(5,'34',X)});5.35()};2l.y.35=9(){5.3K();a(5.1b.V==0){c}6 X=5;b.4C(5.3G,5.3I,9(d){6 r=b(X.1b).31(d,X.1u);a(X.33.2k){X.33.2k(r)}});5.3J=4D(9(){X.35()},5.3H)};2l.y.3K=9(){5.1b=b.3L(5.1b,9(o){a(b.4E.4F){6 n=o.36;2v(n&&n!=4G){n=n.36}c n!=E}J{c o.36!=E}})};b.1a.4H=9(1t,h,2m,2n,G){c j 2l(1t,h,2m,2n,5,G)};b.1a.3B=9(){c b(5).1e(9(){6 2o=b.O(5,'34');a(2o==E){c}6 X=5;2o.1b=b.3L(2o.1b,9(o){c o!=X});b.3C(5,'34')})};b.1m({38:9(s,A,f){c j m(s,A,f)},4I:9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c j m(s,A,f)},2j:9(z){c b.O(z,'2i')},4J:9(14,O,3M){c 14.K(O,3M,F,0)},4K:9(1o){m.R=1o}})})(b)}",62,
295,"|||||this|var|||function|if|jQuery|return|||settings||param||new|||Template|||node|case||||extData|||_name|prototype|element|includes|push|throw|break|null|undefined|options|deep|RegExp|else|get|oper|se|for|data|||DEBUG_MODE|||replace|length|_option|that|f_escapeString|Error|eval||step|TemplateUtils|template|jTemplates|ss|this_op|JTException|ret|fn|objs|_templates_code|_template|each|false|TextNode|match|literalMode|type|cval|delete|extend|opFOREACH|value|_onTrue|_onFalse|fcount|ckey|url|_param|f_cloneData|setTemplate|tname|lastIndex|literal|opIF|filter|try|__tmp|typeof|catch|instanceof|par|_currentState|mode|iteration|url_|_tree|_templates|true|op|end|continue|noFunc|name|key|Number|count|jTemplateSID|async|disallow_functions|cloneData|MAIN|iter|not|in|elseif_level|op_|switchToElse|getParent|foreach|opFORFactory|_param1|_param2|escapeData|optionText|_value|__t|_parent|jTemplate|getTemplate|on_success|Updater|interval|args|updater|_includes|filter_params|runnable_functions|version|reg|_template_settings|while|indexOf|is|substring|optionToObject|Object|switch|include|Include|UserParam|cycle|Cycle|begin|default|setParam|constructor|toString|String|obj|val|__template|tab|arr|tmp|ex|_values|_length|_index|_lastSessionID|sid|ajax|elementName|processTemplate|cache|_options|jTemplateUpdater|run|parentNode|window|createTemplate||filter_data|clone_data|clone_params|escapeHTML|splitTemplates|of|txt|gt|lt|_literalMode|__1|_cond|funcIterator|as|find|_arg|object|_total|prevValue|index|first|last|total|_root|responseText|html|im|processTemplateStop|removeData|defined|dataFilter|timeout|_url|_interval|_args|timer|detectDeletedNodes|grep|parameter|exec|closed|No|inArray|ppp|elseif|ldelim|rdelim|Missing|unknown|tag|substr|amp|quot|hasOwnProperty|Array|Function|Functions|are|allowed|split|shift|__0|subtemplate|to|Operator|failed|MAX_VALUE|Math|ceil|root|Cannot|values|has|no|elements|setTemplateURL|setTemplateElement|trim|CDATA|hasTemplate|removeTemplate|processTemplateURL|GET|dataType|json|success|error|on_error|complete|on_complete|getJSON|setTimeout|browser|msie|document|processTemplateStart|createTemplateURL|processTemplateToText|jTemplatesDebugMode".split("|"),
0,{}));
