//$Id$ 
/**
 * IMPORTANT NOTE: This compressed javascript includes thirdparty javascripts 
 * listed at http://show.zoho.com/html/thirdparty.html
 * The original javascript sources are available in the above location.
 */
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(_1){for(var i=0;i<_1.length;i++){var _3=_1[i].string;var _4=_1[i].prop;this.versionSearchString=_1[i].versionSearch||_1[i].identity;if(_3){if(_3.indexOf(_1[i].subString)!=-1){return _1[i].identity;}}else{if(_4){return _1[i].identity;}}}},searchVersion:function(_5){var _6=_5.indexOf(this.versionSearchString);if(_6==-1){return;}return parseFloat(_5.substring(_6+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();var isWindows=BrowserDetect.OS.indexOf("Windows")>-1?1:0;var isMac=BrowserDetect.OS.indexOf("Mac")>-1?1:0;var isLinux=BrowserDetect.OS.indexOf("Linux")>-1?1:0;var isIE=BrowserDetect.browser=="Explorer";var isOp=BrowserDetect.browser=="Opera";var isGe=BrowserDetect.browser=="Chrome"||BrowserDetect.browser=="Firefox"||BrowserDetect.browser=="Safari"||BrowserDetect.browser=="Mozilla";var isFF=BrowserDetect.browser=="Firefox";var isSafari=BrowserDetect.browser=="Chrome"||BrowserDetect.browser=="Safari";var isGe=isSafari||BrowserDetect.browser=="Firefox"||BrowserDetect.browser=="Mozilla";BrowserDetect.getUnSupportedBrowserMsg=function(){return Utils.replaceParams(js_LangObj.NotSupportedForEditing,new Array(BrowserDetect.browser));};BrowserDetect.showUnSupportedBrowerAlert=function(){alert(BrowserDetect.getUnSupportedBrowserMsg());};var Prototype={Version:"1.4.0_rc2",emptyFunction:function(){},K:function(x){return x;}};var Class={create:function(){return function(){this.initialize.apply(this,arguments);};}};var Abstract=new Object();Object.extend=function(_8,_9){for(property in _9){_8[property]=_9[property];}return _8;};Object.inspect=function(_a){try{if(_a==undefined){return "undefined";}if(_a==null){return "null";}return _a.inspect?_a.inspect():_a.toString();}catch(e){if(e instanceof RangeError){return "...";}throw e;}};Function.prototype.bind=function(_b){var _c=this;return function(){return _c.apply(_b,arguments);};};Function.prototype.bindAsEventListener=function(_d){var _e=this;return function(_f){return _e.call(_d,_f||window.event);};};Object.extend(Number.prototype,{toColorPart:function(){var _10=this.toString(16);if(this<16){return "0"+_10;}return _10;},succ:function(){return this+1;},times:function(_11){$R(0,this,true).each(_11);return this;}});var Try={these:function(){var _12;for(var i=0;i<arguments.length;i++){var _14=arguments[i];try{_12=_14();break;}catch(e){}}return _12;}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(_15,_16){this.callback=_15;this.frequency=_16;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback();}finally{this.currentlyExecuting=false;}}}};function $(){var _17=new Array();for(var i=0;i<arguments.length;i++){var _19=arguments[i];if(typeof _19=="string"){_19=document.getElementById(_19);}if(arguments.length==1){return _19;}_17.push(_19);}return _17;}Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"");},escapeHTML:function(){var div=document.createElement("div");var _1b=document.createTextNode(this);div.appendChild(_1b);return div.innerHTML;},unescapeHTML:function(){var div=document.createElement("div");div.innerHTML=this.stripTags();return div.childNodes[0]?div.childNodes[0].nodeValue:"";},toQueryParams:function(){var _1d=this.match(/^\??(.*)$/)[1].split("&");return _1d.inject({},function(_1e,_1f){var _20=_1f.split("=");_1e[_20[0]]=_20[1];return _1e;});},toArray:function(){return this.split("");},camelize:function(){var _21=this.split("-");if(_21.length==1){return _21[0];}var _22=this.indexOf("-")==0?_21[0].charAt(0).toUpperCase()+_21[0].substring(1):_21[0];for(var i=1,len=_21.length;i<len;i++){var s=_21[i];_22+=s.charAt(0).toUpperCase()+s.substring(1);}return _22;},inspect:function(){return "'"+this.replace("\\","\\\\").replace("'","\\'")+"'";}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={each:function(_26){var _27=0;try{this._each(function(_28){try{_26(_28,_27++);}catch(e){if(e!=$continue){throw e;}}});}catch(e){if(e!=$break){throw e;}}},all:function(_29){var _2a=true;this.each(function(_2b,_2c){if(!(_2a&=(_29||Prototype.K)(_2b,_2c))){throw $break;}});return _2a;},any:function(_2d){var _2e=true;this.each(function(_2f,_30){if(_2e&=(_2d||Prototype.K)(_2f,_30)){throw $break;}});return _2e;},collect:function(_31){var _32=[];this.each(function(_33,_34){_32.push(_31(_33,_34));});return _32;},detect:function(_35){var _36;this.each(function(_37,_38){if(_35(_37,_38)){_36=_37;throw $break;}});return _36;},findAll:function(_39){var _3a=[];this.each(function(_3b,_3c){if(_39(_3b,_3c)){_3a.push(_3b);}});return _3a;},grep:function(_3d,_3e){var _3f=[];this.each(function(_40,_41){var _42=_40.toString();if(_42.match(_3d)){_3f.push((_3e||Prototype.K)(_40,_41));}});return _3f;},include:function(_43){var _44=false;this.each(function(_45){if(_45==_43){_44=true;throw $break;}});return _44;},inject:function(_46,_47){this.each(function(_48,_49){_46=_47(_46,_48,_49);});return _46;},invoke:function(_4a){var _4b=$A(arguments).slice(1);return this.collect(function(_4c){return _4c[_4a].apply(_4c,_4b);});},max:function(_4d){var _4e;this.each(function(_4f,_50){_4f=(_4d||Prototype.K)(_4f,_50);if(_4f>=(_4e||_4f)){_4e=_4f;}});return _4e;},min:function(_51){var _52;this.each(function(_53,_54){_53=(_51||Prototype.K)(_53,_54);if(_53<=(_52||_53)){_52=_53;}});return _52;},partition:function(_55){var _56=[],_57=[];this.each(function(_58,_59){((_55||Prototype.K)(_58,_59)?_56:_57).push(_58);});return [_56,_57];},pluck:function(_5a){var _5b=[];this.each(function(_5c,_5d){_5b.push(_5c[_5a]);});return _5b;},reject:function(_5e){var _5f=[];this.each(function(_60,_61){if(!_5e(_60,_61)){_5f.push(_60);}});return _5f;},sortBy:function(_62){return this.collect(function(_63,_64){return {value:_63,criteria:_62(_63,_64)};}).sort(function(_65,_66){var a=_65.criteria,b=_66.criteria;return a<b?-1:a>b?1:0;}).pluck("value");},toArray:function(){return this.collect(Prototype.K);},zip:function(){var _69=Prototype.K,_6a=$A(arguments);if(typeof _6a.last()=="function"){_69=_6a.pop();}var _6b=[this].concat(_6a).map($A);return this.map(function(_6c,_6d){_69(_6c=_6b.pluck(_6d));return _6c;});},inspect:function(){return "#<Enumerable:"+this.toArray().inspect()+">";}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(_6e){if(_6e.toArray){return _6e.toArray();}else{var _6f=[];for(var i=0;i<_6e.length;i++){_6f.push(_6e[i]);}return _6f;}};Object.extend(Array.prototype,Enumerable);Object.extend(Array.prototype,{_each:function(_71){for(var i=0;i<this.length;i++){_71(this[i]);}},first:function(){return this[0];},last:function(){return this[this.length-1];},compact:function(){return this.select(function(_73){return _73!=undefined||_73!=null;});},flatten:function(){return this.inject([],function(_74,_75){return _74.concat(_75.constructor==Array?_75.flatten():[_75]);});},without:function(){var _76=$A(arguments);return this.select(function(_77){return !_76.include(_77);});},indexOf:function(_78){for(var i=0;i<this.length;i++){if(this[i]==_78){return i;}}return false;},reverse:function(){var _7a=[];for(var i=this.length;i>0;i--){_7a.push(this[i-1]);}return _7a;},inspect:function(){return "["+this.map(Object.inspect).join(", ")+"]";}});var Hash={_each:function(_7c){for(key in this){var _7d=this[key];if(typeof _7d=="function"){continue;}var _7e=[key,_7d];_7e.key=key;_7e.value=_7d;_7c(_7e);}},keys:function(){return this.pluck("key");},values:function(){return this.pluck("value");},merge:function(_7f){return $H(_7f).inject($H(this),function(_80,_81){_80[_81.key]=_81.value;return _80;});},toQueryString:function(){return this.map(function(_82){return _82.map(encodeURIComponent).join("=");}).join("&");},inspect:function(){return "#<Hash:{"+this.map(function(_83){return _83.map(Object.inspect).join(": ");}).join(", ")+"}>";}};function $H(_84){var _85=Object.extend({},_84||{});Object.extend(_85,Enumerable);Object.extend(_85,Hash);return _85;}var Range=Class.create();Object.extend(Range.prototype,Enumerable);Object.extend(Range.prototype,{initialize:function(_86,end,_88){this.start=_86;this.end=end;this.exclusive=_88;},_each:function(_89){var _8a=this.start;do{_89(_8a);_8a=_8a.succ();}while(this.include(_8a));},include:function(_8b){if(_8b<this.start){return false;}if(this.exclusive){return _8b<this.end;}return _8b<=this.end;}});var $R=function(_8c,end,_8e){return new Range(_8c,end,_8e);};var Ajax={getTransport:function(){return Try.these(function(){return new ActiveXObject("Msxml2.XMLHTTP");},function(){return new ActiveXObject("Microsoft.XMLHTTP");},function(){return new XMLHttpRequest();})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(_8f){this.responders._each(_8f);},register:function(_90){if(!this.include(_90)){this.responders.push(_90);}},unregister:function(_91){this.responders=this.responders.without(_91);},dispatch:function(_92,_93,_94,_95){this.each(function(_96){if(_96[_92]&&typeof _96[_92]=="function"){try{_96[_92].apply(_96,[_93,_94,_95]);}catch(e){}}});}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++;},onComplete:function(){Ajax.activeRequestCount--;}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(_97){this.options={method:"post",asynchronous:true,parameters:""};Object.extend(this.options,_97||{});},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300);},responseIsFailure:function(){return !this.responseIsSuccess();}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(url,_99){this.transport=Ajax.getTransport();this.setOptions(_99);this.request(url);},request:function(url){var _9b=this.options.parameters||"";try{this.url=url;if(this.options.method=="get"&&_9b.length>0){this.url+=(this.url.match(/\?/)?"&":"?")+_9b;}Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method,this.url,this.options.asynchronous);if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);setTimeout((function(){this.respondToReadyState(1);}).bind(this),10);}this.setRequestHeaders();var _9c=this.options.postBody?this.options.postBody:_9b;this.transport.send(this.options.method=="post"?_9c:null);}catch(e){(this.options.onException||Prototype.emptyFunction)(this,e);Ajax.Responders.dispatch("onException",this,e);}},setRequestHeaders:function(){var _9d=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version];if(this.options.method=="post"){_9d.push("Content-type","application/x-www-form-urlencoded;charset=UTF-8");if(this.transport.overrideMimeType){_9d.push("Connection","close");}}if(this.options.requestHeaders){_9d.push.apply(_9d,this.options.requestHeaders);}for(var i=0;i<_9d.length;i+=2){this.transport.setRequestHeader(_9d[i],_9d[i+1]);}},onStateChange:function(){var _9f=this.transport.readyState;if(_9f!=1){this.respondToReadyState(this.transport.readyState);}},evalJSON:function(){try{var _a0=this.transport.getResponseHeader("X-JSON"),_a1;_a1=eval(_a0);return _a1;}catch(e){}},respondToReadyState:function(_a2){var _a3=Ajax.Request.Events[_a2];var _a4=this.transport,_a5=this.evalJSON();if(_a3=="Complete"){(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(_a4,_a5);}(this.options["on"+_a3]||Prototype.emptyFunction)(_a4,_a5);Ajax.Responders.dispatch("on"+_a3,this,_a4,_a5);if(_a3=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction;}}});Ajax.Updater=Class.create();Ajax.Updater.ScriptFragment="(?:<script.*?>)((\n|.)*?)(?:</script>)";Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(_a6,url,_a8){this.containers={success:_a6.success?$(_a6.success):$(_a6),failure:_a6.failure?$(_a6.failure):(_a6.success?null:$(_a6))};this.transport=Ajax.getTransport();this.setOptions(_a8);var _a9=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(_aa,_ab){this.updateContent();_a9(_aa,_ab);}).bind(this);this.request(url);},updateContent:function(){var _ac=this.responseIsSuccess()?this.containers.success:this.containers.failure;var _ad=new RegExp(Ajax.Updater.ScriptFragment,"img");var _ae=this.transport.responseText.replace(_ad,"");var _af=this.transport.responseText.match(_ad);if(_ac){if(this.options.insertion){new this.options.insertion(_ac,_ae);}else{_ac.innerHTML=_ae;}}if(this.responseIsSuccess()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10);}}if(this.options.evalScripts&&_af){_ad=new RegExp(Ajax.Updater.ScriptFragment,"im");setTimeout((function(){for(var i=0;i<_af.length;i++){eval(_af[i].match(_ad)[1]);}}).bind(this),10);}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(_b1,url,_b3){this.setOptions(_b3);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=_b1;this.url=url;this.start();},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent();},stop:function(){this.updater.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments);},updateComplete:function(_b4){if(this.options.decay){this.decay=(_b4.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=_b4.responseText;}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000);},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);}});document.getElementsByClassName=function(_b5,_b6){var _b7=($(_b6)||document.body).getElementsByTagName("*");return $A(_b7).inject([],function(_b8,_b9){if(_b9.className&&typeof (_b9.className)=="string"&&_b9.className.match(new RegExp("(^|\\s)"+_b5+"(\\s|$)"))){_b8.push(_b9);}return _b8;});};if(!window.Element){var Element=new Object();}Object.extend(Element,{visible:function(_ba){return $(_ba).style.display!="none";},toggle:function(){for(var i=0;i<arguments.length;i++){var _bc=$(arguments[i]);Element[Element.visible(_bc)?"hide":"show"](_bc);}},hide:function(){for(var i=0;i<arguments.length;i++){var _be=$(arguments[i]);_be.style.display="none";}},show:function(){for(var i=0;i<arguments.length;i++){var _c0=$(arguments[i]);_c0.style.display="";}},remove:function(_c1){_c1=$(_c1);_c1.parentNode.removeChild(_c1);},getHeight:function(_c2){_c2=$(_c2);return _c2.offsetHeight;},classNames:function(_c3){return new Element.ClassNames(_c3);},hasClassName:function(_c4,_c5){if(!(_c4=$(_c4))){return;}return Element.classNames(_c4).include(_c5);},addClassName:function(_c6,_c7){if(!(_c6=$(_c6))){return;}return Element.classNames(_c6).add(_c7);},removeClassName:function(_c8,_c9){if(!(_c8=$(_c8))){return;}return Element.classNames(_c8).remove(_c9);},cleanWhitespace:function(_ca){_ca=$(_ca);for(var i=0;i<_ca.childNodes.length;i++){var _cc=_ca.childNodes[i];if(_cc.nodeType==3&&!/\S/.test(_cc.nodeValue)){Element.remove(_cc);}}},empty:function(_cd){return $(_cd).innerHTML.match(/^\s*$/);},scrollTo:function(_ce){_ce=$(_ce);var x=_ce.x?_ce.x:_ce.offsetLeft,y=_ce.y?_ce.y:_ce.offsetTop;window.scrollTo(x,y);},getStyle:function(_d1,_d2){_d1=$(_d1);var _d3=_d1.style[_d2.camelize()];if(!_d3){if(document.defaultView&&document.defaultView.getComputedStyle){var css=document.defaultView.getComputedStyle(_d1,null);_d3=css?css.getPropertyValue(_d2):null;}else{if(_d1.currentStyle){_d3=_d1.currentStyle[_d2.camelize()];}}}if(window.opera&&["left","top","right","bottom"].include(_d2)){if(Element.getStyle(_d1,"position")=="static"){_d3="auto";}}return _d3=="auto"?null:_d3;},getDimensions:function(_d5){_d5=$(_d5);if(Element.getStyle(_d5,"display")!="none"){return {width:_d5.offsetWidth,height:_d5.offsetHeight};}var els=_d5.style;var _d7=els.visibility;var _d8=els.position;els.visibility="hidden";els.position="absolute";els.display="";var _d9=_d5.clientWidth;var _da=_d5.clientHeight;els.display="none";els.position=_d8;els.visibility=_d7;return {width:_d9,height:_da};},makePositioned:function(_db){_db=$(_db);var pos=Element.getStyle(_db,"position");if(pos=="static"||!pos){_db._madePositioned=true;_db.style.position="relative";if(window.opera){_db.style.top=0;_db.style.left=0;}}},undoPositioned:function(_dd){_dd=$(_dd);if(_dd._madePositioned){_dd._madePositioned=undefined;_dd.style.position=_dd.style.top=_dd.style.left=_dd.style.bottom=_dd.style.right="";}},makeClipping:function(_de){_de=$(_de);if(_de._overflow){return;}_de._overflow=_de.style.overflow;if((Element.getStyle(_de,"overflow")||"visible")!="hidden"){_de.style.overflow="hidden";}},undoClipping:function(_df){_df=$(_df);if(_df._overflow){return;}_df.style.overflow=_df._overflow;_df._overflow=undefined;}});var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(_e0){this.adjacency=_e0;};Abstract.Insertion.prototype={initialize:function(_e1,_e2){this.element=$(_e1);this.content=_e2;if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content);}catch(e){if(this.element.tagName.toLowerCase()=="tbody"){this.insertContent(this.contentFromAnonymousTable());}else{throw e;}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange();}this.insertContent([this.range.createContextualFragment(this.content)]);}},contentFromAnonymousTable:function(){var div=document.createElement("div");div.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(div.childNodes[0].childNodes[0].childNodes);}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element);},insertContent:function(_e4){_e4.each((function(_e5){this.element.parentNode.insertBefore(_e5,this.element);}).bind(this));}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true);},insertContent:function(_e6){_e6.reverse().each((function(_e7){this.element.insertBefore(_e7,this.element.firstChild);}).bind(this));}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element);},insertContent:function(_e8){_e8.each((function(_e9){this.element.appendChild(_e9);}).bind(this));}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element);},insertContent:function(_ea){_ea.each((function(_eb){this.element.parentNode.insertBefore(_eb,this.element.nextSibling);}).bind(this));}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(_ec){this.element=$(_ec);},_each:function(_ed){this.element.className.split(/\s+/).select(function(_ee){return _ee.length>0;})._each(_ed);},set:function(_ef){this.element.className=_ef;},add:function(_f0){if(this.include(_f0)){return;}this.set(this.toArray().concat(_f0).join(" "));},remove:function(_f1){if(!this.include(_f1)){return;}this.set(this.select(function(_f2){return _f2!=_f1;}));},toString:function(){return this.toArray().join(" ");}};Object.extend(Element.ClassNames.prototype,Enumerable);var Field={clear:function(){for(var i=0;i<arguments.length;i++){$(arguments[i]).value="";}},focus:function(_f4){$(_f4).focus();},present:function(){for(var i=0;i<arguments.length;i++){if($(arguments[i]).value==""){return false;}}return true;},select:function(_f6){$(_f6).select();},activate:function(_f7){$(_f7).focus();$(_f7).select();}};var Form={serialize:function(_f8){var _f9=Form.getElements($(_f8));var _fa=new Array();for(var i=0;i<_f9.length;i++){var _fc=Form.Element.serialize(_f9[i]);if(_fc){_fa.push(_fc);}}return _fa.join("&");},getElements:function(_fd){_fd=$(_fd);var _fe=new Array();for(tagName in Form.Element.Serializers){var _ff=_fd.getElementsByTagName(tagName);for(var j=0;j<_ff.length;j++){_fe.push(_ff[j]);}}return _fe;},getInputs:function(form,_102,name){form=$(form);var _104=form.getElementsByTagName("input");if(!_102&&!name){return _104;}var _105=new Array();for(var i=0;i<_104.length;i++){var _107=_104[i];if((_102&&_107.type!=_102)||(name&&_107.name!=name)){continue;}_105.push(_107);}return _105;},disable:function(form){var _109=Form.getElements(form);for(var i=0;i<_109.length;i++){var _10b=_109[i];_10b.blur();_10b.disabled="true";}},enable:function(form){var _10d=Form.getElements(form);for(var i=0;i<_10d.length;i++){var _10f=_10d[i];_10f.disabled="";}},focusFirstElement:function(form){form=$(form);var _111=Form.getElements(form);for(var i=0;i<_111.length;i++){var _113=_111[i];if(_113.type!="hidden"&&!_113.disabled){Field.activate(_113);break;}}},reset:function(form){$(form).reset();}};Form.Element={serialize:function(_115){_115=$(_115);var _116=_115.tagName.toLowerCase();var _117=Form.Element.Serializers[_116](_115);if(_117){return encodeURIComponent(_117[0])+"="+encodeURIComponent(_117[1]);}},getValue:function(_118){_118=$(_118);var _119=_118.tagName.toLowerCase();var _11a=Form.Element.Serializers[_119](_118);if(_11a){return _11a[1];}}};Form.Element.Serializers={input:function(_11b){switch(_11b.type.toLowerCase()){case "submit":case "hidden":case "password":case "text":return Form.Element.Serializers.textarea(_11b);case "checkbox":case "radio":return Form.Element.Serializers.inputSelector(_11b);}return false;},inputSelector:function(_11c){if(_11c.checked){return [_11c.name,_11c.value];}},textarea:function(_11d){return [_11d.name,_11d.value];},select:function(_11e){return Form.Element.Serializers[_11e.type=="select-one"?"selectOne":"selectMany"](_11e);},selectOne:function(_11f){var _120="",opt,_122=_11f.selectedIndex;if(_122>=0){opt=_11f.options[_122];_120=opt.value;if(!_120&&!("value" in opt)){_120=opt.text;}}return [_11f.name,_120];},selectMany:function(_123){var _124=new Array();for(var i=0;i<_123.length;i++){var opt=_123.options[i];if(opt.selected){var _127=opt.value;if(!_127&&!("value" in opt)){_127=opt.text;}_124.push(_127);}}return [_123.name,_124];}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(_128,_129,_12a){this.frequency=_129;this.element=$(_128);this.callback=_12a;this.lastValue=this.getValue();this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){var _12b=this.getValue();if(this.lastValue!=_12b){this.callback(this.element,_12b);this.lastValue=_12b;}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element);}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element);}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(_12c,_12d){this.element=$(_12c);this.callback=_12d;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks();}else{this.registerCallback(this.element);}},onElementEvent:function(){var _12e=this.getValue();if(this.lastValue!=_12e){this.callback(this.element,_12e);this.lastValue=_12e;}},registerFormCallbacks:function(){var _12f=Form.getElements(this.element);for(var i=0;i<_12f.length;i++){this.registerCallback(_12f[i]);}},registerCallback:function(_131){if(_131.type){switch(_131.type.toLowerCase()){case "checkbox":case "radio":_131.target=this;_131.prev_onclick=_131.onclick||Prototype.emptyFunction;_131.onclick=function(){this.prev_onclick();this.target.onElementEvent();};break;case "password":case "text":case "textarea":case "select-one":case "select-multiple":_131.target=this;_131.prev_onchange=_131.onchange||Prototype.emptyFunction;_131.onchange=function(){this.prev_onchange();this.target.onElementEvent();};break;}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element);}});if(!window.Event){var Event=new Object();}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(_132){return _132.target||_132.srcElement;},isLeftClick:function(_133){return (((_133.which)&&(_133.which==1))||((_133.button)&&(_133.button==1)));},pointerX:function(_134){return _134.pageX||(_134.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_135){return _135.pageY||(_135.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},stop:function(_136){if(_136.preventDefault){_136.preventDefault();_136.stopPropagation();}else{_136.returnValue=false;_136.cancelBubble=true;}},findElement:function(_137,_138){var _139=Event.element(_137);while(_139.parentNode&&(!_139.tagName||(_139.tagName.toUpperCase()!=_138.toUpperCase()))){_139=_139.parentNode;}return _139;},observers:false,_observeAndCache:function(_13a,name,_13c,_13d){if(!this.observers){this.observers=[];}if(_13a.addEventListener){this.observers.push([_13a,name,_13c,_13d]);_13a.addEventListener(name,_13c,_13d);}else{if(_13a.attachEvent){this.observers.push([_13a,name,_13c,_13d]);_13a.attachEvent("on"+name,_13c);}}},unloadCache:function(){if(!Event.observers){return;}for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null;}Event.observers=false;},observe:function(_13f,name,_141,_142){var _13f=$(_13f);_142=_142||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_13f.attachEvent)){name="keydown";}this._observeAndCache(_13f,name,_141,_142);},stopObserving:function(_143,name,_145,_146){var _143=$(_143);_146=_146||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_143.detachEvent)){name="keydown";}if(_143.removeEventListener){_143.removeEventListener(name,_145,_146);}else{if(_143.detachEvent){_143.detachEvent("on"+name,_145);}}}});Event.observe(window,"unload",Event.unloadCache,false);var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;},realOffset:function(_147){var _148=0,_149=0;do{_148+=_147.scrollTop||0;_149+=_147.scrollLeft||0;_147=_147.parentNode;}while(_147);return [_149,_148];},cumulativeOffset:function(_14a){var _14b=0,_14c=0;do{_14b+=_14a.offsetTop||0;_14c+=_14a.offsetLeft||0;_14a=_14a.offsetParent;}while(_14a);return [_14c,_14b];},positionedOffset:function(_14d){var _14e=0,_14f=0;do{_14e+=_14d.offsetTop||0;_14f+=_14d.offsetLeft||0;_14d=_14d.offsetParent;if(_14d){p=Element.getStyle(_14d,"position");if(p=="relative"||p=="absolute"){break;}}}while(_14d);return [_14f,_14e];},offsetParent:function(_150){if(_150.offsetParent){return _150.offsetParent;}if(_150==document.body){return _150;}while((_150=_150.parentNode)&&_150!=document.body){if(Element.getStyle(_150,"position")!="static"){return _150;}}return document.body;},within:function(_151,x,y){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(_151,x,y);}this.xcomp=x;this.ycomp=y;this.offset=this.cumulativeOffset(_151);return (y>=this.offset[1]&&y<this.offset[1]+_151.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_151.offsetWidth);},withinIncludingScrolloffsets:function(_154,x,y){var _157=this.realOffset(_154);this.xcomp=x+_157[0]-this.deltaX;this.ycomp=y+_157[1]-this.deltaY;this.offset=this.cumulativeOffset(_154);return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_154.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_154.offsetWidth);},overlap:function(mode,_159){if(!mode){return 0;}if(mode=="vertical"){return ((this.offset[1]+_159.offsetHeight)-this.ycomp)/_159.offsetHeight;}if(mode=="horizontal"){return ((this.offset[0]+_159.offsetWidth)-this.xcomp)/_159.offsetWidth;}},clone:function(_15a,_15b){_15a=$(_15a);_15b=$(_15b);_15b.style.position="absolute";var _15c=this.cumulativeOffset(_15a);_15b.style.top=_15c[1]+"px";_15b.style.left=_15c[0]+"px";_15b.style.width=_15a.offsetWidth+"px";_15b.style.height=_15a.offsetHeight+"px";},page:function(_15d){var _15e=0,_15f=0;var _160=_15d;do{_15e+=_160.offsetTop||0;_15f+=_160.offsetLeft||0;if(_160.offsetParent==document.body){if(Element.getStyle(_160,"position")=="absolute"){break;}}}while(_160=_160.offsetParent);_160=_15d;do{_15e-=_160.scrollTop||0;_15f-=_160.scrollLeft||0;}while(_160=_160.parentNode);return [_15f,_15e];},clone:function(_161,_162){var _163=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});_161=$(_161);var p=Position.page(_161);_162=$(_162);var _165=[0,0];var _166=null;if(Element.getStyle(_162,"position")=="absolute"){_166=Position.offsetParent(_162);_165=Position.page(_166);}if(_166==document.body){_165[0]-=document.body.offsetLeft;_165[1]-=document.body.offsetTop;}if(_163.setLeft){_162.style.left=(p[0]-_165[0]+_163.offsetLeft)+"px";}if(_163.setTop){_162.style.top=(p[1]-_165[1]+_163.offsetTop)+"px";}if(_163.setWidth){_162.style.width=_161.offsetWidth+"px";}if(_163.setHeight){_162.style.height=_161.offsetHeight+"px";}},absolutize:function(_167){_167=$(_167);if(_167.style.position=="absolute"){return;}Position.prepare();var _168=Position.positionedOffset(_167);var top=_168[1];var left=_168[0];var _16b=_167.clientWidth;var _16c=_167.clientHeight;_167._originalLeft=left-parseFloat(_167.style.left||0);_167._originalTop=top-parseFloat(_167.style.top||0);_167._originalWidth=_167.style.width;_167._originalHeight=_167.style.height;_167.style.position="absolute";_167.style.top=top+"px";_167.style.left=left+"px";_167.style.width=_16b+"px";_167.style.height=_16c+"px";},relativize:function(_16d){_16d=$(_16d);if(_16d.style.position=="relative"){return;}Position.prepare();_16d.style.position="relative";var top=parseFloat(_16d.style.top||0)-(_16d._originalTop||0);var left=parseFloat(_16d.style.left||0)-(_16d._originalLeft||0);_16d.style.top=top+"px";_16d.style.left=left+"px";_16d.style.height=_16d._originalHeight;_16d.style.width=_16d._originalWidth;}};String.prototype.endsWith=function(_170){var _171=this.lastIndexOf(_170);if(_171>=0){var _172=_170.length+_171;if(_172===this.length){return true;}}return false;};String.prototype.startsWith=function(str){var ind=this.indexOf(str);if(ind==0){return true;}return false;};String.prototype.trim=function(){a=this.replace(/^\s+/,"");return a.replace(/\s+$/,"");};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(_175){var _176=0,_177=0;do{_176+=_175.offsetTop||0;_177+=_175.offsetLeft||0;if(_175.offsetParent==document.body){if(Element.getStyle(_175,"position")=="absolute"){break;}}_175=_175.offsetParent;}while(_175);return [_177,_176];};}function Animation(){}Animation.isSlideShowMode=false;Animation.slideTransitions={"2":"No Transition","100":"Random Transition","400":"Cover Left","401":"Cover Up","402":"Cover Right","403":"Cover Down","405":"Cover Left-Up","406":"Cover Left-Down","407":"Cover Right-Up","408":"Cover Right-Down","700":"UnCover Left","701":"UnCover Up","702":"UnCover Right","703":"UnCover Down","705":"UnCover Left-Up","704":"UnCover Left-Down","706":"UnCover Right-Up","708":"UnCover Right-Down","1000":"Wipe Left","1001":"Wipe Up","1002":"Wipe Right","1003":"Wipe Down","1100":"Box Out","1101":"Box In","1300":"Split Horizontal Out","1301":"Split Horizontal In","1302":"Split Vertical Out","1303":"Split Vertical In","2000":"Push Left","2001":"Push Up","2002":"Push Right","2003":"Push Down","2300":"Fade Smoothly"};Animation.slideTransitionTypes={"400":"cover","700":"unCover","1000":"wipe","2000":"push","1100":"box","1300":"split","2300":"fade"};Animation.defaultTransitionType="2300";Animation.FAST=2;Animation.MEDIUM=1;Animation.SLOW=0;Animation.getObjSize=function(obj){var sT=obj;var cnt=0;for(var i in sT){cnt++;}return cnt;};Animation.slideTransitionSpeed={"2":1000,"1":1500,"0":2500};Animation.DEFAULT_STEP=15.00001;Animation.STEP=20.00001;Animation.initiator=undefined;Animation.init=function(_17c,_17d){Animation.initiator=_17c;Animation.isSlideShowMode=_17d;if(!_17d){Animation.fillSlideTransitionTypes();Animation.CustomAnimation.fillAnimationTypes();$("aniPreview").checked=Utils.getSkipValue("ANIMATION_PREVIEW_STATUS");$("transPreview").checked=Utils.getSkipValue("TRANSITION_PREVIEW_STATUS");}};Animation.disableComponents=function(_17e){if(_17e==undefined){_17e=true;}var eles=$("animationdiv").getElementsByTagName("*");for(var i=0;i<eles.length;i++){eles[i].disabled=_17e;}if(!_17e&&$("animateList").selectedIndex==-1){$("animationType").disabled=true;}};Animation.setPreviewStatus=function(ele){if(!ele.checked){if(ele.id=="aniPreview"){Animation.CustomAnimation._stopPreview();}else{Animation.stopTransition();}}if(!isRemoteApiMode){var str=((ele.id=="aniPreview")?"ANIMATION":"TRANSITION")+"_PREVIEW_STATUS";Utils.updateSkipCheck(str,ele.checked);}};Animation.fillSlideTransitionTypes=function(){var _183=$("transitionTypes");var _184=_183.options;if(_184.length==0){var sT=Animation.slideTransitions;for(i in sT){_184[_184.length]=new Option(js_LangObj["TRANSITION."+Animation.getTransitionMethodName(sT[i]).toUpperCase()],i);}_184[0].selected=true;var _186=$("transitionSpeed");_186.options[0].selected=true;_186.onchange=_183.onchange=function(e){Animation.setSlideTransition(_184[_183.selectedIndex].value);};toggleSBItem(20);}};Animation.getOptionForValue=function(_188,_189,_18a){var _18b=_188.options;for(var i=0;i<_18b.length;i++){var opt=_18b[i];if(opt.value==_189){return opt;}}return ((_18a)?_18b[0]:undefined);};Animation.selectTransitionSet=function(type,_18f){Animation.getOptionForValue($("transitionTypes"),type,true).selected=true;Animation.getOptionForValue($("transitionSpeed"),_18f,true).selected=true;};Animation.randomTransition=function(_190,_191){return Animation.doSlideTransition(_190,Animation.getRandomTransitionCode(),_191);};Animation.getRandomTransitionCode=function(){var cnt=Animation.getObjSize(Animation.slideTransitions)-1;var r=parseInt(Math.random()*cnt);cnt=0;var sT=Animation.slideTransitions;for(var i in sT){if(cnt==r&&i!="100"&&i!="2"){return i;}cnt++;}};Animation.renderSlide=function(div,_197){var p=Animation.initiator;var _199=p.slidesInfo;if(!_197){_197=p.currentSlide;}ShowUtils.showSlide(_199.length,div,_197,p.titleLayout,p.slideLayout,p.titleVector,p.slideVector,false);};Animation.getDuplicateDiv=function(div){var d=document.createElement("div");var oW=div.offsetWidth;var oH=div.offsetHeight;with(d.style){width=oW+"px";height=oH+"px";left=top="0px";position="absolute";backgroundColor="#fff";}return d;};Animation.getTransitionTypeForCode=function(code){var _19f=Animation.slideTransitions[code];if(_19f){_19f=Animation.getTransitionMethodName(_19f);}return _19f;};Animation.getTransitionMethodName=function(_1a0){_1a0=_1a0.replace(/ /g,"").replace(/-/g,"");_1a0=_1a0.substring(0,1).toLowerCase()+_1a0.substring(1,_1a0.length);return _1a0;};Animation.getTransitionFn=function(code){return Animation[Animation.getTransitionTypeForCode(code)];};Animation.getTransitionPresetFn=function(code){code=code.substring(0,code.length-1)+"0";return Animation[Animation.slideTransitionTypes[code]];};Animation.getTransitionCallBackFn=function(code){if(code==-1||code==2){return undefined;}code=code.substring(0,code.length-1)+"0";return Animation[Animation.slideTransitionTypes[code]+"CallBack"];};Animation.timerID=undefined;clearTimer=function(id){id=(id)?id:"timerID";if(id){clearTimeout(Animation[id]);Animation[id]=undefined;}};setTimer=function(fn,time,id){if(!time){time=Animation.timerSpeed;}clearTimer(id);if(!id){Animation.timerID=setTimeout(fn,time);}else{Animation[id]=setTimeout(fn,time);}};Animation.clone=function(div){var html=div.outerHTML;if(!html){return div.cloneNode(true);}else{var cdiv=div.ownerDocument.createElement("div");cdiv.innerHTML=html;return cdiv.childNodes[0];}};Animation.getClip=function(top,_1ac,_1ad,left){return "rect("+top+"px, "+_1ac+"px, "+_1ad+"px, "+left+"px)";};Animation.getClipForDim=function(dim){return "rect("+dim.TOP+"px, "+dim.RIGHT+"px, "+dim.BOTTOM+"px, "+dim.LEFT+"px)";};Animation.getClipDim=function(div,_1b1){return {"TOP":0,"LEFT":0,"RIGHT":div.offsetWidth,"BOTTOM":div.offsetHeight,"LIMIT":_1b1};};Animation.currentTransitionType=-1;Animation.setSlideTransition=function(_1b2){var _1b3=$("transitionSpeed");var _1b4=_1b3.options[_1b3.selectedIndex].value;var div=$("slidediv");Animation.initiator.setSlideTransitionValues(_1b2,_1b4);if($("transPreview").checked){Animation.doSlideTransition(div,_1b2,_1b4);}};Animation.applyCurrentTransitionToAllSlides=function(){var _1b6=$("transitionSpeed");var _1b7=_1b6.options[_1b6.selectedIndex].value;var _1b8=$("transitionTypes");var _1b9=_1b8.options[_1b8.selectedIndex];var _1ba=_1b9.value;var msg=Utils.replaceParams(js_LangObj["TRANSITION.APPLIEDTOALL"],[_1b9.text]);Animation.applyTransitionToAllSlides(_1ba,_1b7,undefined,msg);};Animation.applyTransitionToAllSlides=function(_1bc,_1bd,_1be,msg){if(!_1be){presenter.takeSnapshot(undefined,UndoRedo.SLIDE_TRANSITION_CHANGED_FOR_ALL_SLIDES);}Animation.initiator.slidesInfo.each(function(_1c0){Animation.initiator.setSlideTransitionValues(_1bc,_1bd,_1c0,true,true);});var cb=function(){presenter.SLIDE_TRANSITION_CHANGE_ARRAY.splice(0,presenter.SLIDE_TRANSITION_CHANGE_ARRAY.splice.length);presenter.save(false,true);if(msg){var f=function f(){Utils.statMsg(msg);};setTimeout(f,1500);}};presenter.saveTransitionValues(_1bc,_1bd,undefined,cb);ShareCollaboration.sendShareMessage("transall",undefined,_1bc+":"+_1bd);};Animation.getSlideDiv=function(div,_1c4){var divs=div.getElementsByTagName("div");var d=undefined;for(var i=0;i<divs.length;i++){d=divs[i];if(d.id=="slidediv"){return d;}}if(_1c4){return undefined;}d=document.createElement("div");d.id="slidediv";with(d.style){width=div.offsetWidth;height=div.offsetHeight;position="absolute";backgroundColor="black";}div.appendChild(d);return d;};Animation.isTransitionInProgress=function(){return (Animation.currentTransitionType!=-1&&Animation.currentTransitionType!=2);};Animation.calculateTransitionStep=function(){var _1c8=640;var _1c9=Animation.container.offsetHeight;Animation.STEP=Animation.DEFAULT_STEP*(_1c9/_1c8);};Animation.getCurrentTime=function(){return (new Date()).getTime();};Animation.transitionStartTime=undefined;Animation.timerSpeed=30;Animation.doSlideTransition=function(rdiv,_1cb,_1cc){Animation.container=rdiv;clearTimer("CB");if(_1cb==100){_1cb=Animation.getRandomTransitionCode();}if(Animation.currentTransitionType!=-1||Animation.currentTransitionType!=100){var rid=Animation.container.id;Animation.stopTransition();if(!Animation.container.parentNode){Animation.container=$(rid);rdiv=Animation.container;}}var div=(Animation.isSlideShowMode)?Animation.getSlideDiv(rdiv):rdiv;with(div.style){left=top=0;backgroundColor=(div.childNodes.length==0)?"#000":"#fff";}try{Animation.getTransitionPresetFn(_1cb+"")(div);}catch(ex){}var _1cf=Animation.slideTransitionSpeed[_1cc];var fn=Animation.getTransitionFn(_1cb);if(!fn){return Animation.doSlideTransition(rdiv,Animation.defaultTransitionType,_1cc);}Animation.currentTransitionType=_1cb;Animation.transitionStartTime=Animation.getCurrentTime();fn(div,_1cf);return true;};Animation.stopTransition=function(){if(Animation.currentTransitionType==-1){return false;}clearTimer();var f=Animation.getTransitionCallBackFn(Animation.currentTransitionType+"");if(f){f(((Animation.isSlideShowMode)?Animation.animateDiv:Animation.container),true);}return true;};Animation.noTransition=function(div){Animation.stopTransition();with(div.style){top=left="0px";}if(Animation.isSlideShowMode){Animation.renderSlide(Animation.container);}Animation.commonCallBack(div);};Animation.commonCallBack=function(div){Animation.currentTransitionType=-1;if(Animation.isSlideShowMode){Animation.CustomAnimation.backupOriginalSlideContent();Animation.CustomAnimation.populateAnimatableObjects();}};Animation.cover=function(div){if(Animation.isSlideShowMode){var d=Animation.getDuplicateDiv(div);var p=Animation.initiator;slide=p.currentSlide;div.parentNode.appendChild(d);if(slide){Animation.renderSlide(d);}else{d.style.backgroundColor="#000";}d.style.zIndex="1000000";Animation.animateDiv=d;}};Animation.coverCallBack=function(div){if(Animation.isSlideShowMode){Animation.pushCallBack(div);}else{div.style.left=div.style.top="0px";}Animation.commonCallBack();};Animation.coverLeft=function(xdiv,tm,max){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.left=(-1*(val-max))+"px";setTimer(function(){Animation.coverLeft(div,tm,max);});}else{div.style.left="0px";Animation.coverCallBack(xdiv);}};Animation.coverRight=function(xdiv,tm,max){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.left=(val-max)+"px";setTimer(function(){Animation.coverRight(div,tm,max);});}else{div.style.left="0px";Animation.coverCallBack(xdiv);}};Animation.coverUp=function(xdiv,tm,max){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.top=(max-val)+"px";setTimer(function(){Animation.coverUp(div,tm,max);});}else{div.style.top="0px";Animation.coverCallBack(xdiv);}};Animation.coverDown=function(xdiv,tm,max){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.top=(-1*(max-val))+"px";setTimer(function(){Animation.coverDown(div,tm,max);});}else{div.style.top="0px";Animation.coverCallBack(xdiv);}};Animation.coverDiagonalPresets=function(div){var obj={};var w=obj.WIDTH=div.offsetWidth;var h=obj.HEIGHT=div.offsetHeight;obj.MAX=Math.sqrt(w*w+h*h);return obj;};Animation.getCoverDim=function(dim,cval){var rval=cval/dim.MAX;return {"LEFT":dim.WIDTH*rval,"TOP":dim.HEIGHT*rval};};Animation.coverRightUp=function(xdiv,tm,robj){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){with(div.style){left=top="0px";}Animation.coverCallBack(xdiv);}else{var dim=Animation.getCoverDim(robj,robj.MAX-val);with(div.style){left=dim.LEFT+"px";top=dim.TOP+"px";}setTimer(function(){Animation.coverRightUp(div,tm,robj);});}};Animation.coverRightDown=function(xdiv,tm,robj){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){with(div.style){left=top="0px";}Animation.coverCallBack(xdiv);}else{var dim=Animation.getCoverDim(robj,-1*robj.MAX+val);with(div.style){left=dim.LEFT+"px";top=dim.TOP+"px";}setTimer(function(){Animation.coverRightDown(div,tm,robj);});}};Animation.coverLeftUp=function(xdiv,tm,robj){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){with(div.style){left=top="0px";}Animation.coverCallBack(xdiv);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(-1*robj.WIDTH)+dim.LEFT+"px";top=(robj.HEIGHT-dim.TOP)+"px";}setTimer(function(){Animation.coverLeftUp(div,tm,robj);});}};Animation.coverLeftDown=function(xdiv,tm,robj){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){with(div.style){left=top="0px";}Animation.coverCallBack(xdiv);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(robj.WIDTH-dim.LEFT)+"px";top=(-1*robj.HEIGHT+dim.TOP)+"px";}setTimer(function(){Animation.coverLeftDown(div,tm,robj);});}};Animation.unCover=function(div){Animation.cover(div);var x=Animation.animateDiv;div.style.zIndex=x.style.zIndex;x.style.zIndex="0";div.style.position="absolute";};Animation.unCoverCallBack=function(div){Animation.coverCallBack(div);if(!Animation.isSlideShowMode){div.style.left=div.style.top="0px";}Animation.commonCallBack();};Animation.unCoverLeft=function(div,tm,max){max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.left=-1*val+"px";setTimer(function(){Animation.unCoverLeft(div,tm,max);});}else{Animation.unCoverCallBack(div);}};Animation.unCoverRight=function(div,tm,max){max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.left=val+"px";setTimer(function(){Animation.unCoverRight(div,tm,max);});}else{Animation.unCoverCallBack(div);}};Animation.unCoverDown=function(div,tm,max){max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.top=val+"px";setTimer(function(){Animation.unCoverDown(div,tm,max);});}else{Animation.unCoverCallBack(div);}};Animation.unCoverUp=function(div,tm,max){max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){div.style.top=-1*val+"px";setTimer(function(){Animation.unCoverUp(div,tm,max);});}else{Animation.unCoverCallBack(div);}};setDivPos=function(div,xpos,ypos){div.style.left=xpos+"px";div.style.top=ypos+"px";};Animation.unCoverLeftDown=function(div,tm,robj){robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){Animation.unCoverCallBack(div);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(-1*dim.LEFT)+"px";top=(dim.TOP)+"px";}setTimer(function(){Animation.unCoverLeftDown(div,tm,robj);});}};Animation.unCoverLeftUp=function(div,tm,robj){robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){Animation.unCoverCallBack(div);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(dim.LEFT)+"px";top=(-1*dim.TOP)+"px";}setTimer(function(){Animation.unCoverLeftUp(div,tm,robj);});}};Animation.unCoverRightDown=function(div,tm,robj){robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){Animation.unCoverCallBack(div);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(dim.LEFT)+"px";top=(dim.TOP)+"px";}setTimer(function(){Animation.unCoverRightDown(div,tm,robj);});}};Animation.unCoverRightUp=function(div,tm,robj){robj=(robj)?robj:Animation.coverDiagonalPresets(div);var val=Animation.getCurrentVal(robj.MAX,tm);if(val>=robj.MAX){Animation.unCoverCallBack(div);}else{var dim=Animation.getCoverDim(robj,val);with(div.style){left=(-1*dim.LEFT)+"px";top=(-1*dim.TOP)+"px";}setTimer(function(){Animation.unCoverRightUp(div,tm,robj);});}};Animation.animateDiv=undefined;Animation.slideshowCallback=function(_235){var p=_235.parentNode;if(!p){return;}var divs=p.getElementsByTagName("div");for(var i=0;i<divs.length;i++){var dx=divs[i];if(dx.id=="slidediv"&&dx.parentNode!=Animation.animateDiv){dx.parentNode.removeChild(dx);}}var iDiv=Animation.getSlideDiv(Animation.animateDiv,true);if(iDiv){p.appendChild(iDiv);}try{p.removeChild(Animation.animateDiv);}catch(e){}Animation.commonCallBack();};Animation.pushCallBack=function(_23b,_23c){if(Animation.isSlideShowMode){return Animation.slideshowCallback(_23b);}var f=function(){Animation.commonCallBack();Animation.animateDiv.parentNode.removeChild(Animation.animateDiv);Animation.animateDiv=undefined;with(_23b.style){left=top=0;}var p=Animation.initiator;p.constructSlideDiv(p.currentSlide);};if(!_23c){setTimer(f,1000,"CB");}else{f();}};Animation.push=function(div){div.style.position="absolute";var d=Animation.getDuplicateDiv(div);d.style.zIndex="100000";var p=Animation.initiator;slide=p.currentSlide;if(!Animation.isSlideShowMode){slide=slide.NEXT_SLIDE;}div.parentNode.appendChild(d);if(slide){Animation.renderSlide(d,slide);}else{d.style.backgroundColor="#000";}Animation.animateDiv=d;};Animation.pushLeft=function(div,tm,max){max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){Animation.animateDiv.style.left=(-1*(val-max))+"px";div.style.left=(-1*val)+"px";setTimer(function(){Animation.pushLeft(div,tm,max);});}else{Animation.animateDiv.style.left="0px";Animation.pushCallBack(div);}};Animation.pushRight=function(div,tm,max){max=(max)?max:div.offsetWidth;var val=Animation.getCurrentVal(max,tm);if(val<max){Animation.animateDiv.style.left=(val-max)+"px";div.style.left=val+"px";setTimer(function(){Animation.pushRight(div,tm,max);});}else{Animation.animateDiv.style.left="0px";Animation.pushCallBack(div);}};Animation.pushDown=function(div,tm,max){max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){Animation.animateDiv.style.top=(-1*(max-val))+"px";div.style.top=val+"px";setTimer(function(){Animation.pushDown(div,tm,max);});}else{Animation.animateDiv.style.top="0px";Animation.pushCallBack(div);}};Animation.pushUp=function(div,tm,max){max=(max)?max:div.offsetHeight;var val=Animation.getCurrentVal(max,tm);if(val<max){Animation.animateDiv.style.top=(max-val)+"px";div.style.top=(-1*val)+"px";setTimer(function(){Animation.pushUp(div,tm,max);});}else{Animation.animateDiv.style.top="0px";Animation.pushCallBack(div);}};Animation.split=function(div){Animation.cover(div);};Animation.splitCallBack=function(div){Utils.removeStyle(div,"clip");Utils.removeStyle(div,"z-index");Animation.coverCallBack(div);};Animation.splitHorizontalOut=function(xdiv,tm,_256){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_256){_256=Animation.getClipDim(div,div.offsetHeight);_256.TOP=_256.BOTTOM=div.offsetHeight/2;_256.SLIMIT=_256.LIMIT/2;}if(_256.BOTTOM>=_256.LIMIT){return Animation.splitCallBack(div);}div.style.clip=Animation.getClipForDim(_256);var rval=Animation.getCurrentVal(_256.SLIMIT,tm);_256.TOP=_256.SLIMIT-rval;_256.BOTTOM=_256.SLIMIT+rval;setTimer(function(){Animation.splitHorizontalOut(div,tm,_256);});};Animation.doSplitInDefaults=function(div){div.style.zIndex="100000";div.style.position="absolute";if(Animation.isSlideShowMode){Animation.animateDiv.style.zIndex="0";}};Animation.splitHorizontalIn=function(div,tm,_25c){if(!_25c){_25c=Animation.getClipDim(div,div.offsetHeight);_25c.SLIMIT=_25c.LIMIT/2;Animation.doSplitInDefaults(div);}if(_25c.TOP>=_25c.SLIMIT){Animation.splitCallBack(div);return;}div.style.clip=Animation.getClipForDim(_25c);var rval=Animation.getCurrentVal(_25c.SLIMIT,tm);_25c.TOP=rval;_25c.BOTTOM=_25c.LIMIT-rval;setTimer(function(){Animation.splitHorizontalIn(div,tm,_25c);});};Animation.splitVerticalOut=function(xdiv,tm,_260){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_260){_260=Animation.getClipDim(div,div.offsetWidth);_260.LEFT=_260.RIGHT=div.offsetWidth/2;_260.SLIMIT=_260.LIMIT/2;}if(_260.RIGHT>=_260.LIMIT){Animation.splitCallBack(div);return;}div.style.clip=Animation.getClipForDim(_260);var rval=Animation.getCurrentVal(_260.SLIMIT,tm);_260.LEFT=_260.SLIMIT-rval;_260.RIGHT=_260.SLIMIT+rval;setTimer(function(){Animation.splitVerticalOut(div,tm,_260);});};Animation.splitVerticalIn=function(div,tm,_265){if(!_265){_265=Animation.getClipDim(div,div.offsetWidth);Animation.doSplitInDefaults(div);_265.SLIMIT=_265.LIMIT/2;}if(_265.LEFT>=_265.SLIMIT){Animation.splitCallBack(div);return;}div.style.clip=Animation.getClipForDim(_265);var rval=Animation.getCurrentVal(_265.SLIMIT,tm);_265.LEFT=rval;_265.RIGHT=_265.LIMIT-rval;setTimer(function(){Animation.splitVerticalIn(div,tm,_265);});};Animation.fade=function(div){Animation.cover(div);};Animation.fadeCallBack=function(div){if(Animation.isSlideShowMode){Animation.pushCallBack(div);}Animation.commonCallBack();Animation.Appear.clearOpacity(div);};Animation.fadeSmoothly=function(xdiv,tm){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(Animation.isSlideShowMode){div.style.position="absolute";div.style.zIndex="0";xdiv.style.zIndex="100000";xdiv.style.position="absolute";}var cb=function(){Animation.fadeCallBack(div);};Animation.reduceOpacity(xdiv,cb,100,tm);};Animation.reduceOpacity=function(ele,_26e,_26f,time){var op=(_26f||_26f==0)?_26f:Element.getOpacity(ele)*100;op=(100-Animation.getCurrentVal(100,time));Element.setOpacity(ele,op/100);ele.opacity=op/100;if(op<=0){if(_26e){_26e();}}else{setTimeout(function(){Animation.reduceOpacity(ele,_26e,op,time);});}};Animation.box=function(div){div.style.left=0;div.style.zIndex="14000";Animation.push(div);Animation.animateDiv.style.zIndex="10000";};Animation.boxCallBack=function(div,_274){return Animation.pushCallBack(div,_274);};Animation.setClipPresets=function(div){var h=div.offsetHeight;var h1=h/2;var w=div.offsetWidth;var w1=w/2;clipDim=Animation.getClipDim(div,w);clipDim.CHEIGHT=h1;clipDim.CWIDTH=w1;clipDim.RES=div.offsetWidth/div.offsetHeight;clipDim.MAX=Math.sqrt(w1*w1+h1*h1);return clipDim;};Animation.setBoxCurClipDim=function(_27a,cval){var r=cval/_27a.MAX;var rw=_27a.CWIDTH*r;var rh=_27a.CHEIGHT*r;_27a.LEFT=rw;_27a.RIGHT=_27a.CWIDTH*2-rw;_27a.TOP=rh;_27a.BOTTOM=_27a.CHEIGHT*2-rh;};Animation.boxIn=function(div,tm,_281){if(!_281){_281=Animation.setClipPresets(div);}if(_281.RIGHT<=_281.CWIDTH){return Animation.boxCallBack(div);}var rval=Animation.getCurrentVal(_281.MAX,tm);Animation.setBoxCurClipDim(_281,rval);div.style.clip=Animation.getClipForDim(_281);setTimer(function(){Animation.boxIn(div,tm,_281);});};Animation.boxOut=function(_283,tm,_285){div=Animation.animateDiv;var res=div.offsetWidth/div.offsetHeight;if(!_285){div.style.zIndex="15000";_285=Animation.setClipPresets(div);_285.LEFT=_285.RIGHT=_285.CHEIGHT;_285.TOP=_285.BOTTOM=_285.CWIDTH;}if(_285.RIGHT>=_285.LIMIT||_285.LEFT<=0){return Animation.boxCallBack(_283);}var rval=Animation.getCurrentVal(_285.MAX,tm);Animation.setBoxCurClipDim(_285,_285.MAX-rval);div.style.clip=Animation.getClipForDim(_285);setTimer(function(){Animation.boxOut(div,tm,_285);});};Animation.wipe=function(div){Animation.cover(div);};Animation.getCurrentVal=function(max,_28a){var ival=Animation.getTransitionIntervalTime();var cval=max*(ival/_28a);return ((cval>max)?max:cval);};Animation.getTransitionIntervalTime=function(){return Animation.getCurrentTime()-Animation.transitionStartTime;};Animation.wipeCallBack=function(div){Utils.removeStyle(div,"clip");Animation.coverCallBack(div);};Animation.wipeRight=function(xdiv,tm,_290){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_290){_290=Animation.getClipDim(div,div.offsetWidth);_290.RIGHT=0;}if(_290.RIGHT>=_290.LIMIT){Animation.wipeCallBack(div);return;}div.style.clip=Animation.getClipForDim(_290);_290.RIGHT=Animation.getCurrentVal(_290.LIMIT,tm);setTimer(function(){Animation.wipeRight(div,tm,_290);},Animation.timerSpeed);};Animation.wipeLeft=function(xdiv,tm,_294){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_294){_294=Animation.getClipDim(div,div.offsetWidth);_294.LEFT=div.offsetWidth;}if(_294.LEFT<=0){Animation.wipeCallBack(div);return;}div.style.clip=Animation.getClipForDim(_294);_294.LEFT=(_294.LIMIT-Animation.getCurrentVal(_294.LIMIT,tm));setTimer(function(){Animation.wipeLeft(div,tm,_294);},Animation.timerSpeed);};Animation.wipeUp=function(xdiv,tm,_298){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_298){_298=Animation.getClipDim(div,div.offsetHeight);_298.TOP=div.offsetHeight;}if(_298.TOP<=0){Animation.wipeCallBack(div);return;}div.style.clip=Animation.getClipForDim(_298);_298.TOP=(_298.LIMIT-Animation.getCurrentVal(_298.LIMIT,tm));setTimer(function(){Animation.wipeUp(div,tm,_298);},Animation.timerSpeed);};Animation.wipeDown=function(xdiv,tm,_29c){var div=(Animation.isSlideShowMode)?Animation.animateDiv:xdiv;if(!_29c){_29c=Animation.getClipDim(div,div.offsetHeight);_29c.BOTTOM=0;}if(_29c.BOTTOM>=_29c.LIMIT){Animation.wipeCallBack(div);return;}div.style.clip=Animation.getClipForDim(_29c);_29c.BOTTOM=Animation.getCurrentVal(_29c.LIMIT,tm);setTimer(function(){Animation.wipeDown(div,tm,_29c);},Animation.timerSpeed);};Animation.blinds=function(div,_29f,time,iter){var _2a2=6;var top=0;var _2a4=0;var left=0;var _2a6=0;var _2a7;if(!iter){iter=Animation.NumOfIter;}time=(time*1000)/(iter*_2a2);var _2a8=new Array();var i=5;while(i>0){if(!isIE){var _2aa=div.cloneNode(true);}else{var _2aa=document.createElement("div");_2aa.innerHTML=div.innerHTML;_2aa.style.height="100%";_2aa.style.width="100%";_2aa.style.overflow="hidden";_2aa.id=div.id;_2aa.style.position="absolute";}div.parentNode.appendChild(_2aa);i--;_2a8.push(_2aa);}if(_29f=="vertical"){_2a4=parseInt(div.offsetHeight);var _2ab=parseInt(div.offsetWidth/_2a2);_2a6=_2ab;div.style.clip="rect("+top+"px,"+_2a6+"px,"+_2a4+"px,"+left+"px)";var _2ac=new Array(top,_2a6,_2a4,left);var _2ad=new Array();for(var k=0;k<5;k++){left=_2a6;if(k==4){_2a6=parseInt(div.offsetWidth);}else{_2a6+=_2ab;}_2a8[k].style.clip="rect("+top+"px,"+_2a6+"px,"+_2a4+"px,"+left+"px)";_2ad.push(new Array(top,_2a6,_2a4,left));}_2a7=parseInt(_2ab/iter);Animation.blindsVertical(div,_2a8,_2a7,time,_2ac,_2ad,_2ab);}else{_2a6=parseInt(div.offsetWidth);var _2ab=parseInt(div.offsetHeight/_2a2);_2a4=_2ab;div.style.clip="rect("+top+"px,"+_2a6+"px,"+_2a4+"px,"+left+"px)";var _2ac=new Array(top,_2a6,_2a4,left);var _2ad=new Array();for(var k=0;k<(_2a2-1);k++){top=_2a4;if(k==(_2a2-2)){_2a4=parseInt(div.offsetWidth);}else{_2a4+=_2ab;}_2a8[k].style.clip="rect("+top+"px,"+_2a6+"px,"+_2a4+"px,"+left+"px)";_2ad.push(new Array(top,_2a6,_2a4,left));}_2a7=parseInt(_2ab/iter);Animation.blindsHorizontal(div,_2a8,_2a7,time,_2ac,_2ad,_2ab);}};Animation.blindsHorizontal=function(div,_2b0,_2b1,time,_2b3,_2b4,_2b5){var top=parseInt(_2b3[0]);if(top>_2b5){for(var k=0;k<_2b0.length;k++){_2b0[k].parentNode.removeChild(_2b0[k]);}div.style.display="none";return;}top+=_2b1;_2b3[0]=top;div.style.clip="rect("+_2b3[0]+"px,"+_2b3[1]+"px,"+_2b3[2]+"px,"+_2b3[3]+"px)";var len=_2b4.length;for(var j=0;j<len;j++){var ords=_2b4[j];top=ords[0];top+=_2b1;ords[0]=top;_2b0[j].style.clip="rect("+ords[0]+"px,"+ords[1]+"px,"+ords[2]+"px,"+ords[3]+"px)";}setTimeout(function(){Animation.blindsHorizontal(div,_2b0,_2b1,time,_2b3,_2b4,_2b5);},time);};Animation.blindsVertical=function(div,_2bc,_2bd,time,_2bf,_2c0,_2c1){var left=parseInt(_2bf[3]);if(left>_2c1){for(var k=0;k<_2bc.length;k++){_2bc[k].parentNode.removeChild(_2bc[k]);}div.style.display="none";return;}left+=_2bd;_2bf[3]=left;div.style.clip="rect("+_2bf[0]+"px,"+_2bf[1]+"px,"+_2bf[2]+"px,"+_2bf[3]+"px)";var len=_2c0.length;for(var j=0;j<len;j++){var ords=_2c0[j];left=ords[3];left+=_2bd;ords[3]=left;_2bc[j].style.clip="rect("+ords[0]+"px,"+ords[1]+"px,"+ords[2]+"px,"+ords[3]+"px)";}setTimeout(function(){Animation.blindsVertical(div,_2bc,_2bd,time,_2bf,_2c0,_2c1);},time);};textAnimation=function(n){var _2c8=ShowUtils.getElementsById($("slidediv"),"DIV","presentation");var pres=_2c8[0];var _2ca=ShowUtils.getElementsById(pres,"DIV","box");var txt=document.getElementsByClassName("txtcolor",_2ca[0]);var text=txt[0].innerHTML;var wt=txt[0].offsetWidth;txt[0].innerHTML="";if(n===0){insertTextInReverse(txt[0],text,text.length);}else{var _2ce=document.createElement("div");_2ce.style.position="absolute";$("slidediv").appendChild(_2ce);var lft=findLeftPos(txt[0],"slidediv");var tp=findTopPos(txt[0],"slidediv");if(n===1){var _2d1=lft/7;var tpRn=($("slidediv").offsetHeight-tp)/7;flyTextFromLB(txt[0],text,_2ce,0,lft,tp,1,_2d1,tpRn);}else{if(n===2){var _2d1=lft/7;var tpRn=tp/7;flyTextFromLT(txt[0],text,_2ce,0,lft,tp,1,_2d1,tpRn);}else{if(n===3){lft+=wt;var _2d1=($("slidediv").offsetWidth-lft)/7;var tpRn=($("slidediv").offsetHeight-tp)/7;flyTextFromRB(txt[0],text,_2ce,0,lft,tp,1,_2d1,tpRn);}else{if(n===4){lft+=wt;var _2d1=($("slidediv").offsetWidth-lft)/7;var tpRn=tp/7;flyTextFromRT(txt[0],text,_2ce,0,lft,tp,1,_2d1,tpRn);}}}}}};findTopPos=function(obj,cl){var top=0;while(obj.offsetParent&&obj.className!=cl){top+=obj.offsetTop;obj=obj.offsetParent;}return top;};findLeftPos=function(obj,cl){var left=0;while(obj.offsetParent&&obj.className!=cl){left+=obj.offsetLeft;obj=obj.offsetParent;}return left;};insertText=function(sp,text,n){if(n<text.length){sp.innerHTML+=text.charAt(n);n++;setTimeout(function(){insertText(sp,text,n);},10);}};insertTextInReverse=function(sp,text,n){if(n>0){var val="";var len=text.length;for(var i=0;i<len;i++){if(i>=n-1){val+=text.charAt(i);}}sp.innerHTML=val;n--;setTimeout(function(){insertTextInReverse(sp,text,n);},10);}};flyTextFromLB=function(sp,text,_2e4,n,lft,tp,m,_2e9,tpRn){if(m===1){_2e4.style.top=$("slidediv").offsetHeight+"px";_2e4.style.left="0px";_2e4.innerHTML=text.charAt(n);}var _2eb=_2e4.offsetLeft+_2e9;var _2ec=_2e4.offsetTop-tpRn;if(_2eb<=lft&&_2ec>=tp){_2e4.style.left=_2eb+"px";_2e4.style.top=_2ec+"px";m=2;setTimeout(function(){flyTextFromLB(sp,text,_2e4,n,lft,tp,m,_2e9,tpRn);},10);}else{if(n<text.length){sp.innerHTML+=text.charAt(n);m=1;n++;setTimeout(function(){flyTextFromLB(sp,text,_2e4,n,lft,tp,m,_2e9,tpRn);},10);}else{$("slidediv").removeChild(_2e4);}}};flyTextFromLT=function(sp,text,_2ef,n,lft,tp,m,_2f4,tpRn){if(m===1){_2ef.style.top="0px";_2ef.style.left="0px";_2ef.innerHTML=text.charAt(n);}var _2f6=_2ef.offsetLeft+_2f4;var _2f7=_2ef.offsetTop+tpRn;if(_2f6<=lft&&_2f7<=tp){_2ef.style.left=_2f6+"px";_2ef.style.top=_2f7+"px";m=2;setTimeout(function(){flyTextFromLT(sp,text,_2ef,n,lft,tp,m,_2f4,tpRn);},10);}else{if(n<text.length){sp.innerHTML+=text.charAt(n);m=1;n++;setTimeout(function(){flyTextFromLT(sp,text,_2ef,n,lft,tp,m,_2f4,tpRn);},10);}else{$("slidediv").removeChild(_2ef);}}};flyTextFromRB=function(sp,text,_2fa,n,lft,tp,m,_2ff,tpRn){if(m===1){_2fa.style.top=$("slidediv").offsetHeight+"px";_2fa.style.left=$("slidediv").offsetWidth+"px";_2fa.innerHTML=text.charAt(n);}var _301=_2fa.offsetLeft-_2ff;var _302=_2fa.offsetTop-tpRn;if(_301>=lft&&_302>=tp){_2fa.style.left=_301+"px";_2fa.style.top=_302+"px";m=2;setTimeout(function(){flyTextFromRB(sp,text,_2fa,n,lft,tp,m,_2ff,tpRn);},10);}else{if(n<text.length){sp.innerHTML+=text.charAt(n);m=1;n++;setTimeout(function(){flyTextFromRB(sp,text,_2fa,n,lft,tp,m,_2ff,tpRn);},10);}else{$("slidediv").removeChild(_2fa);}}};flyTextFromRT=function(sp,text,_305,n,lft,tp,m,_30a,tpRn){if(m===1){_305.style.top="0px";_305.style.left=$("slidediv").offsetWidth+"px";_305.innerHTML=text.charAt(n);}var _30c=_305.offsetLeft-_30a;var _30d=_305.offsetTop+tpRn;if(_30c>=lft&&_30d<=tp){_305.style.left=_30c+"px";_305.style.top=_30d+"px";m=2;setTimeout(function(){flyTextFromRT(sp,text,_305,n,lft,tp,m,_30a,tpRn);},10);}else{if(n<text.length){sp.innerHTML+=text.charAt(n);m=1;n++;setTimeout(function(){flyTextFromRT(sp,text,_305,n,lft,tp,m,_30a,tpRn);},10);}else{$("slidediv").removeChild(_305);}}};Animation.CustomAnimation={INDEX_ATTRIBUTE:"aindex",TYPE_ATTRIBUTE:"atype",CLASSNAME:"cani_",_DEFAULT:1,NONE:-1,originalSlideHTMLContent:{},animationTypes:{"-1":"None","100":"Random","0":"Appear","1":"Fade In","1203":"Fly From Bottom","1216":"Zoom"},fillAnimationTypes:function(){var _30e=$("animationType");var _30f=_30e.options;if(_30f.length==0){var sT=Animation.CustomAnimation.animationTypes;for(i in sT){_30f[_30f.length]=new Option(js_LangObj["ANIMATION."+Animation.CustomAnimation.getAnimationMethodName(sT[i]).toUpperCase()],i);}}},getRandomAnimationType:function(){var aT=Animation.CustomAnimation.animationTypes;var cnt=Animation.getObjSize(aT)-2;var r=parseInt(Math.random()*cnt);cnt=0;for(var i in aT){if(i!="100"&&i!="-1"&&!isNaN(i)){if(cnt==r){return i;}cnt++;}}},getAnimationTypeForCode:function(type){if(type==100){type=Animation.CustomAnimation.getRandomAnimationType();}var ani=Animation.CustomAnimation.animationTypes[type];if(ani){ani=Animation.CustomAnimation.getAnimationMethodName(ani);}return ani;},getAnimationMethodName:function(_317){_317=_317.replace(/ /g,"").replace(/-/g,"");return _317;},getAnimationObj:function(type){if(type==Animation.CustomAnimation.NONE){return undefined;}return Animation[Animation.CustomAnimation.getAnimationTypeForCode(type)];},getNextAnimationIndex:function(box){if(!box){return 1;}slide=box.parentNode;var _31a=Box.getBoxes(slide);var _31b=0;_31a.each(function(box){var _31d=box.getAttribute(Animation.CustomAnimation.INDEX_ATTRIBUTE);if(_31d){try{_31d=parseFloat(_31d);}catch(e){_31d=1;}if(_31d>_31b){_31b=_31d;}}});return ++_31b;},getType:function(robj){var type=robj.getAttribute(Animation.CustomAnimation.TYPE_ATTRIBUTE);return ((!type||type==null||type=="null")?Animation.CustomAnimation.NONE:type);},getAnimationIndex:function(robj,_321){var _322=robj.getAttribute(Animation.CustomAnimation.INDEX_ATTRIBUTE);return (_322?(parseFloat(_322)):((_321)?undefined:1));},getAnimatableObjects:function(_323,_324){var div=(_323)?_323:$("slidediv");var _326=document.getElementsByClassName(Animation.CustomAnimation.CLASSNAME,div);var objs=new Array();for(var i=0;i<_326.length;i++){var robj=_326[i];if(!Utils.hasClass(robj,"template")){var _32a=Animation.CustomAnimation.getType(robj);if(_32a&&_32a*1==Animation.CustomAnimation.NONE){Utils.removeClass(robj,Animation.CustomAnimation.CLASSNAME);continue;}if(!Utils.hasClass(robj,"bulletbox")||_324){objs[objs.length]=robj;}else{Animation.CustomAnimation.fillBulletAnimations(robj,objs);}}}objs.sort(Animation.CustomAnimation.sorter);return objs;},hasMore:function(){return (Animation.CustomAnimation.animatableObjects.length!=0);},currentAnimatingBox:undefined,currentAnimationObj:undefined,stopCurrentAnimation:function(){if(Animation.CustomAnimation.currentAnimationObj&&Animation.CustomAnimation.currentAnimatingBox){clearTimer(Animation.CustomAnimation.CLASSNAME);Animation.CustomAnimation.currentAnimationObj.end(Animation.CustomAnimation.currentAnimatingBox);Animation.CustomAnimation.clearCurrentAnimationObjects();return true;}return false;},clearCurrentAnimationObjects:function(){Animation.CustomAnimation.currentAnimationObj=Animation.CustomAnimation.currentAnimatingBox=undefined;},commonCallBack:function(){Animation.CustomAnimation.clearCurrentAnimationObjects();Animation.CustomAnimation.replaceSlideContent();},showNext:function(){if(Animation.CustomAnimation.stopCurrentAnimation()){return;}var objs=Animation.CustomAnimation.animatableObjects;var obj=Animation.CustomAnimation.currentAnimatingBox=objs[0];var type=Animation.CustomAnimation.getType(obj);var _32e=Animation.CustomAnimation.currentAnimationObj=Animation.CustomAnimation.getAnimationObj(type);if(!_32e){type=Animation.CustomAnimation._DEFAULT;_32e=Animation.CustomAnimation.getAnimationObj(type);}_32e.animate(obj);objs.splice(0,1);},replaceSlideContent:function(){if(!Animation.isSlideShowMode){return;}var i=Animation.initiator;if(i.slidesInfo&&i.currentSlide){var _330=Animation.CustomAnimation.getCurrentSlideContent();i.slidesInfo[i.currentSlide.SLIDE_NUM].HTML_CONTENT=_330.SLIDE;}},getCurrentSlideContent:function(){var _331=document.getElementsByClassName("slide",Animation.container)[0];var _332=_331.cloneNode(false);_332.innerHTML=_331.innerHTML;var _333;var rVec=undefined;if(!isIE){_333=_332.getElementsByTagName("svg");}else{_333=_332.getElementsByTagName("group");}for(var i=0;i<_333.length;i++){var d=_333[i];if(d){d.parentNode.removeChild(d);}}ShowUtils.drawEditor.removeVectorContent(_332);var _337=new Object();var _338;var tDiv=document.createElement("div");tDiv.appendChild(_332);_338=tDiv.innerHTML;delete tDiv;_337.SLIDE=_338;return _337;},lastBackedUpSlideNumber:-1,backupOriginalSlideContent:function(){var i=Animation.initiator;if(i.slidesInfo&&i.currentSlide){if(Animation.CustomAnimation.lastBackedUpSlideNumber==i.currentSlide.SLIDE_NUM){return;}if(Animation.CustomAnimation.lastBackedUpSlideNumber!=i.currentSlide.SLIDE_NUM){}Animation.CustomAnimation.lastBackedUpSlideNumber=i.currentSlide.SLIDE_NUM;Animation.CustomAnimation.originalSlideHTMLContent[i.currentSlide.SLIDE_NUM]=i.slidesInfo[i.currentSlide.SLIDE_NUM].HTML_CONTENT;}},replaceOriginalSlideContent:function(_33b){if(_33b==-1){return;}var i=Animation.initiator;if(i.slidesInfo&&i.currentSlide){i.slidesInfo[_33b].HTML_CONTENT=Animation.CustomAnimation.originalSlideHTMLContent[_33b];}},populateAnimatableObjects:function(){Animation.CustomAnimation.animatableObjects=Animation.CustomAnimation.getAnimatableObjects();},fillBulletAnimations:function(_33d,_33e){var _33f=Utils.getListItems(_33d);var _340=Animation.CustomAnimation.getAnimationIndex(_33d);var _341=Animation.CustomAnimation.getType(_33d);if(_341==100){_341=Animation.CustomAnimation.getRandomAnimationType();}var i=0;var _343=Animation.CustomAnimation.getAnimationObj(_341);_33f.each(function(list){++i;var _345=(i<10)?".0":".";var _346=_340+_345+i;Animation.CustomAnimation.assign(list,_341,_346);_33e[_33e.length]=list;});if(_343){_343.clear(_33d,true);}else{Utils.removeClass(_33d,Animation.CustomAnimation.CLASSNAME);}},sorter:function(r1,r2){var ri1=Animation.CustomAnimation.getAnimationIndex(r1,true);var ri2=Animation.CustomAnimation.getAnimationIndex(r2,true);var c=10000;ri1=(ri1)?ri1:c;ri2=(ri2)?ri2:c;if(!ri1||!ri2){return 0;}if(ri1<ri2){return -1;}if(ri1>ri2){return 1;}return 0;},slideModified:function(_34c){if(!_34c){_34c=presenter.currentSlide;}_34c.isModified=true;presenter.syncThumbNailView();},cleanAttribute:function(box,_34e){box.setAttribute(_34e,"");box.removeAttribute(_34e);},slideObjects:undefined,fillAnimatableObjects:function(cbox){var _350=[];var list=$("animateList");var _352=$("slidediv");var _353=undefined;var divs=_352.getElementsByTagName("div");for(var i=0;i<divs.length;i++){var div=divs[i];if(div&&div.id=="presentation"){_353=div;break;}}if(!_353){return;}var _357=Box.getBoxes(_353);_357.sort(Animation.CustomAnimation.sorter);var _358=list.options;var len=_358.length;for(var i=0;i<len;i++){list.remove(0);}_357.each(function(box){var _35b=Animation.CustomAnimation.addBoxToList(box,_358,_350);if(cbox&&box==cbox){_35b.selected=true;}});Animation.CustomAnimation.slideObjects=_350;if(!cbox){if(!Box.currentSelectedBox){with($("animationType")){selectedIndex=-1;disabled=true;}}else{Animation.CustomAnimation.selectAnimationTypeForBox(Box.currentSelectedBox);}}Animation.CustomAnimation.reRenderAnimationListBox();},getBoxOptionText:function(box){var type=ThemeParser.getBoxType(box.className);if(!type){type=(Utils.hasClass(box,"otherbox"))?"htmlbox":"";}if(type!=""){type+=" - ";}return type+Utils.getText(box);},addBoxToList:function(box,_35f,_360){if(!_35f){var list=$("animateList");_35f=list.options;}if(!_360){_360=Animation.CustomAnimation.slideObjects;}var txt=Animation.CustomAnimation.getBoxOptionText(box);var _363=new Option(txt);_363.robject=box;_363.rtype=Animation.CustomAnimation.getType(box);_363.rindex=_35f.length+1;_35f[_35f.length]=_363;_360[_360.length]=box;Animation.CustomAnimation.reRenderAnimationListBox();return _363;},selectAnimationTypeForBox:function(box){if(!box){box=Box.currentSelectedBox;}var opt=Animation.CustomAnimation.getOptionForBox(box);if(opt){opt.selected=true;Animation.CustomAnimation.selectAnimationType();}},getSelectedBoxFromList:function(){var list=$("animateList");if(list.selectedIndex==-1){return undefined;}return list.options[list.selectedIndex].robject;},getOptionForBox:function(box,_368){var list=$("animateList");var _36a=list.options;for(var i=0;i<_36a.length;i++){if(_36a[i].robject==box){return _36a[i];}if(_368){if(_36a[i].robject.id==box.id){return _36a[i];}}}},reArrangeAnimationIndexes:function(){var list=$("animateList");var _36d=list.options;var _36e=[];var _36f=1;for(var i=0;i<_36d.length;i++){var _371=_36d[i];var box=_371.robject;var type=_371.rtype;Animation.CustomAnimation.assign(box,type,_36f++,true);_36e[_36e.length]=box;}Animation.CustomAnimation.slideModified();},updateBoxText:function(box){var _375=Animation.CustomAnimation.getOptionForBox(box);if(_375){_375.text=Animation.CustomAnimation.getBoxOptionText(box);}},deleteOptionForBox:function(box){var _377=Animation.CustomAnimation.getOptionForBox(box);if(_377){_377.parentNode.removeChild(_377);}},selectAnimationType:function(_378){Animation.CustomAnimation._stopPreview();var _379=$("animateList");var opt=_379.options[_379.selectedIndex];var _37b=Animation.CustomAnimation.getType(opt.robject);_37b=(_37b)?_37b:-1;_37b=Animation.CustomAnimation.animationTypes[_37b]?_37b:Animation.CustomAnimation._DEFAULT;var _37c=$("animationType");_37c.disabled=false;Animation.getOptionForValue(_37c,_37b).selected=true;if(_378){var f=function(){Box.selectBox(opt.robject,true);};setTimeout(f,1);}},canShowPreview:function(){return $("aniPreview").checked;},changeAnimationType:function(list){var _37f=list.options[list.selectedIndex].value;var _380=$("animateList");var sel=_380.options[_380.selectedIndex];sel.rtype=_37f;var box=sel.robject;UndoRedo.ACTION="ani";var _383=Animation.CustomAnimation.getAnimationIndex(box,true);var _384=(_383)?sel.rindex:Animation.CustomAnimation.getNextAnimationIndex(box);Animation.CustomAnimation._stopPreview();Animation.CustomAnimation.assign(box,_37f,_384);Animation.CustomAnimation.fillAnimatableObjects(box);Animation.CustomAnimation.preview(box,_37f);},clearPreviewObjects:function(){if(Animation.CustomAnimation.clonedPreviewBox){var par=Animation.CustomAnimation.clonedPreviewBox.parentNode;var spar=par.parentNode;spar.removeChild(par);Animation.CustomAnimation.clonedPreviewBox=undefined;}},previewedBox:undefined,_stopPreview:function(){if(Animation.CustomAnimation.previewedBox){Animation.CustomAnimation.previewedBox.style.display="block";Animation.CustomAnimation.previewedBox=undefined;}Animation.CustomAnimation.clearPreviewObjects();},clonedPreviewBox:undefined,preview:function(_box,type){Animation.CustomAnimation._stopPreview();Animation.CustomAnimation.slideModified();if(Animation.CustomAnimation.canShowPreview()){if(type>0){var par=$("slidediv");var box=Animation.CustomAnimation.clonedPreviewBox=Animation.clone(_box);var span=document.createElement("div");span.className="prebuilt_theme";span.style.cssText="width: 100%; height: 100%; left: 0px; top: 0px; position: absolute;";span.appendChild(box);par.appendChild(span);box.style.display="block";_box.style.display="none";Animation.CustomAnimation.previewedBox=_box;Animation.CustomAnimation.getAnimationObj(type).preview(box,type);}}},assignToAll:function(){Animation.CustomAnimation._stopPreview();UndoRedo.ACTION="aniall";var list=$("animationType");var _38d=list.options[list.selectedIndex];var _38e=_38d.value;var _box=undefined;Animation.CustomAnimation.slideObjects.each(function(box){_box=box;Animation.CustomAnimation.assign(box,_38e,undefined,true);});var _391=$("animateList");var opts=_391.options;for(var i=0;i<opts.length;i++){opts[i].rtype=_38e;}Animation.CustomAnimation.slideModified();if(_box){ShareCollaboration.sendShareMessage("aniall",_box.id,_38e);var msg=Utils.replaceParams(js_LangObj["ANIMATION.APPLIEDTOALL"],[_38d.text]);Utils.statMsg(msg);}},storeContent:function(){if(!Animation.isSlideShowMode&&HTMLInlineBox1.editing){HTMLInlineBox1.storeContent();}},assign:function(box,_396,_397,_398){Animation.CustomAnimation.storeContent();var _399=Animation.CustomAnimation.getType(box);var _39a=Animation.CustomAnimation.getAnimationObj(_399);var _39b=(_396==Animation.CustomAnimation.NONE);if(_39a){_39a.clear(box,true);if(_39b&&!_398){Animation.CustomAnimation.slideModified();}}if(!_39b){Utils.addClass(box,Animation.CustomAnimation.CLASSNAME);box.setAttribute(Animation.CustomAnimation.TYPE_ATTRIBUTE,_396);if(_397){Animation.CustomAnimation.assignIndex(box,_397);}}else{Utils.removeClass(box,Animation.CustomAnimation.CLASSNAME);}if(!_398&&!Animation.isSlideShowMode){ShareCollaboration.sendShareMessage("ani",box.id,_396+":"+_397);}},assignIndex:function(box,_39d){box.setAttribute(Animation.CustomAnimation.INDEX_ATTRIBUTE,_39d);},rearrangeOptionsForBoxes:function(box1,box2,_3a0,_3a1){var opt1=Animation.CustomAnimation.getOptionForBox(box1,true);var opt2=Animation.CustomAnimation.getOptionForBox(box2,true);Animation.CustomAnimation.assignIndex(opt1,_3a0);Animation.CustomAnimation.assignIndex(opt2,_3a1);var sel=$("animateList");if(_3a0<_3a1){sel.insertBefore(opt1,opt2);}else{sel.insertBefore(opt2,opt1);}},sendIndexChangeShareMsg:function(opt1,opt2){var box1=opt1.robject;var box2=opt2.robject;ShareCollaboration.sendShareMessage("aniIndex",box1.id,Animation.CustomAnimation.getAnimationIndex(box1)+";"+box2.id+";"+Animation.CustomAnimation.getAnimationIndex(box2));},moveIndexUp:function(){var sel=$("animateList");var _3aa=sel.options;var _3ab=sel.selectedIndex;if(_3ab>0){var _3ac=_3aa[_3ab];var _3ad=_3aa[_3ab-1];sel.insertBefore(_3ac,_3ad);Animation.CustomAnimation.reArrangeAnimationIndexes();Animation.CustomAnimation.sendIndexChangeShareMsg(_3ac,_3ad);Animation.CustomAnimation.reRenderAnimationListBox();}},moveIndexDown:function(){var sel=$("animateList");var _3af=sel.options;var _3b0=sel.selectedIndex;if(_3b0!=-1&&_3b0!=_3af.length-1){var _3b1=_3af[_3b0];var _3b2=_3af[_3b0+1];sel.insertBefore(_3b2,_3b1);Animation.CustomAnimation.reArrangeAnimationIndexes();Animation.CustomAnimation.sendIndexChangeShareMsg(_3b1,_3b2);Animation.CustomAnimation.reRenderAnimationListBox();}},reRenderAnimationListBox:function(){if(isIE){var sel=$("animateList");sel.style.display="none";sel.style.display="block";}},isBulletBox:function(box){if(box.id=="editable"){box=box.parentNode;}var _3b5=box.className;if(!_3b5){return false;}else{if(_3b5==="bulletbox"){return true;}}var _3b6=_3b5.split(" ");for(var i=0;i<_3b6.length;i++){cname=_3b6[i].split("_")[0];if(cname==="listitem"||cname==="listcontent"||cname==="listtype"){return true;}}return false;}};Animation.Random={};Animation.Appear={_getAniFn:function(type){var _3b9=Animation.CustomAnimation.getAnimationObj(type);return _3b9.animate;},preview:function(box,type){if(type<1){return;}if(Utils.hasClass(box,"bulletbox")){return Animation.Appear.previewBulletBox(box);}Animation.Appear._getAniFn(type)(box,function(){Animation.Appear.stopPreview(box);});},previewBulletBox:function(box){var _3bd=Utils.getListItems(box);_3bd.each(function(list){Element.setOpacity(list,0);});var i=0;var f=function(){var list=_3bd[i];if(!list){Animation.Appear.stopPreview(box);}else{Animation.FadeIn.animate(list,f,25);}i++;};f();},stopPreview:function(box){if(Utils.hasClass(box,"bulletbox")){var _3c3=Utils.getListItems(box);_3c3.each(function(list){Animation.Appear.clearOpacity(list);});}else{Animation.Appear.clearOpacity(box);}Animation.CustomAnimation._stopPreview();var type=Animation.CustomAnimation.getType(box);var _3c6=Animation.CustomAnimation.getAnimationObj(type);Utils.addClass(box,Animation.CustomAnimation.CLASSNAME);},clearOpacity:function(box){var s=box.style;s.opacity="";if(isIE){s.filter="";}},clear:function(box,_3ca){Utils.removeClass(box,Animation.CustomAnimation.CLASSNAME);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.INDEX_ATTRIBUTE);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.TYPE_ATTRIBUTE);if(!_3ca){Animation.CustomAnimation.slideModified();}},animate:function(obj,_3cc,time){Utils.removeClass(obj,Animation.CustomAnimation.CLASSNAME);Animation.CustomAnimation.commonCallBack();},end:function(obj){Animation.Appear.clearOpacity(obj);Animation.CustomAnimation.commonCallBack();}};Animation.FadeIn={};Animation.FadeIn=Object.extend(Animation.FadeIn,Animation.Appear);Animation.FadeIn.animate=function(obj,_3d0,time){Utils.removeClass(obj,Animation.CustomAnimation.CLASSNAME);var f=(_3d0)?_3d0:function(){Animation.Appear.end(obj);};time=(time)?time:50;Utils.increaseOpacity(obj,f,0,time);};Animation.Zoom={preview:function(box,type){if(Utils.hasClass(box,"bulletbox")){return Animation.Zoom.previewBulletBox(box);}Animation.Zoom.animate(box,function(){Animation.Zoom.stopPreview(box);});},previewBulletBox:function(box){var _3d6=Utils.getListItems(box);_3d6.each(function(list){Element.setOpacity(list,0);});var i=0;var f=function(){var list=_3d6[i];if(!list){Animation.Zoom.stopPreview(box);}else{Animation.Zoom.animate(list,function(){Animation.Zoom.clearFontProp(list);f();},15);}i++;};f();},stopPreview:function(box){if(Utils.hasClass(box,"bulletbox")){var _3dc=Utils.getListItems(box);_3dc.each(function(list){Animation.Appear.clearOpacity(list);Animation.Zoom.clearFontProp(list);});}else{Animation.Appear.clearOpacity(box);Animation.Zoom.clearFontProp(box);}Animation.CustomAnimation._stopPreview();Utils.addClass(box,Animation.CustomAnimation.CLASSNAME);},getListItemPair:function(list){var _3df=list.getElementsByTagName("span");var pair=[];for(var i=0;i<_3df.length;i++){var _3e2=_3df[i].className;var span=_3df[i];var pVal=span.style.fontSize;if(pVal){span.setAttribute("_prevVal",pVal.split("%")[0]);}if(_3e2.indexOf("listtype")>=0){pair[0]=span;}if(_3e2=="listcontent"){pair[1]=span;}}return pair;},clearFontProp:function(box,_3e6){_3e6=(_3e6)?_3e6+"%":"";if(Animation.CustomAnimation.isBulletBox(box)){var _3e7=box.getAttribute("_prevVal");if(_3e7&&_3e6==""){_3e6=_3e7+"%";}box.style.fontSize=_3e6;}else{var _3e8=Animation.Zoom.getEditableDiv(box);var s=_3e8.style;s.fontSize=_3e6;}},clear:function(box,_3eb){Utils.removeClass(box,Animation.CustomAnimation.CLASSNAME);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.INDEX_ATTRIBUTE);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.TYPE_ATTRIBUTE);if(!_3eb){Animation.CustomAnimation.slideModified();}},animate:function(obj,_3ed,time){Utils.removeClass(obj,Animation.CustomAnimation.CLASSNAME);var _3ef=document.getElementsByClassName("listcontent",obj);if(_3ef.length>0){return Animation.Zoom.animateListItem(obj,_3ed,time);}var f=(_3ed)?_3ed:function(){Animation.Zoom.end(obj);};time=(time)?time:50;var _3f1=Animation.Zoom.getEditableDiv(obj);Animation.Zoom.increaseFontSize(_3f1,f,0,time);},animateListItem:function(obj,_3f3,time){Animation.Appear.clearOpacity(obj);time=(time)?time:50;var pVal=obj.style.fontSize;if(pVal){obj.setAttribute("_prevVal",pVal.split("%")[0]);}var f=(_3f3)?_3f3:function(){Animation.Zoom.end(obj);};Animation.Zoom.increaseFontSize(obj,f,0,time);},end:function(obj,_3f8){Animation.Zoom.clearFontProp(obj,_3f8);Animation.CustomAnimation.commonCallBack();},increaseFontSize:function(obj,_3fa,val,time,_3fd){_3fd=(_3fd)?_3fd:100;val=(val)?val:0;time=(time)?time:50;val+=10;if(val>=_3fd){return _3fa();}else{obj.style.fontSize=val+"%";setTimer(function(){Animation.Zoom.increaseFontSize(obj,_3fa,val,time,_3fd);},time,Animation.CustomAnimation.CLASSNAME);}},getEditableDiv:function(obj){if(obj.id=="editable"){return obj;}return ShowUtils.getElementsById(obj,"div","editable")[0];}};Animation.FlyFromBottom={preview:function(box,type){if(Utils.hasClass(box,"bulletbox")){return Animation.FlyFromBottom.previewBulletBox(box);}Animation.FlyFromBottom.animate(box,function(){Animation.FlyFromBottom.stopPreview(box);});},previewBulletBox:function(box){var _402=Utils.getListItems(box);_402.each(function(list){Element.setOpacity(list,0);});var i=0;var f=function(){var list=_402[i];if(!list){Animation.FlyFromBottom.stopPreview(box);}else{Animation.FlyFromBottom.animate(list,f,10);}i++;};f();},stopPreview:function(box){if(Utils.hasClass(box,"bulletbox")){var _408=Utils.getListItems(box);_408.each(function(list){Animation.FlyFromBottom.clearPosProp(list);});}else{Animation.FlyFromBottom.clearPosProp(box);}Animation.CustomAnimation._stopPreview();Utils.addClass(box,Animation.CustomAnimation.CLASSNAME);},clearPosProp:function(box,_40b){if(!box||!box.parentNode||!box.parentNode.parentNode){return;}_40b=(_40b)?_40b+"%":"";if(Utils.hasClass(box.parentNode.parentNode,"bulletbox")){box.style.marginTop=_40b;}else{var _40c=Animation.Zoom.getEditableDiv(box);_40c.style.marginTop=_40b;}Animation.Appear.clearOpacity(box);},clear:function(box,_40e){Utils.removeClass(box,Animation.CustomAnimation.CLASSNAME);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.INDEX_ATTRIBUTE);Animation.CustomAnimation.cleanAttribute(box,Animation.CustomAnimation.TYPE_ATTRIBUTE);if(!_40e){Animation.CustomAnimation.slideModified();}},animate:function(obj,_410,time){var f=(_410)?_410:function(){Animation.FlyFromBottom.end(obj);};time=(time)?time:50;var _413=Animation.Zoom.getEditableDiv(obj);if(!_413){_413=obj;}Animation.FlyFromBottom.changeMarginTop(_413,f,undefined,time,obj);},end:function(obj,_415){Animation.FlyFromBottom.clearPosProp(obj,_415);Animation.CustomAnimation.commonCallBack();},changeMarginTop:function(obj,_417,val,time,_41a){var _41b=false;if(!val){var ele=obj;var p=ele.parentNode;var cont=undefined;var m=0;var ch=undefined;if(ele.id=="editable"){ele=p;cont=p.parentNode;ch=cont.offsetHeight;m=Element.getStyle(ele,"top").split("px")[0];if(m.indexOf("%")!=-1){m=m.split("%")[0];m=m*ch/100;}}else{if(p.id=="editable"){ele=p.parentNode;cont=ele.parentNode;ch=cont.offsetHeight;_41b=true;m=obj.offsetTop;}}val=ch-m;}time=(time)?time:10;val-=15;if(val<=0){obj.style.marginTop="0px";return _417();}else{obj.style.marginTop=val+"px";if(_41b){Animation.Appear.clearOpacity(obj);}if(_41a){Utils.removeClass(_41a,Animation.CustomAnimation.CLASSNAME);}setTimer(function(){Animation.FlyFromBottom.changeMarginTop(obj,_417,val,time);},time,Animation.CustomAnimation.CLASSNAME);}}};var imgArr=[];var wWidth;var elements;var fixed=false;var index=0;function ShowUtils(){}ShowUtils.fontScaled=false;ShowUtils.thumbNailFontScaled=false;ShowUtils.SLIDE_NUM=1;ShowUtils.sortViewScaled=false;ShowUtils.selectedIndex=0;ShowUtils.dateHolder="";ShowUtils.fixedDate=false;ShowUtils.docInfo=undefined;ShowUtils.removeClass=function(el,_422){if(!(el&&el.className)){return;}var cls=el.className.split(" ");var ar=new Array();for(var i=cls.length;i>0;){if(cls[--i]!=_422){ar[ar.length]=cls[i];}}el.className=ar.join(" ");};ShowUtils.addClass=function(el,_427){ShowUtils.removeClass(el,_427);el.className+=" "+_427;};ShowUtils.reOrganizeSlides=function(_428){var _429=undefined;var _42a=undefined;for(var i=0;i<_428.length;i++){var _42c=_428[i];_42c.SLIDE_NUM=i;if(i+1<_428.length){_42a=_428[i+1];}else{_42a=undefined;}if(_429){_42c.PREVIOUS_SLIDE=_429;}if(_42a){_42c.NEXT_SLIDE=_42a;}_429=_42c;}};ShowUtils.setThemeColorsForShapes=function(_42d){if(_42d){ShowUtils.themeName=_42d;}if(ShowUtils.drawEditor){ShowUtils.drawEditor.setThemeColors(ShowUtils.themeName);}};ShowUtils.showSlide=function(_42e,_42f,_430,_431,_432,_433,_434,_435,_436,_437,_438,_439,_43a,_43b){slideDiv=document.createElement("div");if(_438){if(!_43b){if(_438=="sort"){slideDiv.className="sorter";slideDiv.id="sslide_"+_430.SLIDE_ID;}else{slideDiv.className="thmbBg";slideDiv.id="nslide_"+_430.SLIDE_ID;}}else{slideDiv=presenter.currentThNailDiv;}}else{var _43c=$("slidediv");if(_43c){_43c.SLIDE_INFO=undefined;_43c=undefined;}_42f.innerHTML="";slideDiv.id="slidediv";slideDiv.className="slidediv";}ShowUtils.checkAndConvertListItems(_430);slideDiv.SLIDE_INFO=_430;if(!_438){slideDiv.style.height="100%";slideDiv.style.width="100%";}slideDiv.style.overflow="hidden";var _43d=parseInt(_430.SLIDE_TYPE_ID);var _43e=undefined;if(_430.MASTER_LAYOUT_TYPE==0){_43e=_431;}else{_43e=_432;if(_43d==5){var _43f=document.createElement("div");_43f.innerHTML=_432;spanEles=_43f.getElementsByTagName("span");for(var j=0;j<spanEles.length;j++){var _441=spanEles[j];if(_441.id=="span_slidecount"){_441.innerHTML="";break;}}_43e=_43f.innerHTML;}}_43e=_43e.replace("#count#",_42e);_43e=_43e.replace("#slide#",_430.SLIDE_SEQUENCE);slideDiv.innerHTML=_43e;var _442="";var _443="";var pat="";var ele=document.getElementsByClassName("datebox",slideDiv);var _442="";for(i=0;i<ele.length;i++){if(ele[i].hasChildNodes()==true){}var _447=ele[i].getElementsByTagName("*");var _448=/^[0-1]?[0-9]$/;pat=ele[i].getAttribute("format");if(_448.test(pat)&&pat!=null){ShowUtils.selectedIndex=parseInt(pat)-1;index=ShowUtils.selectedIndex;_443=FormatDate.getPattern(parseInt(pat));ShowUtils.dateHolder=_443;_442=FormatDate.formatDate(_443);for(i=0;i<_447.length;i++){_447[i].innerHTML=_442;}}else{ShowUtils.fixedDate=true;for(i=0;i<_447.length;i++){FooterProps.DATE_TEXT=_447[i].innerHTML;}}}var _449=ShowUtils.getFirstNode(slideDiv);var _44a=document.createElement("div");_44a.className="presentation";_44a.id="presentation";_44a.innerHTML=_430.HTML_CONTENT;var _44b=_44a.getElementsByTagName("div");var _44c=_44b[0];_44c.style.visibility="visible";if(_44c.className&&(_44c.className.indexOf("importedtheme")==-1&&_44c.className.indexOf("prebuilt_theme")==-1)){_44c.setAttribute("oldpreso","1");ShowUtils.addClass(_44c,"prebuilt_theme");}slideDiv.appendChild(_44a);if(_438){var _44d=document.createElement("span");_44d.id="count";if(!_43b){_44d.innerHTML="&nbsp;"+ShowUtils.SLIDE_NUM+"&nbsp;";}else{_44d.innerHTML="&nbsp;"+presenter.currentSlide.SLIDE_SEQUENCE+"&nbsp;";}slideDiv.appendChild(_44d);}if(_438&&_43a){var divs=_42f.getElementsByTagName("div");var _44f;for(var i=0;i<divs.length;i++){var div=divs[i];if(div.id==_43a){_44f=div;break;}}if(_44f){_42f.insertBefore(slideDiv,_44f);}else{_42f.appendChild(slideDiv);}}else{if(!_43b){_42f.appendChild(slideDiv);}else{_42f.replaceChild(presenter.currentThNailDiv,slideDiv);}}_44a.style.height="100%";_44a.style.width="100%";_44c.style.width="100%";_44c.style.height="100%";var _451;if(_438){_451=document.getElementsByClassName("handout",slideDiv);}else{_451=document.getElementsByClassName("handout",_42f);}if(_451[0]&&_451[0].innerHTML.length>0&&_451[0].innerHTML!="\n"){_451[0].style.display="none";_430.SLIDE_NOTES=_451[0].innerHTML;}var _452=_44c.style.backgroundColor;if(_452!=""){if(_430.MASTER_LAYOUT_TYPE==0){var _453=ShowUtils.findElement(slideDiv,undefined,"titlelayout");_453.style.backgroundColor=_452;}else{var _454=ShowUtils.findElement(slideDiv,undefined,"slidelayout");_454.style.backgroundColor=_452;}}FlashUtils.showFlashContents(slideDiv);if(_438){if(!ShowUtils.thumbNailFontScaled){ShowUtils.fontScale(slideDiv,true);ShowUtils.vectorFontSize();ShowUtils.thumbNailFontScaled=true;_42f.appendChild(slideDiv);}if(!ShowUtils.sortViewScaled&&_438==="sort"){ShowUtils.fontScale(slideDiv,true);ShowUtils.vectorFontSize();ShowUtils.sortViewScaled=true;_42f.appendChild(slideDiv);}}else{if(!_438&&!ShowUtils.fontScaled){ShowUtils.fontScale(slideDiv);ShowUtils.fontScaled=true;return ShowUtils.showSlide(_42e,_42f,_430,_431,_432,_433,_434,_435);}}if(_438){if(!_430.PREVIOUS_SLIDE){presenter.currentThNailDiv=slideDiv;slideDiv.style.border="1px solid #FF0000";if(_44d){_44d.style["backgroundColor"]="#FFFF00";_44d.style["borderColor"]="#FF0000";_44d.style["fontWeight"]="bold";}}$("scrolldiv").style.height=($("slideContainer").offsetHeight>$("containerDiv").offsetHeight)?((100/ShowUtils.SLIDE_NUM)*(4/5)+"%"):((100/ShowUtils.SLIDE_NUM)+"%");var _455=($("scrollarea").offsetHeight-$("scrolldiv").offsetHeight)/((presenter.slidesInfo.length*(Zoom.iterVal))-1);if(presenter.slidesInfo.length>1){$("scrolldiv").style.top=($("slideContainer").offsetHeight>$("containerDiv").offsetHeight)?(((presenter.currentSlide.SLIDE_SEQUENCE-1)*Zoom.iterVal+(Zoom.iterate-1))*_455):((presenter.currentSlide.SLIDE_SEQUENCE-1)*(($("scrollarea").offsetHeight-$("scrolldiv").offsetHeight)/(presenter.slidesInfo.length-1)));}else{$("scrolldiv").style.top=($("slideContainer").offsetHeight>$("containerDiv").offsetHeight)?(((presenter.currentSlide.SLIDE_SEQUENCE)*Zoom.iterVal+(Zoom.iterate-1))*_455):"0px";}ShowUtils.SLIDE_NUM++;}if(_435&&!isLinux&&!isMac){ShowUtils.reSampleImages(_44c,_430);}var _456=null;if(_430.MASTER_LAYOUT_TYPE==0){_456=_433;}else{_456=_434;}if(!_438){ShowUtils.initRenderer(_44c,_449,_430.THUMBNAIL_DIV);_44c.style.position="absolute";_44c.style.left="0%";_44c.style.top="0%";ShowUtils.renderVectorContentToContainer(_430.VECTOR_CONTENT,_456);}else{var _457=_430.VECTOR_CONTENT;if(_457||_456){var _458=document.getElementsByClassName("slide",slideDiv)[0];if(!_457){_457=undefined;}ShowUtils.renderToThumbNailDiv(_458,slideDiv,_457,_456);}}};ShowUtils.getFirstNode=function(_459){var fsib=_459.firstChild;while(fsib&&fsib.nodeType!=1){fsib=fsib.nextSibling;}return fsib;};ShowUtils.checkAndConvertListItems=function(_45b){var _45c=document.createElement("div");_45c.innerHTML=_45b.HTML_CONTENT;var _45d=_45c.getElementsByTagName("div");var len=_45d.length;for(var n=0;n<len;n++){var _460=_45d[n];if(_460&&_460.className&&_460.className.indexOf("bulletbox")!=-1){var _461=_460.childNodes.length;var _462;for(var k=0;k<_461;k++){var _464=_460.childNodes[k];if(_464.id==="editable"){_462=_464;break;}}var _465=_462.getElementsByTagName("div");_461=_465.length;for(var p=0;p<_461;p++){var list=_465[p];if(list&&list.className&&list.className.indexOf("listitem")===0){var _468=parseInt(list.getAttribute("bullettype"));if(_468<1){var _469;var _46a=list.childNodes;var ln=_46a.length;for(var k=0;k<ln;k++){var _464=_46a[k];if(_464&&_464.className&&_464.className.indexOf("listtype")!=-1){_469=_464;break;}}if(_469&&_469.innerHTML.length>0){if(isIE){_469.innerHTML="&#"+list.getAttribute("ie_bulletcode")+";";}else{_469.innerHTML="&#"+list.getAttribute("bulletcode")+";";}}}}}}}_45b.HTML_CONTENT=_45c.innerHTML;return _45b;};var renderer=undefined;ShowUtils.drawEditor=undefined;ShowUtils.syncThumbNailView=undefined;ShowUtils.initRenderer=function(_46c,_46d,_46e){if(renderer){ShowUtils.drawEditor.setContainer(_46c,_46d,_46e);return;}var _46f=undefined;if(isIE){renderer=new VMLRenderer(ShowUtils.syncThumbNailView);}else{renderer=new SVGRenderer(ShowUtils.syncThumbNailView);}ShowUtils.drawEditor=new RichDrawEditor(_46c,_46d,_46e,renderer);ShowUtils.setThemeColorsForShapes();return ShowUtils.drawEditor;};ShowUtils.renderVectorContentToContainer=function(_470,_471){if(!_470&&!_471){return;}ShowUtils.drawEditor.renderElementsToContainer(_470,_471);};ShowUtils.renderToThumbNailDiv=function(_472,_473,vec,_475){ShowUtils.drawEditor.renderToThumbNail(_472,_473,vec,_475);};ShowUtils.findElement=function(_476,_477,id){var _479;if(_477){var eles=_476.getElementsByTagName("div");for(var i=0;i<eles.length;i++){var ele=eles[i];if(ele.className==_477){_479=ele;}}}if(id){var eles=_476.getElementsByTagName("div");for(var i=0;i<eles.length;i++){var ele=eles[i];if(ele.id==id){_479=ele;}}}return _479;};ShowUtils.fontScale=function(_47d,_47e){var _47f=22;var _480=32;var _481=_47d.offsetHeight||_47d.clientHeight;var _482=_47d.offsetWidth||_47d.clientWidth;var _483=Math.min(_481/_47f,_482/_480);var _484=false;if(!_47e){var pres=$("presentation");if(pres){var _486=ShowUtils.getFirstNode(pres);if(_486){var _487=_486.getAttribute("oldpreso");if(_487){_484=true;}}}}else{var nd=document.getElementsByClassName("slide",_47d);if(nd&&nd.length>0){var _486=nd[0];if(_486&&_486.getAttribute){var _487=_486.getAttribute("oldpreso");if(_487){_484=true;}}}}ShowUtils.fontSize(_483+"px",_47d.className,_484);if(!_47e){ShowUtils.containerFontSize=_483;}else{ShowUtils.thumbnailFontSize=_483;}if(isGe){_47d.style.display="none";_47d.style.display="block";}};ShowUtils.fontSize=function(_489,_48a,_48b){if(!(s5ss=$("s5ss"))){if(!isIE){document.getElementsByTagName("head")[0].appendChild(s5ss=document.createElement("style"));s5ss.setAttribute("media","screen, projection");s5ss.setAttribute("id","s5ss");}else{if(document.styleSheets.length==0){document.createStyleSheet();}document.s5ss=document.styleSheets[document.styleSheets.length-1];}}if(!isIE){s5ss.appendChild(document.createTextNode("div."+_48a+" {font-size: "+_489+" !important;}"));if(_48b){s5ss.appendChild(document.createTextNode("div."+_48a+" .slide ul {margin:0;font-size:"+_489+" !important}"));s5ss.appendChild(document.createTextNode("div."+_48a+" .slide ol {margin:0;font-size:"+_489+" !important}"));s5ss.appendChild(document.createTextNode("div."+_48a+" .slide li {margin:0;}"));s5ss.appendChild(document.createTextNode(".slide ul {margin:0;line-height:1.5em;}"));s5ss.appendChild(document.createTextNode(".slide ol {margin:0;line-height:1.5em;}"));s5ss.appendChild(document.createTextNode(".slide li {margin:0;line-height:1.5em;}"));s5ss.appendChild(document.createTextNode(".slide ul {margin:0;line-height:1.5em;}"));}}else{document.s5ss.addRule("div."+_48a,"font-size: "+_489+" !important;");if(_48b){document.s5ss.addRule("div."+_48a+" .slide ul","font-size:"+_489+" !important;");document.s5ss.addRule("div."+_48a+" .slide ol","font-size:"+_489+" !important;");document.s5ss.addRule("table.zs_table","font-size: "+_489+" !important;");document.s5ss.addRule(".slide ul","line-height:1.5em;");document.s5ss.addRule(".slide ol","line-height:1.5em;");document.s5ss.addRule(".slide li","line-height:1.5em;");}}};ShowUtils.resize=function(){document.getElementById("parList").style.display="none";var _48c=$("sdBarBtn");_48c.className="remContract";var _48d=0;if(isIE){_48d=document.body.clientWidth;}else{_48d=window.innerWidth;}var bDiv=$("bdiv");var _48f=$("slideArea");var _490=$("parList");var _491=$("slideContainer");_491.style.width=_48d-(_490.offsetWidth+24);bDiv.style.width=_491.offsetWidth;var fix=getWidthHeight(bDiv.offsetHeight,bDiv.offsetWidth);_48f.style.height=fix.height-2;_48f.style.width=fix.width;_48f.style.marginLeft=(bDiv.offsetWidth-parseInt(_48f.style.width))/2;_48c.style.marginLeft=4;_48c.onclick=function(){ShowUtils.restore();};ShowUtils.resizeLoadingDiv(bDiv.offsetWidth-2);};ShowUtils.restore=function(){var _493=0;if(isIE){_493=document.body.clientWidth;}else{_493=window.innerWidth;}var _494=$("parList");_494.style.display="block";var _495=_494.offsetHeight;if(remoteObj.isServer=="true"){_495=_494.offsetHeight-$("btns").offsetHeight;}var bDiv=$("bdiv");var _497=$("slideContainer");var _498=_493-(_494.offsetWidth+$("sdBtn").offsetWidth+20);_497.style.width=_498;bDiv.style.width=_498;var _499=$("slideArea");var set=getWidthHeight(_495,_498);if($("notesdiv").style.display=="block"){_499.style.height=bDiv.offsetHeight;}else{_499.style.height=_495-2;}_499.style.width=set.width;_499.style.marginLeft=(_498-set.width)/2;var _49b=$("sdBarBtn");_49b.className="remExpand";_49b.style.marginLeft=2;_49b.onclick=function(){ShowUtils.resize();};ShowUtils.resizeLoadingDiv(_498);};ShowUtils.fontScaleAndResizeContainer=function(){var _49c=$("slidediv");ShowUtils.fontScale(_49c);_49c.parentNode.appendChild(_49c);ShowUtils.drawEditor.resizeContainer(true);};ShowUtils.resizeLoadingDiv=function(_49d){var _49e=$("loadingDivServer");var _49f=$("loadingDivClient");if(_49e.style.display=="none"&&_49f.style.display=="none"){ShowUtils.fontScaleAndResizeContainer();}if(remoteObj.isServer=="true"){if(_49e.style.display=="block"){_49e.style.width=_49d;}}else{if(remoteObj.isServer=="false"){if(_49f.style.display=="block"){_49f.style.width=_49d;}}}};ShowUtils.vectorFontSize=function(){var _4a0="vecThumb";if(isIE){var _4a1=ShowUtils.thumbnailFontSize;document.s5ss.addRule("."+_4a0,"font-size: "+_4a1+"px !important;");}};ShowUtils.applyThemeToDoc=function(_4a2){var _4a3=_4a2.THEME_NAME;_4a3=_4a3.toLowerCase();var _4a4="styles/s5-styles/"+_4a3+"/theme.css";ShowUtils.removeCSS(document,_4a4);ShowUtils.importCSS(document,_4a4);};ShowUtils.removeCSS=function(doc,_4a6){if(_4a6==""){return;}var i,a,main;for(i=0;(a=doc.getElementsByTagName("link")[i]);i++){if(a.href==_4a6){if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0){headArr[0].removeChild(a);}}}};ShowUtils.importCSS=function(doc,_4ab,_4ac){if(_4ab==""){return;}if(typeof (doc.createStyleSheet)=="undefined"){var elm=doc.createElement("link");elm.rel="stylesheet";elm.href=_4ab;var _4ae=doc.getElementsByTagName("head");if(!_4ae||_4ae.length==0){_4ae=[];_4ae[0]=doc.createElement("head");doc.insertBefore(doc.body,_4ae[0]);}_4ae[0].appendChild(elm);if(_4ac){ShowUtils.addListStyles(doc);}}else{var _4af=doc.createStyleSheet(_4ab);}};ShowUtils.addListStyles=function(doc){if(!isIE){doc.getElementsByTagName("head")[0].appendChild(s5ss=doc.createElement("style"));}else{if(doc.styleSheets.length==0){doc.createStyleSheet();}doc.s5ss=doc.styleSheets[doc.styleSheets.length-1];}if(!isIE){s5ss.appendChild(doc.createTextNode("ul {margin:0;line-height:1.5em;}"));s5ss.appendChild(doc.createTextNode("ol {margin:0;line-height:1.5em;}"));s5ss.appendChild(doc.createTextNode("li {margin:0;line-height:1.5em;}"));}else{document.s5ss.addRule("ul","line-height:1.5em;padding:0;");document.s5ss.addRule("ol","line-height:1.5em;");document.s5ss.addRule("li","line-height:1.5em;padding:0;");}};ShowUtils.reSampleImages=function(_4b1,_4b2){var imgs=_4b1.getElementsByTagName("img");var len=imgs.length;for(var im=imgs.length-1;im>=0;im--){var img=imgs[im];var src=img.src;var ind=src.indexOf("ImportedImageDisplay.im");var _4b9;if(ind!=-1){_4b9="ImportedImageDisplay.im";}else{_4b9="ImageDisplay.im";}var _4ba=src.indexOf(_4b9);if(_4ba!=-1){var _4bb=getBoxDiv(img);if(_4bb&&_4bb.id.startsWith("box")){var _4bc=_4bb.offsetWidth;var _4bd=_4bb.offsetHeight;if(_4bc>0&&_4bd>0){src=src.substring(src.indexOf(_4b9),src.length);var ind=src.indexOf("width");if(ind>0){src=src.substring(0,ind-1);}var _4be=src.toLowerCase();var _4bf=_4be.indexOf(".jpg")>-1?1:0;if(!_4bf){_4bf=_4be.indexOf(".jpeg")>-1?1:0;}if(tShockwaveFound&&!isLinux&&!isMac&&_4bf){var _4c0=getImageLoader(src,_4bc,_4bd);_4bb.innerHTML=_4c0.toString();}}}}}};ShowUtils.getElementsById=function(_4c1,_4c2,id,_4c4){var _4c5=_4c1.getElementsByTagName(_4c2);var _4c6=new Array();var _4c7=_4c5.length;for(var i=0;i<_4c7;i++){if(_4c4){if(_4c5[i].id.startsWith(id)){_4c6[_4c6.length]=_4c5[i];}}else{if(_4c5[i].id==id){_4c6[_4c6.length]=_4c5[i];}}}return _4c6;};ShowUtils.getElementsByTagName=function(ele,_4ca){var _4cb=[];var _4cc=ele.childNodes;for(var k=0;k<_4cc.length;k++){var _4ce=_4cc[k];if(_4ce.nodeName==_4ca){_4cb.push(_4ce);}temp=ShowUtils.getElementsByTagName(_4ce,_4ca);for(var g=0;g<temp.length;g++){var ele=temp[g];_4cb.push(ele);}}return _4cb;};function getBoxDiv(el){var _4d1=el.parentNode;while(_4d1){if(_4d1.id.startsWith("box")){return _4d1;}_4d1=_4d1.parentNode;}return undefined;}function getImageLoader(_4d2,_4d3,_4d4){var src="image.swf";var _4d6=src+"?imagePath="+escape(_4d2)+"&cWidth="+_4d3+"&cHeight="+_4d4;var a1="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"100%\" height=\"100%\" id=\"imageLoader\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" />";var a2="<param name=\"movie\" value=\""+_4d6+"\" />";var a3="<PARAM NAME=salign VALUE=\"LT\"><param name=\"quality\" value=\"high\" /><PARAM NAME=scale VALUE=noscale><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#ffffff\" />";var a4="<embed src=\""+_4d6+"\" quality=\"high\" scale=noscale wmode=\"transparent\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" SALIGN=\"LT\" name=\"imageLoader\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";var _4db=a1+a2+a3+a4;return _4db;}function $I(){var i=0;while(i<arguments.length){var ele=$(arguments[i]);i++;ele.innerHTML=arguments[i];i++;}}function sethover(_4de){_4de.className="kidhover";}function remhover(_4df){_4df.className="kid1";}function setThmbhover(_4e0){_4e0.className="skid1hover";}function remThmbhover(_4e1){_4e1.className="skid1";}ShowUtils.getFontSize=function(){var _4e2=22;var _4e3=32;var _4e4=$("slidediv");var _4e5=_4e4.offsetHeight||_4e4.clientHeight;var _4e6=_4e4.offsetWidth||_4e4.clientWidth;var _4e7=Math.min(_4e5/_4e2,_4e6/_4e3);return _4e7;};ShowUtils.replaceSpecialCharsForDocName=function(_4e8,_4e9){if(!_4e9){_4e8=_4e8.replace(/&gt;/g,">");_4e8=_4e8.replace(/&lt;/g,"<");}else{_4e8=_4e8.replace(/>/g,"&gt;");_4e8=_4e8.replace(/</g,"&lt;");}return _4e8;};ShowUtils.replaceAllSpecialChars=function(text,_4eb){if(!_4eb){text=text.replace(/&gt;/g,">");text=text.replace(/&lt;/g,"<");text=text.replace(/&apos;/g,"'");text=text.replace(/&amp;/g,"&");text=text.replace(/&quot;/g,"\"");text=text.replace(/&nbsp;/g," ");}else{text=text.replace(/&/g,"&amp;");text=text.replace(/>/g,"&gt;");text=text.replace(/</g,"&lt;");text=text.replace(/'/g,"&apos;");text=text.replace(/"/g,"&quot;");}return text;};ShowUtils.mouseoverOfElements=function(_4ec,_4ed){var _4ee="<b>"+_4ec.title;_4ee.className="ttStyle1";if(_4ec.shrtcut){_4ee+=" ("+_4ec.shrtcut+")";}var _4ef;if(_4ec.id.trim()=="undoButton"){_4ef="</b><p> "+UndoRedo.UNDO_STACK.length+" "+_4ec.help+"</p>";}else{if(_4ec.id.trim()=="redoButton"){_4ef="</b><p> "+UndoRedo.REDO_STACK.length+" "+_4ec.help+"</p>";}else{_4ef="</b><p> "+_4ec.help+"</p>";}}_4ef.className="ttStyle2";var _4f0=(Presenter.orgId!=-1);var _4f1=(_4f0)?"#F5F8FF":"#b3e0fe";var _4f2=(_4f0)?"#3E85B1":"#6ca2cf";var _4f3=(_4f0)?"/images/spacer.gif":"/show20/aqua/images/tooltipBg.gif";Tip((_4ee+_4ef),WIDTH,200,BORDERCOLOR,_4f2,BGCOLOR,_4f1,CLICKCLOSE,"true",FADEIN,"1000",BGIMG,_4f3,FONTSIZE,"10px",SHADOWCOLOR,"#eaeaea",OFFSETX,0,OFFSETY,25,DELAY,2000);$("WzBoDy").style.backgroundRepeat="repeat-x";$("WzTtDiV").className="ttzIndex";};ShowUtils.adoptNode=function(node){var _4f5=navigator.userAgent;if(BrowserDetect.browser=="Chrome"||(BrowserDetect.browser=="FireFox"&&BrowserDetect.version>=3)||BrowserDetect.browser=="Safari"){return document.adoptNode(node);}return node;};ShowUtils.tooltipDetails=new Array();ShowUtils.addTooltipElements=function(_4f6){for(var i=1;i<=ShowUtils.toolTipforEditor[0].length;i++){var _4f8=document.createElement("textNode");var _4f9=ShowUtils.toolTipforEditor[0];_4f8.id=_4f9[i-1];var _4fa=ShowUtils.toolTipforEditor[i];_4f8.title=_4fa[1];var _4fb=ShowUtils.toolTipforEditor[i];_4f8.shrtcut=_4fb[2];var _4fc=ShowUtils.toolTipforEditor[i];_4f8.help=_4fc[3];ShowUtils.tooltipDetails[i-1]=_4f8;var _4fd=$(ShowUtils.tooltipDetails[i-1].id);if(!_4fd){continue;}Utils._addEvent(_4fd,"mouseover",function(ev){var _4ff=(!ev)?window.event:ev;var el=isIE?_4ff.srcElement:_4ff.target;var _501=el.parentNode.id;if(!_501){_501=el.id;}var _502=((ShowUtils.toolTipforEditor[0]).indexOf(_501));if(_502){ShowUtils.mouseoverOfElements(ShowUtils.tooltipDetails[_502],_4ff);}Utils._stopEvent(_4ff);});}};ShowUtils.toolTipforEditor=[["textBold","textItalic","textUnderline","textFontColor","textFontBgColor","textLeftAlign","textCenterAlign","textRightAlign","textJustifyAlign","textIncIndent","textDecIndent","textCirBullet","textNumBullet","textInsertText","textInsertImg","textInsertTag","textInsertLink","insertSpecialCharacters","smileys","shapes","themes","info","version","tags","save","export","slideshow","public","share","remote","slideview","more","newSlidett","toggleRhtPanel","undoButton","redoButton","publichelp","print","tfindNRepId","tGuides"],["textBold",js_LangObj.Bold,js_LangObj.CtrlB,js_LangObj.BoldText],["textItalic",js_LangObj.Italic,js_LangObj.CtrlI,js_LangObj.ItalicizeText],["textUnderline",js_LangObj.Underline,js_LangObj.CtrlU,js_LangObj.UnderlineText],["textFontColor",js_LangObj.FontColor,"",js_LangObj.ChangeFontColor],["textFontBgColor",js_LangObj.FontBGColor,"",js_LangObj.ChangeFontBGColor],["textLeftAlign",js_LangObj.AlignTextLeft,js_LangObj.CtrlL,js_LangObj.AlignLeft],["textCenterAlign",js_LangObj.Center,js_LangObj.CtrlE,js_LangObj.CenterText],["textRightAlign",js_LangObj.AlignTextRight,js_LangObj.CtrlR,js_LangObj.AlignRight],["textJustifyAlign",js_LangObj.Justify,"",js_LangObj.AlignTextToBothMargins+"<br><br>"+js_LangObj.AlignTextToBothMargins1],["textIncIndent",js_LangObj.IncreaseListLevel,"",js_LangObj.IncreaseIndentLevel],["textDecIndent",js_LangObj.DecreaseListLevel,"",js_LangObj.DecreaseIndent],["textCirBullet",js_LangObj.Bullets,"",js_LangObj.StartBulletedList+"<br><br>"+js_LangObj.ChooseDifferentBullet],["textNumBullet",js_LangObj.Numbering,"",js_LangObj.StartNumberedList+"<br><br>"+js_LangObj.ChooseDifferentNumbers],["textInsertText",js_LangObj.TextBox,"",js_LangObj.InsertTextBox],["textInsertImg",js_LangObj.InsertImage,"",js_LangObj.InsertFlickrImage],["textInsertTag",js_LangObj.InsertHTMLCode,"",js_LangObj.InsertEmbedCode],["textInsertLink",js_LangObj.InsertHyperlink,js_LangObj.CtrlK,js_LangObj.CreateALink],["insertSpecialCharacters",js_LangObj.InsertSpecialCharacters,"",js_LangObj.InsertDifferentSpecialCharacters],["smileys",js_LangObj.InsertSmileys,"",js_LangObj.InsertDifferentSmileys],["shapes",js_LangObj.Shapes,"",js_LangObj.InsertShape],["themes",js_LangObj.Themes,"",js_LangObj.ChangePreTheme],["info",js_LangObj.PresentationInfo,"",js_LangObj.Tab4],["version",js_LangObj.Tab5,"",js_LangObj.Versiondetails],["tags",js_LangObj.TagDetails,"",js_LangObj.PreTags],["save",js_LangObj.Save,"",js_LangObj.SaveLatestChages],["export",js_LangObj.Export,"",js_LangObj.ExportOptions],["slideshow",js_LangObj.Slideshow,"",js_LangObj.RunThisPresentation],["public",js_LangObj.Publish,"",js_LangObj.PublishPre],["share",js_LangObj.Share,"",js_LangObj.SharingOption],["remote",js_LangObj.Remote,"",js_LangObj.MakeRemotePre],["slideview",js_LangObj.SlideView,"",js_LangObj.VariousViews],["more",js_LangObj.More,"",js_LangObj.MoreOptions],["newSlidett",js_LangObj.NewSlide,"",js_LangObj.CreateASlide],["toggleRhtPanel",js_LangObj.ResizeEditorPanel,"",js_LangObj.ClickToResizePanel],["undoButton",js_LangObj.Undo,js_LangObj.CtrlZ,js_LangObj.UndoOperationPending],["redoButton",js_LangObj.Redo,js_LangObj.CtrlY,js_LangObj.RedoOperationPending],["publichelp",js_LangObj.PublicListMode,"",js_LangObj.PublicListModeDescription],["print",js_LangObj.Print,"",js_LangObj.PrintThePresOrSaveAsPDF],["tfindNRepId",js_LangObj.FindAndReplace,"",js_LangObj.FindAndReplaceDescription],["tGuides",js_LangObj.GridsAndGuides,"",js_LangObj.GridsAndGuidesDescription]];ShowUtils.showMenu=function(id,_504,ev){var ele=$(id);var pos=Utils.findXYPos(ev);if((pos.YPos+132)>(document.body.clientHeight+document.body.scrollTop)){pos.YPos=pos.YPos-121;}else{if((pos.YPos+132)>document.body.clientHeight){pos.YPos=pos.YPos+5;}}if((pos.XPos+122)>document.body.clientWidth){pos.XPos=pos.XPos-((pos.XPos+125)-document.body.clientWidth);}Utils._stopEvent(ev);ShowUtils.docInfo=DocDetails.docsInfo.DOCS_INFO[_504];Utils.displayMenu(pos,id+"menu");};ShowUtils.menuAction=function(_508){if(!Utils.isHomePage&&_508!=0&&presenter.docModified){ShowUtils.exportType=_508;presenter.currentOperation="export";presenter.saveAllSlides();return;}if(!Utils.isHomePage){ShowUtils.docInfo=presenter.currentDocInfo;}if(_508==0){presenter.saveAllSlides();}else{if(_508==1){if(Utils.isHomePage){Utils.openPopUp("dupPres",false,false,true,false);}else{if(presenter.currentDocInfo&&!presenter.docModified){presenter.docType="copy";Utils.openPopUp("dupPres");}else{presenter.currentOperation="CopyPresentation";Utils.openPopUp("unsaved");}}}else{if(_508===2){ShowUtils.exportAsHTML();}else{if(_508==3){ShowUtils.exportTo("ppt");}else{if(_508==4){ShowUtils.exportTo("pps");}else{if(_508==5){ShowUtils.exportTo("odp");}else{if(_508==6){ShowUtils.exportTo("pdf");}else{if(_508==7){var _509=function(){var _50a=$("inputValue");var _50b=_50a.value;if(_50b.trim().length>0){Presenter.storeContent();$POST("SaveCustomTheme.do","DOC_ID="+ShowUtils.docInfo.DOCUMENT_ID+"&AUTHOR_NAME="+ShowUtils.docInfo.AUTHOR_NAME+"&THEME_NAME="+_50b+"&TYPE=1",function(resp){ShowUtils.updateSaveThemeResponse(resp.responseText);});Utils.statMsg(js_LangObj.SavingTheme,1);Utils.closeDiv();}else{Utils.showErrorMessage(_50a,js_LangObj.EnterValidThemeName);}};Utils.commonInputDialog(js_LangObj.SaveThemeAs,js_LangObj.ThemeName,_509,false,"");}}}}}}}}if(Utils.isHomePage){if(Utils.currMenu){Utils.currMenu.style.display="none";}}else{if(presenter.currMenu){presenter.currMenu.style.display="none";}}};ShowUtils.exportTo=function(_50d,_50e){var _50f;if(Utils.isHomePage){_50f=ShowUtils.docInfo;}else{_50f=presenter.currentDocInfo;}if(_50f){var form=(!Utils.isHomePage&&isRemoteApiMode)?"r_exportForm":"exportForm";document[form].p_id.value=_50f.DOCUMENT_ID;document[form].p_name.value=encodeURIComponent(_50f.DOCUMENT_NAME);document[form].p_name_url.value=_50f.DOCUMENT_NAME_URL;document[form].export_to.value=_50d;if(isRemoteApiMode){document[form].r_id.value=remoteDocId;}if(_50d=="ppt"){document[form].a_t.value=ActionTypes[Actions.EXPORT][0].EXPORT_TO_PPT;}else{if(_50d=="pps"){document[form].a_t.value=ActionTypes[Actions.EXPORT][0].EXPORT_TO_PPS;}else{if(_50d=="odp"){document[form].a_t.value=ActionTypes[Actions.EXPORT][0].EXPORT_TO_ODP;}else{if(_50d=="pdf"){document[form].a_t.value=ActionTypes[Actions.EXPORT][0].EXPORT_TO_PDF;}}}}if(!_50e){document[form].ACTION.value="export";}else{document[form].ACTION.value=_50e;}document[form].submit();}};ShowUtils.exportAsHTML=function(){var _511=ShowUtils.docInfo;if(_511){var _512=encodeURIComponent(Utils.unescapeHTML(_511.DOCUMENT_NAME));var _513=encodeURIComponent(Utils.unescapeHTML(_511.DOCUMENT_NAME_URL));var _514=(isRemoteApiMode)?"r_export":"export";var url=_514+"/"+_512+".html?p_id="+_511.DOCUMENT_ID+"&p_name="+_512+"&p_name_url="+_513+((Utils.isHomePage)?"":remoteApiParam+langParam);window.open(url);}else{alert(js_LangObj.SavePreBeforeExport);}};ShowUtils.displayExportResponse=function(_516){var win=_516.contentWindow;if(!win.exportError||win.exportError.length==0){if(!win.action){return;}else{if(win.action||win.action.length>0){var f=function(){getPdfThumbnail();};Utils.openPopUp("print",false,f);}}return;}var _519=win.exportTo;_519=_519.toUpperCase();Utils.showAlertDialog(js_LangObj["SaveAs"+_519],js_LangObj.UnableToExportDocument,js_LangObj.OK,undefined,true);};ShowUtils.loadCopiedPresentation=function(_51a){Utils.statMsg(js_LangObj.CopiedPreLoading,1);window.location.href="document.do?p_id="+_51a+"&a_t="+ActionTypes[Actions.DOCUMENT][0].EDIT_DOCUMENT;};ShowUtils.createDupPresentation=function(){presenter.docNameFn();};ShowUtils.showSubMenu=function(_51b,show){var menu=$(_51b);if(menu){if(show){menu.style.display="block";}else{menu.style.display="none";}}};ShowUtils.updateSaveThemeResponse=function(_51e){if(_51e){Utils.statMsg(js_LangObj.ThemeSaved,1);var _51f=ShowUtils.isUserThemeAvailable(customThemes,1);if(!_51f){populateUserThemes("Custom");}customThemes=eval(_51e);if(selectedThemeCategory=="Custom"){changeCustomThemeDetails("Custom");}}};ShowUtils.isUserThemeAvailable=function(_520,_521){for(i=0;i<customThemes.length;i++){if(customThemes[i].TYPE==_521){isCustomTheme=true;return isCustomTheme;}}};function FlashUtils(){}var tShockwaveFound=0;var tMajorVersion=6;var tMinorVersion=1;var tRevision=0;if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows NT")>=0)){document.write("<SCRIPT LANGUAGE=VBScript type=\"text/vbscript\"> \n");document.write("<!-- // Visual basic helper required to detect Flash Player ActiveX control version information \n");document.write("Function VBGetSwfVer(i)\n");document.write("on error resume next \n");document.write("Dim swControl , swVersion \n");document.write("swVersion = 0 \n");document.write("set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\"+CStr(i)) \n");document.write("if (IsObject(swControl)) then \n");document.write("swVersion = swControl.GetVariable(\"$version\") \n");document.write("end if \n");document.write("VBGetSwfVer = swVersion \n");document.write("End Function \n");document.write("// --> \n");document.write("</SCRIPT> \n");}FlashUtils.showFlashContents=function(_522){if(!tShockwaveFound){return;}var fObj=FlashUtils.getFlashObject(_522);if(!fObj){return;}var _524=ShowUtils.getElementsById(_522,"DIV","box");var _525=new Array();var k=0;for(var c=0;c<_524.length;c++){var box=_524[c];var _529=box.getAttribute("shape");var _52a=box.getAttribute("rotation");var _52b=box.getAttribute("fillcolor");var _52c=box.getAttribute("bordercolor");var _52d=FlashUtils.getFlashObject(box);if(!_52d){continue;}else{_525[k]={FLASH_OBJ:_52d,SHAPE:_529,ROTATION:_52a,FILL_COLOR:_52b,BORDER_COLOR:_52c};k++;}}for(var k=0;k<_525.length;k++){FlashUtils.insertShape(_525[k].FLASH_OBJ,_525[k].SHAPE,_525[k].ROTATION,_525[k].FILL_COLOR,_525[k].BORDER_COLOR);}};FlashUtils.insertShape=function(_52e,_52f,_530,_531,_532){if(isIE){FlashUtils.setProps(_52e,_52f,_530,_531,_532);}else{setTimeout(function(){FlashUtils.setProps(_52e,_52f,_530,_531,_532);},500);}};FlashUtils.setProps=function(_533,_534,_535,_536,_537){if(!isIE){if(typeof _533.SetVariable!="function"){setTimeout(function(){FlashUtils.setProps(_533,_534,_535,_536,_537);},500);return;}}try{if(_534){_533.SetVariable("$jlistener.actionValue",_534);_533.TCallLabel("$jlistener","applyShape");_533.SetVariable("$jlistener.actionValue",0);_533.TCallLabel("$jlistener","applyRotation");}if(_535){_533.SetVariable("$jlistener.actionValue",_535);_533.TCallLabel("$jlistener","applyRotation");}if(_537){_533.SetVariable("$jlistener.actionValue",_537);_533.TCallLabel("$jlistener","applyBorder");}if(_536){_533.SetVariable("$jlistener.actionValue",_536);_533.TCallLabel("$jlistener","applyFill");}}catch(e){}};FlashUtils.getFlashObject=function(_538){var _539;if(isIE){_539=ShowUtils.getElementsByTagName(_538,"OBJECT");}else{_539=ShowUtils.getElementsByTagName(_538,"EMBED");}if(!_539||_539.length==0){return null;}return _539[0];};FlashUtils.JSGetSwfVer=function(i){if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var _53b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var _53c=navigator.plugins["Shockwave Flash"+_53b].description;descArray=_53c.split(" ");tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}else{flashVer=-1;}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2;}else{flashVer=-1;}}}}return flashVer;};FlashUtils.DetectFlashVer=function(_53d,_53e,_53f){reqVer=parseFloat(_53d+"."+_53f);for(i=25;i>0;i--){if(isIE){versionStr=VBGetSwfVer(i);}else{versionStr=FlashUtils.JSGetSwfVer(i);}if(versionStr==-1){return false;}else{if(versionStr!=0){if(isIE){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}versionMajor=versionArray[0];versionMinor=versionArray[1];versionRevision=versionArray[2];versionString=versionMajor+"."+versionRevision;versionNum=parseFloat(versionString);if((versionMajor>_53d)&&(versionNum>=reqVer)){return true;}else{return ((versionNum>=reqVer&&versionMinor>=_53e)?true:false);}}}}return (reqVer?false:0);};tShockwaveFound=FlashUtils.DetectFlashVer(tMajorVersion,tMinorVersion,tRevision);function Slideshow(){}var container;var currentDocInfo;var timerId;var timeValue;var controls;var finDiv;var isExtRem;var imgArr=new Array();var pausePres=false;var isExport=false;var DEF_SLIDE_TIME=9;var MAX_SLIDE_TIME=20;function initSlideShow(_540,_541){Animation.init(Slideshow,true);if(_540){isExport=true;var _542=true;var url=window.location.href;var _544=url.split("&");for(var i=0;i<_544.length;i++){var _546=_544[i].split("=");if(_546[0]=="export"&&_546[1]=="true"){_542=false;break;}var _547=_546[0].split("?");if(_547&&_547[1]=="export"&&_546[1]=="true"){_542=false;break;}}if(_542){return;}var _548=$("container");_548.style.display="none";$("mainSlideShowDiv").style.display=$("slideshowContainer").style.display="block";for(var i=0;i<Slideshow.slidesInfo.length;i++){var info=Slideshow.slidesInfo[i];if(isIE){info.VECTOR_CONTENT=info.VML_CONTENT;}else{info.VECTOR_CONTENT=info.SVG_CONTENT;}}updateSlideContent();resizeContainer();}addEventHandlers();ShowUtils.reOrganizeSlides(Slideshow.slidesInfo);initMiscDetails(_541);startSlideShow();}function setSlideNumber(_54a){$("slideNumber").value=_54a;}function initMiscDetails(_54b){finDiv=$("findiv");controls=$("controls");_54b=(!_54b)?0:_54b;$("numberOfSlides").innerHTML=Slideshow.slidesInfo.length;if(_54b!=0){jumpToSlide(_54b,true);}addMouseOverEventsForControls($("controls"));}function initContainer(){container=$("showcontainer");container.style.display="block";controls.style.display=(Slideshow.hideToolbar)?"none":"block";}function openInFullWindow(id,_54d,_54e,rf){if(_54d){isExport=true;}var _550=1;if(Slideshow.currentSlide){_550=Slideshow.currentSlide.SLIDE_NUM+1;}var url=(isExport)?"ViewRemImpURL.sas?r_id="+isExtRem+"&IFRAME=no"+"&SLIDE="+_550:"embed?id="+id+"&SLIDE="+_550+"&P_STIME="+_54e;if(rf!=0){url=window.location.href;url=url+"&SLIDE="+_550+"&P_STIME="+_54e;}Utils.openNewWindow(url,"slideshow1");}function startSlideShow(_552){showFinDiv(false);if(!Slideshow.isIframe){var fDiv=$("fullscreendiv");fDiv.style.display="block";var f=function(){Utils.reduceOpacity(fDiv,undefined,100);};setTimeout(f,2000);}if(Slideshow.isIframe){displayMenus(null,"slideshowmenu","out");}presentationEnd=false;Animation.CustomAnimation.stopCurrentAnimation();initContainer();if(Slideshow.hideToolbar){$("toolbarprop").innerHTML=js_LangObj.ShowToolBar;}if(Slideshow.setFullScreen){$("ratioprop").innerHTML=js_LangObj.AspectRatio;fitToScreen();}else{resizeContainer();}var _555=(timeValue&&timeValue>0);if((!_555||pausePres)&&_552&&window.incrementViewCount){window.incrementViewCount();}if(_552){Slideshow.currentSlide=Slideshow.slidesInfo[0];}showCurrentSlide();if(_555&&!pausePres){timerId=setTimeout(function(){showNextSlide(true);},(timeValue*1000));resetControlButtons(false);$("time").value=timeValue;}if(!_552&&!isExport){setTimeout(function(){preloadImages();},2000);}}isEndDivDisplayed=function(){var _556=$("enddiv");return !(_556.style.display=="none");};isFinDivDisplayed=function(){return !(finDiv.style.display=="none");};function showCurrentSlide(_557){presentationEnd=isEndDivDisplayed();if(!presentationEnd){showFinDiv(false);}if(!Slideshow.currentSlide){Slideshow.currentSlide=Slideshow.slidesInfo[0];}var _558=Slideshow.currentSlide.SLIDE_NUM;setSlideNumber(_558+1);var _559=parseInt(Slideshow.currentSlide.SLIDE_TYPE_ID);if(_559==0){displayDate(Slideshow.titleLayout,_559);}else{displayDate(Slideshow.slideLayout,_559);}displayPageNum(Slideshow.currentSlide);Animation.doSlideTransition(container,((_557)?2:Slideshow.currentSlide.TRANSITION_TYPE),Slideshow.currentSlide.TRANSITION_SPEED);var _558=Slideshow.currentSlide.SLIDE_NUM;setSlideNumber(_558+1);if(window.showSlideTranscriptForSlide){window.showSlideTranscriptForSlide(_558);}if(window.showNotes){window.showNotes(Slideshow.currentSlide.SLIDE_NOTES);}if(presentationEnd){positionFinDiv();}}function getSlideNotes(){return Slideshow.currentSlide.SLIDE_NOTES;}function getTextContentForSlide(){var pres=$("presentation");return Utils.getVisibleText(pres);}function preloadImages(){var _55b=Slideshow.slidesInfo.length;for(var i=1;i<_55b;i++){var info=Slideshow.slidesInfo[i];var div=document.createElement("div");div.innerHTML=info.HTML_CONTENT;var _55f=div.getElementsByTagName("img");var len=_55f.length;for(var j=0;j<len;j++){var _562=new Image();_562.src=_55f[j].src;imgArr.push(_562);}}preloadVectorImages(imgArr);}function preloadVectorImages(_563){var _564=new Array();_564[0]=Slideshow.titleVector;_564[1]=Slideshow.slideVector;for(var i=1;i<Slideshow.slidesInfo.length;i++){_564[_564.length]=Slideshow.slidesInfo[i].VECTOR_CONTENT;}ShowUtils.drawEditor.preloadImages(_564,_563);}function changeControlImg(_566){changeControlImgForDiffToolbars(_566,"");}function changeControlImgForDiffToolbars(_567,_568){if(!_568){_568="";}var pImg=$(_568+"play");pImg.setAttribute("isPause",_567);if(_567==="true"){pImg.title=js_LangObj.Play;pImg.className="play";}else{pImg.title=js_LangObj.Pause;pImg.className="pause";}}function resetControlButtons(_56a){pausePres=_56a;changeControlImg(_56a+"");}function showNextSlide(_56b){if(Animation.isTransitionInProgress()){return Animation.stopTransition();}if(Animation.CustomAnimation.hasMore()){Animation.CustomAnimation.showNext();return checkAndSetTimer();}if(Animation.CustomAnimation.stopCurrentAnimation()){return;}if(Slideshow.currentSlide){if(isFinDivDisplayed()){return;}showFinDiv(false);Slideshow.currentSlide=Slideshow.currentSlide.NEXT_SLIDE;if(timeValue&&timeValue>0&&!Slideshow.currentSlide&&_56b&&Slideshow.loop){timerId=setTimeout(function(){startSlideShow(true);},timeValue*1000);}else{if(!Slideshow.currentSlide){endOfPresentation();return;}}showCurrentSlide();checkAndSetTimer();}}function checkAndSetTimer(){if(timerId&&!pausePres){clearSlideShowTimer();if(timeValue&&timeValue>0){timerId=setTimeout(function(){showNextSlide(true);},timeValue*1000);}}}function showPreviousSlide(){if(Animation.isTransitionInProgress()){return Animation.stopTransition();}if(Animation.CustomAnimation.stopCurrentAnimation()){return;}showFinDiv(false);if(Slideshow.currentSlide){Slideshow.currentSlide=Slideshow.currentSlide.PREVIOUS_SLIDE;showCurrentSlide((Slideshow.currentSlide?false:true));}else{initContainer();showLastSlide();}if(timerId&&!pausePres){clearSlideShowTimer();if(timeValue&&timeValue>0){timerId=setTimeout(function(){showNextSlide(true);},timeValue*1000);}}}function showFirstSlide(){Slideshow.currentSlide=Slideshow.slidesInfo[0];showCurrentSlide();}function showLastSlide(){Slideshow.currentSlide=Slideshow.slidesInfo[Slideshow.slidesInfo.length-1];showCurrentSlide();}var pos="";var menustatus=false;var isGoToLink=function(ele){return (ele.id&&ele.id=="gotoreqslide"&&ele.nodeName.toLowerCase()=="a");};var isLink=function(ele){return (ele.nodeName.toLowerCase()=="a"&&ele.parentNode.id!="gotoSlide");};function addEventHandlers(){document.onkeydown=handleKeyEvents;if(!isIE){var _56e=function(ev){var ev=(!ev)?window.event:ev;var tar=ev.target;if(isLink(tar)){ev.stopPropagation();if(isGoToLink(tar)){return handleMouseEvents(ev);}}};document.addEventListener("click",_56e,true);document.addEventListener("mousedown",function(ev){var ev=(!ev)?window.event:ev;var tmp=ev.target;if(isLink(tmp)){ev.stopPropagation();}},true);}var _573=$("showcontainer");_573.onmousedown=Slideshow.allowBrowserSelect;_573.onmouseup=Slideshow.mouseupEvent;document.oncontextmenu=function(ev){var _575=(!ev)?window.event:ev;var el=isIE?_575.srcElement:_575.target;if(!presentationEnd&&!Slideshow.hideMenu){menustatus=true;var _577=$("mainSlideShowDiv");pos=getHtWt(_575,_577,(Slideshow.isIframe)?5:6);displayMenus(pos,"slideshowmenu");}Event.stop(_575);};}var x_fix;var y_fix;Slideshow.allowBrowserSelect=function(ev){var pos=Utils.findXYPos(ev);x_fix=pos.XPos;y_fix=pos.YPos;};Slideshow.mouseupEvent=function(ev){var pos=Utils.findXYPos(ev);var _57c=pos.XPos;var _57d=pos.YPos;if(x_fix==_57c&&y_fix==_57d){ev=(!ev)?window.event:ev;var tar=(isIE)?ev.srcElement:ev.target;if(isLink(tar)&&!isGoToLink(tar)){return;}handleMouseEvents(ev);}};function displayMenus(pos,id,_581){var _582=$(id);if(_582){if(_581=="out"){_582.style.display="none";return;}_582.style.left=pos.XPos;_582.style.top=pos.YPos;_582.style.display="block";if(Slideshow.isIframe&&id=="slideshowmenu"){var mli=$("goToLi");mli.className+=" hideGoto";mli.style.border="0px";}}}var pos="";getHtWt=function(_584,_585,_586){pos=Utils.findXYPos(_584);var _587=(Slideshow.isIframe)?160:270;if(pos.XPos+_587>=_585.offsetWidth){pos.XPos=_585.offsetWidth-_587;}var _588=23*_586;var _589=_585.offsetHeight;if(Slideshow.slidesInfo.length>4&&!Slideshow.isIframe){_588+=(((Slideshow.slidesInfo.length>10)?6:Slideshow.slidesInfo.length-4)*22);}if((pos.YPos+_588)>=_589){pos.YPos=_589-_588;}return pos;};Slideshow.isInsideIframe=function(){return (window.parent!=window);};Slideshow.gotoSlides=function(){var _58a=Slideshow.slidesInfo.length;var _58b=$("gotoSlidesMenu");_58b.style.height=(_58a*22)+2;_58b.style.width="110px";if(parseInt(_58b.style.height)>222){_58b.style.height="224px";}for(var i=0;i<(_58a-1);i++){var _58d=document.createElement("li");_58d.id="gotoSlide";var _58e=document.createElement("a");_58e.id=i+1;_58e.style["cursor"]="pointer";_58e.innerHTML="<img style=\" background-image:url(/images/spacer.gif)\" src=\"/images/spacer.gif\"/>"+js_LangObj.Slide+" "+(i+2);_58e.onclick=function(){jumpToSlide(this.id);displayMenus(null,"slideshowmenu","out");};if(isIE){_58e.onmouseover=function(){var _58f=$(this.id);_58f.style.backgroundColor="#95BBD4";_58f.className="mouseOverFontColor";};_58e.onmouseout=function(){var _590=$(this.id);_590.style.backgroundColor="#E3F4FF";_590.className="mouseOutFontColor";};}_58d.appendChild(_58e);_58d.style.height="22px";_58b.appendChild(_58d);}if(isIE){_58b.className="subMenuBorder";}};function loadAllSlides(){var _591=$("goToLi");if(Slideshow.isIframe){_591.style.display="none";}else{if(isIE){_591.style.display="block";}Slideshow.gotoSlides();}}Slideshow.rightClickMenu=function(_592){$("slideshowmenu").style.display="none";switch(_592){case "nextSlide":showNextSlide(true);break;case "prevSlide":showPreviousSlide(true);break;case "eop":endOfPresentation();break;case "hidetb":if(!Slideshow.hideToolbar){Slideshow.hideToolbar=true;controls.style.display="none";$("toolbarprop").innerHTML=js_LangObj.ShowToolBar;}else{Slideshow.hideToolbar=false;controls.style.display="block";$("toolbarprop").innerHTML=js_LangObj.HideToolBar;}if(Slideshow.setFullScreen){fitToScreen();}else{resizeContainer();}showCurrentSlide(true);break;case "scrnSize":toggleFitToScreen();break;}};function toggleFitToScreen(){var _593=$("ratioprop");var _594=$("ftoscr");if(Slideshow.setFullScreen){Slideshow.setFullScreen=false;resizeContainer();_594.title=_593.innerHTML=js_LangObj.FitToScreen;_594.className="ftscrn";}else{Slideshow.setFullScreen=true;fitToScreen();_594.title=_593.innerHTML=js_LangObj.AspectRatio;_594.className="norscrn";}showCurrentSlide(true);}function fitToScreen(){var cont=$("slideshowContainer");var _596=$("controls");var _597=$("showcontainer");with(cont.style){width=height="100%";}with(_596.style){width="100%";}positionFinDiv();cont.style.borderTopWidth="0px";checkAndChangeControls();_597.style.height=cont.offsetHeight-_596.offsetHeight;checkAndChangeFinDiv();}function handleKeyEvents(key){if(!key){key=event;key.which=key.keyCode;}if(isIE){var el=isIE?key.srcElement:key.target;if(el&&el.id&&key.which==13){if(el.id=="slideNumber"){jumpToSlide(el.value-1);}else{if(el.id=="time"){changeSlideTiming(true,el.value);}}return;}}if(isFinDivDisplayed()){return;}if(key.ctrlKey||key.shiftKey||key.altKey){return;}var _59a=false;switch(key.which){case 32:case 34:case 39:case 40:showNextSlide(false);_59a=true;break;case 33:case 37:case 38:_59a=true;showPreviousSlide();break;case 36:_59a=true;showFirstSlide();break;case 35:_59a=true;showLastSlide();break;case 27:isFullScreen=false;window.close();break;}if(_59a){stopKeyEvent(key);return false;}}stopKeyEvent=function(e){if(isIE){e.cancelBubble=true;e.returnValue=false;}else{e.preventDefault();e.stopPropagation();}};function handleMouseEvents(e){var _59d=(!e)?window.event:e;if(isFinDivDisplayed()||Utils.isRightClick(_59d)){return;}var el=isIE?_59d.srcElement:_59d.target;var tmp=el;for(;tmp!=null;tmp=tmp.parentNode){if(tmp.id=="controls"){displayMenus(null,"slideshowmenu","out");}else{if(isGoToLink(tmp)){Utils._stopEvent(_59d);tmp.onclick=function(){return false;};var _5a0=tmp.getAttribute("slidenum");var _5a1=/^([a-zA-Z.]+)$/;if(_5a1.test(_5a0)){if(_5a0=="Previous"){showPreviousSlide(true);}else{if(_5a0=="Next"){showNextSlide(true);}else{if(_5a0=="First"){showFirstSlide(true);}else{if(_5a0=="Last"){showLastSlide(true);}}}}}else{var len=Slideshow.slidesInfo.length;for(i=0;i<len;i++){var id=Slideshow.slidesInfo[i].SLIDE_ID;var _5a4=false;if(id==_5a0){jumpToSlide(Slideshow.slidesInfo[i].SLIDE_SEQUENCE-1);_5a4=true;break;}}if(!_5a4){jumpToSlide(_5a0-1);}}return;}}}var _5a5;if(window.event){_5a5=window.event.srcElement;e=window.event;}else{_5a5=e.target;}if((_5a5.tagName=="a"&&_5a5.getAttribute("_type")!="image")||isParentOrSelf(_5a5,"controls")||isParentOrSelf(_5a5,"embed")||isParentOrSelf(_5a5,"object")){return true;}if(_5a5.id!="gotoSlidesMenu"){displayMenus(null,"slideshowmenu","out");showNextSlide(false);}}function isParentOrSelf(_5a6,id){if(!_5a6||_5a6==null||_5a6.nodeName=="BODY"){return false;}else{if((_5a6.id&&_5a6.id.toLowerCase()==id.toLowerCase())||_5a6.tagName.toLowerCase()==id.toLowerCase()){return true;}else{return isParentOrSelf(_5a6.parentNode,id);}}}function displayPageNum(_5a8){var _5a9=document.getElementById("span_slidecount");if(_5a9){var _5aa=_5a9.innerHTML;_5aa=_5aa.replace("#slide#",_5a8.SLIDE_NUM+1);_5aa=_5aa.replace("#count#",Slideshow.slidesInfo.length);_5a9.innerHTML=_5aa;_5a9.style.display="block";}else{return;}}function displayDate(_5ab,_5ac){var _5ad=new Date();var _5ae=((_5ad.getDate())+"/"+((_5ad.getMonth())+1)+"/"+(_5ad.getFullYear()));var _5af=_5ab;_5af=_5af.replace("#date#",_5ae);if(_5ac==0){Slideshow.titleLayout=_5af;}else{Slideshow.slideLayout=_5af;}}function changeSlideTiming(_5b0,_5b1){if(timerId){clearSlideShowTimer();}if(!_5b1){var _5b2=$("time");timeValue=_5b2.value;timeValue=parseInt(timeValue);timeValue=(_5b0)?(timeValue+1):(timeValue-1);if(timeValue>MAX_SLIDE_TIME){timeValue=MAX_SLIDE_TIME;}else{if(timeValue<0){timeValue=0;}}_5b2.value=timeValue;}else{timeValue=_5b1;}if(isEndDivDisplayed()){return;}if(timeValue>0){resetControlButtons(false);timerId=setTimeout(function(){showNextSlide(true);},timeValue*1000);}else{if(timeValue==0){if(timerId){clearSlideShowTimer();}resetControlButtons(true);}}}var presentationEnd=false;function endOfPresentation(){if(!Slideshow.currentSlide||Slideshow.currentSlide.SLIDE_NUM!=Slideshow.slidesInfo.length-1){var _5b3=Slideshow.slidesInfo.length-1;Slideshow.currentSlide=Slideshow.slidesInfo[_5b3];}if(Slideshow.isIframe){if(!exportAsHTML){changeControlImg("true");}}if(timerId){clearSlideShowTimer();}if(Slideshow.isIframe&&timeValue&&timeValue>0&&!pausePres&&Slideshow.loop){timerId=setTimeout(function(){startSlideShow(true);},timeValue*1000);}else{if(!isExport&&Slideshow.showRelated&&Slideshow.isIframe&&Slideshow.relatedDocsCount>=0){showRelatedPreso(1);}else{showEndDiv(true);}}if(window.showSlideTranscriptForSlide){window.showSlideTranscriptForSlide(-1);presentationEnd=true;}if((!Slideshow.isIframe)){presentationEnd=true;}}function showFinDiv(show){if(show){positionFinDiv();}else{hideAllOverLays();}var _5b5=$("findiv");var v=(show)?"block":"none";_5b5.style.display=v;presentationEnd=show;}function showEndDiv(show){hideAllOverLays();showFinDiv(show);$("enddiv").style.display=(show)?"block":"none";}function showInfo(show,info){var _5ba=$("play").getAttribute("isPause");if(_5ba!="true"){playPresentation(true);}hideAllOverLays();showFinDiv(show);$(info).style.display=(show)?"block":"none";$("small_embedCode").value=$("embedCode").value=getIframeSnippet();$("permalink").value=$("small_url_id").value=Slideshow.publicLinkURL;}function getIframeSnippet(){var par=$("mainSlideShowDiv");var _5bc="<iframe height='"+par.offsetHeight+"px' width='"+par.offsetWidth+"px' "+Slideshow.iframeParams+"></iframe>";return _5bc;}function toggleInfo(){var cont=$("showcontainer");var info=(cont.offsetHeight<230)?"small_pptInfo":"pptInfo";var disp=$(info).style.display;showInfo((disp=="none"),info);}function hideAllOverLays(){$("enddiv").style.display="none";if(!isExport){$("pptInfo").style.display="none";$("small_pptInfo").style.display="none";$("relatedPresos").style.display="none";}}function showRelatedPreso(show){hideAllOverLays();var cont=$("slideshowContainer");if(Slideshow.relatedDocsCount<=0||cont.offsetHeight<280||cont.offsetWidth<375){return showEndDiv(true);}showFinDiv(show);$("relatedPresos").style.display=(show)?"block":"none";var _5c2=$("related_content");if(show&&$("rel_next").getAttribute("page")){return;}showRelatedPresentations(1);}function showRelPresentations(ele){showRelatedPresentations(ele.getAttribute("page")*1);}function showRelatedPresentations(_5c4){_5c4=(!_5c4)?1:_5c4;var _5c5="id="+Slideshow.documentId+"&page="+_5c4;var next=$("rel_next");var prev=$("rel_prev");next.setAttribute("page",_5c4+1);if(_5c4==1){prev.style.display="none";}else{prev.style.display="inline";prev.setAttribute("page",_5c4-1);}$POST("RelatedPublicDocs.sas",_5c5,function(resp){animateAndShowRelatedPresentations(resp);});}function animateAndShowRelatedPresentations(resp){var rel=$("related_content");Utils.reduceOpacity(rel,function(){rel.innerHTML=resp.responseText;var next=$("rel_next");var cnt=$("relatedcount").value*1;var ind=$("lastindexdisplayed").value*1;if(cnt<=ind){next.style.display="none";}else{next.style.display="inline";}Utils.increaseOpacity(rel);},undefined,75);}function positionFinDiv(){var _5ce=$("findiv");var cont=$("showcontainer");var _5d0=Element.getStyle(_5ce,"width").split("px")[0]*1+4;var _5d1=Element.getStyle(_5ce,"height").split("px")[0]*1+4;with(_5ce.style){left=(cont.offsetWidth-_5d0)/2+cont.offsetLeft;top=(cont.offsetHeight-_5d1)/2;}}function playPresentation(_5d2){var _5d3=$("play").getAttribute("isPause");var _5d4=$("time");timeValue=_5d4.value;var _5d5=isEndDivDisplayed();if(_5d2){_5d3="false";}else{showFinDiv(false);hideAllOverLays();}if(_5d3=="true"){resetControlButtons(false);if(timeValue&&timeValue>0){if(timerId){clearSlideShowTimer();}if(_5d5){Slideshow.currentSlide=Slideshow.slidesInfo[0];startSlideShow(true);}else{timerId=setTimeout(function(){showNextSlide(true);},timeValue*1000);}}else{if(timeValue==0){timeValue=DEF_SLIDE_TIME;}_5d4.value=timeValue;if(_5d5){Slideshow.currentSlide=Slideshow.slidesInfo[0];showCurrentSlide();}timerId=setTimeout(function(){showNextSlide(true);},timeValue*1000);}}else{if(timerId){clearSlideShowTimer();resetControlButtons(true);}}}function getVectorDiv(_5d6){var _5d7=vmlDiv=undefined;var obj=new Object();var eles=_5d6.getElementsByTagName("div");for(var i=0;i<eles.length;i++){var e=eles[i];if(e){if(e.id=="svgContent"){_5d7=e;}if(e.id=="vmlContent"){vmlDiv=e;}}}if(_5d7){obj.SVG=_5d7.innerHTML;_5d7.parentNode.removeChild(_5d7);}if(vmlDiv){obj.VML=vmlDiv.innerHTML;vmlDiv.parentNode.removeChild(vmlDiv);}return obj;}function updateSlideContent(){var _5dc=document.getElementsByClassName("presentation",document);for(var k=0;k<_5dc.length;k++){var _5de=_5dc[k];var _5df=getVectorDiv(_5de);var _5e0=Slideshow.slidesInfo[k];_5e0.HTML_CONTENT=_5de.innerHTML;_5e0.VECTOR_CONTENT=RichDrawEditor.getVectorWithReplacedImagePaths(_5e0.VECTOR_CONTENT,_5df);_5de.parentNode.removeChild(_5de);}var _5e1=document.getElementById("tlayout");Slideshow.titleLayout=_5e1.innerHTML;var _5e2=document.getElementById("slayout");Slideshow.slideLayout=_5e2.innerHTML;var off=(isIE)?"vml":"svg";var aOff=(!isIE)?"vml":"svg";var _5e5=document.getElementById(off+"TitleVector");if(_5e5){Slideshow.titleVector=RichDrawEditor.getVectorWithReplacedImagePaths(Slideshow.titleVector,_5e5.innerHTML,true);_5e5.parentNode.removeChild(_5e5);}var _5e6=document.getElementById(off+"SlideVector");if(_5e6){Slideshow.slideVector=RichDrawEditor.getVectorWithReplacedImagePaths(Slideshow.slideVector,_5e6.innerHTML,true);_5e6.parentNode.removeChild(_5e6);}var _5e7=document.getElementById(aOff+"TitleVector");if(_5e7){_5e7.parentNode.removeChild(_5e7);}var _5e8=document.getElementById(aOff+"SlideVector");if(_5e8){_5e8.parentNode.removeChild(_5e8);}}function hasClass(_5e9,_5ea){if(!_5e9.className){return false;}return (_5e9.className.search("(^|\\s)"+_5ea+"(\\s|$)")!=-1);}function jumpToSlide(_5eb,_5ec){if(Animation.isTransitionInProgress()){Animation.stopTransition();}Animation.CustomAnimation.stopCurrentAnimation();var smax=Slideshow.slidesInfo.length;_5eb=(!_5eb)?0:_5eb;_5eb=(_5eb<0)?0:_5eb;_5eb=(_5eb>=smax)?smax-1:_5eb;setSlideNumber(_5eb+1);Slideshow.currentSlide=Slideshow.slidesInfo[_5eb];showFinDiv(false);if(!_5ec){showCurrentSlide();}}window.onresize=function(){if(!container){return;}if(Slideshow.setFullScreen){fitToScreen();}else{resizeContainer();}if(menustatus==true){displayMenus(null,"slideshowmenu","out");}ShowUtils.fontScaled=false;showCurrentSlide(true);};resizeContainer=function(){var cont=$("slideshowContainer");var _5ef=$("showcontainer");var _5f0=$("controls");var h,w;if(window.innerHeight){h=window.innerHeight;}else{if(document.body.clientHeight){h=document.body.clientHeight;}}if(window.innerWidth){w=window.innerWidth;}else{if(document.body.clientWidth){w=document.body.clientWidth;}}var wH=h;var _5f4=getWidthHeight(h,w);checkAndChangeControls(_5f4.width);if(!Slideshow.hideToolbar){h=h-_5f0.offsetHeight;}var dim=getWidthHeight(h,w);var modH=dim.height+_5f0.offsetHeight;_5ef.style.height=dim.height;cont.style.height=modH;cont.style.width=dim.width;_5f0.style.width=dim.width;with(cont.style){borderTopWidth=(wH-modH)/2;borderTopColor="black";borderTopStyle="solid";}checkAndChangeFinDiv(dim.width);positionFinDiv();};function checkAndChangeFinDiv(_5f7){if(isExport){return;}var cont=$("showcontainer");var _5f9=(_5f7)?_5f7:cont.offsetWidth;var _5fa=$("findiv");var _5fb=(_5f9<=450)?"small_findiv":"findiv";_5fa.className=_5fb;if(_5f9>610){_5fa.style.width="600px";_5fa.style.height="460px";}else{if(_5f9<=450&&_5f9>200){_5fa.style.width=cont.offsetWidth-31;_5fa.style.height=cont.offsetHeight-18;if(isIE){_5fa.style.width=cont.offsetWidth-25;_5fa.style.height=cont.offsetHeight-8;}}else{_5fa.style.width=_5fa.style.height="";}}}function checkAndChangeControls(_5fc){var _5fd=$("controls");var _5fe=(_5fc)?_5fc:_5fd.offsetWidth;var _5ff=(_5fe<=350)?"small_controls":"controls";_5fd.className=_5ff;}function getWidthHeight(h,w){var cH=h;var cW=h*4/3;if(cW>w){cW=w;cH=w*3/4;}return {height:cH,width:cW};}function clearSlideShowTimer(){clearTimeout(timerId);timerId=undefined;}function getToolbarButtons(_604){var _605=_604.getElementsByTagName("input");var _606=[];for(var i=0;i<_605.length;i++){if(_605[i].type=="button"){_606[_606.length]=_605[i];}}_606[_606.length]=$("fullscr");_606[_606.length]=$("menu");_606[_606.length]=$("ftoscr");return _606;}function addMouseOverEventsForControls(_608){var _609=getToolbarButtons(_608);_609.each(function(_60a){if(_60a){_60a.onmouseover=function(){onMouseOverOfToolbarButtons(this);};_60a.onmouseout=function(){onMouseOutOfToolbarButtons(this);};}});}function onMouseOverOfToolbarButtons(ele){var _60c=ele.className;if(_60c.indexOf("mo_")==-1){ele.className="mo_"+_60c;}if(_60c==="hide"){return onMouseOverOfToolbarButtons($("hideleft"));}}function onMouseOutOfToolbarButtons(ele){var _60e=ele.className;var _60f=_60e.indexOf("_");if(_60f>-1){ele.className=_60e.substring(_60f+1,_60e.length);}if(_60e==="mo_hide"){return onMouseOutOfToolbarButtons($("hideleft"));}}function emailLink(_610){var pre=(_610)?"small_":"";var _612=$(pre+"emailidlist");var _613=$(pre+"from_id");var _614=$(pre+"emailLink");var _615=$(pre+"publicthnks");var val=_612.value;name=_613.value.trim();if((!name||name.length==0)){alert(js_LangObj.EnterYourName);_613.value="";_613.focus();return;}var val=checkValidEmailIds(_612.value);if(!val||val.length==0){alert(js_LangObj.ProvideCorrectEmail);_612.focus();return;}if(val==""){return false;}_614.disabled=true;var _617=val;_617=Utils.cleanupAndAddParamArray(_617,"invitemail");$POST("/publish.do","from="+name+_617+"&link="+encodeURIComponent(Slideshow.publicLinkURL)+"&p_name="+Slideshow.docNameUrl+"&a_t="+ActionTypes[Actions.PUBLISH][0].SEND_PUBLIC_URL+"&p_id="+Slideshow.documentId,function(resp){_615.style.display="inline";setTimeout(function(){_615.style.display="none";},3000);_612.value="";_612.focus();_614.disabled=false;});return false;}function checkValidEmailIds(_619){var _61a=/^[a-zA-Z0-9]([\w-.+]*)@([\w-.]*)(.[a-zA-Z]{2,6}(.[a-zA-Z]{2}){0,2})$/i;var _61b="";_619=_619.replace(/[\n\r]+/g,",");_619=_619.replace(/\ /g,",");_619=_619.split(",");for(i=0;i<_619.length;i++){var _61c=_619[i];_61c=Utils.trim(_61c);if(_61c!=""){if(!_61a.test(_61c)){return false;}else{_61b+=_61c+", ";}}}var _61d=new Array();_619=Utils.cleanupArray(_619,_61d);return _619;}function replaceEMailIDS(_61e){_61e=_61e.replace("\n",",");_61e=_61e.replace(" ",",");return _61e;}function toggleTab(menu){var id=menu.id;var _621=$("small_emailCont");var _622=$("small_embedCont");var _623=$("small_urlCont");menu.className="sel";if(id=="email_tab"){_621.style.display="block";_622.style.display="none";_623.style.display="none";$("embed_tab").className="";$("url_tab").className="";}else{if(id=="url_tab"){_623.style.display="block";_622.style.display="none";_621.style.display="none";$("embed_tab").className="";$("email_tab").className="";}else{_623.style.display="none";_621.style.display="none";_622.style.display="block";$("email_tab").className="";$("url_tab").className="";}}}var selectedIndexValue;if(!window.Node||!window.Node.ELEMENT_NODE){var Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};}function Utils(){}Utils.eventHandlers=[];Utils.dragHandle=undefined;Utils.requiredMajorVersion=6;Utils.requiredMinorVersion=0;Utils.requiredRevision=0;Utils.popupName=undefined;Utils.hasRightVersion=false;Utils.divId=undefined;Utils.skipPopupArray=[];Utils.POP_UPS=new Array();Utils.searchResults=undefined;Utils._addEvent=function(el,_625,func,name){if(name){var _628=Utils.eventHandlers[_625+name];if(_628){Utils._removeEvent(el,_625,_628,name);}Utils.eventHandlers[_625+name]=func;}else{var _628=Utils.eventHandlers[_625];if(_628){Utils._removeEvent(el,_625,_628);}Utils.eventHandlers[_625]=func;}if(isIE){el.attachEvent("on"+_625,func);}else{el.addEventListener(_625,func,false);}};Utils._removeEvent=function(el,_62a,func,name){if(!func){return;}if(isIE){el.detachEvent("on"+_62a,func);}else{el.removeEventListener(_62a,func,false);}if(name){Utils.eventHandlers[_62a+name]=null;}else{Utils.eventHandlers[_62a]=null;}};Utils._stopEvent=function(ev){if(isIE){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}};Utils.isRightClick=function(_62e){if(_62e.which&&_62e.which==3){return true;}else{if(_62e.button&&_62e.button==2){return true;}}return false;};Utils.findLeftPos=function(obj){var left=0;while(obj.offsetParent){left+=obj.offsetLeft;obj=obj.offsetParent;}return left;};Utils.findTopPos=function(obj){var top=0;while(obj.offsetParent){top+=obj.offsetTop;obj=obj.offsetParent;}return top;};Utils.validateDoc=function(_633){var text=js_LangObj.OK;if(!_633||_633.length==0){alert(js_LangObj.ProvideName);return false;}if(_633.trim().length==0){alert(js_LangObj.ProvideValidName);return false;}return true;};Utils.hide=function(arr){for(var i=0;i<arr.length;i++){var id=arr[i];var el=$(id);if(el&&el.style.display!="none"){el.style.display="none";}}};Utils.openSlider=function(val){var _63a=$(val);if(_63a&&_63a.style.display=="none"){startSlider(_63a,true,false,"none");}};Utils.closeSlider=function(val){var _63c=$(val);if(_63c&&_63c.style.display!="none"){startSlider(_63c,false,false,"none");}};Utils.isTemplate=function(node){if(typeof (node.className)=="string"&&Utils.hasClass(node,"template")){return true;}return false;};Utils.getVisibleText=function(node){if(!node){return null;}var _63f=!node.style;var _640=Utils.isTemplate(node);_63f=!(node.style&&(node.style.display=="none"||_640));if(node.nodeType==Node.TEXT_NODE&&_63f){return node.nodeValue;}if(node.nodeType==Node.ELEMENT_NODE&&_63f){var _641=node.childNodes;var k=0;var text="";while(k<_641.length){var str=this.getVisibleText(_641[k]);if(str){text+=str;}k++;}return text;}return null;};Utils.getText=function(node){if(!node){return null;}if(node.nodeType==Node.TEXT_NODE){return node.nodeValue;}if(node.nodeType==Node.ELEMENT_NODE){var _646=node.childNodes;var k=0;var text="";while(k<_646.length){var str=this.getText(_646[k]);if(str){text+=str;}k++;}return text;}return null;};String.prototype.trim=function(){a=this.replace(/^\s+/,"");return a.replace(/\s+$/,"");};Utils.findDocDimension=function(){if(isIE){return {width:document.body.offsetWidth,height:document.body.offsetHeight};}else{return {width:window.screen.width-document.body.scrollLeft,height:window.screen.height-document.body.scrollTop};}};Utils.hideCombos=function(_64a){if(isIE){var v=(!_64a)?"visible":"hidden";var tFn=$("tFontName");var tFs=$("tFontSize");if(tFn){tFn.style.visibility=v;}if(tFs){tFs.style.visibility=v;}}};Utils.clearPrevBulletProp=function(){if(!Utils.isHomePage){BulletProps.prevBulletProp=undefined;}};Utils.closeDiv=function(id){if(Utils.cancelAction){Utils.cancelAction();Utils.cancelAction=undefined;}Utils.republish=true;Utils.clearPrevBulletProp();Utils.hideCombos(false);Utils.popupOpened=false;Utils.popupName=undefined;if($("publichelp")){Utils._removeEvent($("publichelp"),"mouseover",Utils.eventHandlers["mouseover"+"publichelp"]);ShowUtils.addTooltipElements(false);}$("popupdiv").style.display="none";Utils.divId=undefined;};Utils.closeDialog=function(){FindAndReplace.findnrep=false;Utils.clearPrevBulletProp();Utils.popupOpened=false;$("propertydialog").style.display="none";if($("col")){$("col").style.display="none";}Utils.divId=undefined;if(ShowUtils.drawEditor){ShowUtils.drawEditor.closeOpenDialogs();}};Utils.openDiv=function(id){var ele=$(id);ele.style.display="block";Utils.divId=id;return ele;};Utils.createElement=function(tag,_652,_653){var el=document.createElement(tag);if(_652){var _655=_652.split(" ");for(var i in _655){var _657=_655[i];if(typeof _657=="string"){var _658=_657.split("=");var name=_658[0];var _65a=_658[1];if(name&&_65a){el.setAttribute(name,_65a);if(name=="class"){el.className=_65a;}}else{el.setAttribute(name,"");}}}}if(_653){var _65b=null;if(typeof _653=="string"){_65b=document.createTextNode(_653);}else{_65b=_653;}el.appendChild(_65b);}return el;};Utils.getURL=function(){var url="http://"+Utils.serverName;if(Utils.serverPort!=80){if(Utils.serverPort!=443){url+=":"+Utils.serverPort;}}return url;};Utils.getSchemeURL=function(){var url=presenter.urlScheme+Utils.serverName;if(Utils.serverPort!=80){if(Utils.serverPort!=443){url+=":"+Utils.serverPort;}}return url;};Utils.importCSS=function(doc,_65f,_660){if(_65f==""){return;}if(typeof (doc.createStyleSheet)=="undefined"){var elm=doc.createElement("link");elm.rel="stylesheet";elm.href=_65f;var _662=doc.getElementsByTagName("head");if(!_662||_662.length==0){_662=[];_662[0]=doc.createElement("head");doc.insertBefore(doc.body,_662[0]);}_662[0].appendChild(elm);if(_660){Utils.addListStyles(doc);}}else{var _663=doc.createStyleSheet(_65f);}};Utils.addListStyles=function(doc){if(!isIE){doc.getElementsByTagName("head")[0].appendChild(s5ss=doc.createElement("style"));}else{if(doc.styleSheets.length==0){doc.createStyleSheet();}doc.s5ss=doc.styleSheets[doc.styleSheets.length-1];}if(!isIE){s5ss.appendChild(doc.createTextNode("ul {margin:0;line-height:1.5em;}"));s5ss.appendChild(doc.createTextNode("ol {margin:0;line-height:1.5em;}"));s5ss.appendChild(doc.createTextNode("li {margin:0;line-height:1.5em;}"));}else{document.s5ss.addRule("ul","line-height:1.5em;padding:0;");document.s5ss.addRule("ol","line-height:1.5em;");document.s5ss.addRule("li","line-height:1.5em;padding:0;");}};Utils.log=function(_665,_666){var ta=$("log");if(!ta){return;}if(_666){ta.value=_665;}else{ta.value=ta.value+"\n"+_665;}};Utils.showMsg=function(_668,_669,x,y,_66c){var _66d=$(_668+"_msg");if(!_66d){return;}_66d.innerHTML=_669;if(x&&y){_66d.style.position="absolute";_66d.style.left=x+"px";_66d.style.top=y+"px";}if(_66c){_66d.style.width=_66c;}_66d.style.display="inline";};Utils.hideMsg=function(_66e,_66f){var _670=$(_66e+"_msg");if(!_670){return;}if(!_66f){_670.innerHTML="";_670.style.display="none";}else{setTimeout(function(){_670.innerHTML="";_670.style.display="none";},_66f);}};Utils.removeClass=function(el,_672){if(!(el&&el.className)){return;}var cls=el.className.split(" ");var ar=new Array();for(var i=cls.length;i>0;){if(cls[--i]!=_672){ar[ar.length]=cls[i];}}el.className=ar.join(" ");};Utils.addClass=function(el,_677){Utils.removeClass(el,_677);el.className+=" "+_677;};Utils.hasClass=function(el,_679){var cls=el.className.split(" ");return cls.find(function(_67b){if(_67b==_679){return true;}});};Utils.disableEle=function(id){var ele=$(id);Utils.addClass(ele,"buttonDisabled");};Utils.enableEle=function(id){var ele=$(id);Utils.removeClass(ele,"buttonDisabled");};Utils.findXYPos=function(_680){var ev=(!_680)?window.event:_680;var posx=0;var posy=0;if(ev.pageX||ev.pageY){posx=ev.pageX;posy=ev.pageY;}else{if(ev.clientX||ev.clientY){posx=ev.clientX+document.body.scrollLeft;posy=ev.clientY+document.body.scrollTop;}}return {XPos:posx,YPos:posy};};Utils.removeCSS=function(doc,_685){if(_685==""){return;}var i,a,main;for(i=0;(a=doc.getElementsByTagName("link")[i]);i++){if(a.href==_685){if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0){headArr[0].removeChild(a);}}}};Utils.getLinkObj=function(doc,_68a){if(_68a==""){return;}var i,a,main;for(i=0;(a=doc.getElementsByTagName("link")[i]);i++){var _68e=a.getAttribute("href");if(_68e==_68a){if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0){return a;}}}return undefined;};Utils.getPos=function(el){var r={offsetLeft:el.offsetLeft,offsetTop:el.offsetTop};if(el.offsetParent){var tmp=Utils.getPos(el.offsetParent);r.offsetLeft+=tmp.offsetLeft;r.offsetTop+=tmp.offsetTop;r.offsetRight+=tmp.offsetRight;}return r;};Utils.documentClick=function(ev){var el=isIE?ev.srcElement:ev.target;var div=$("preContainer");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.style.display="none";Utils._removeEvent(document,"mousedown",Utils.documentClick);}};Utils.showDiv=function(_695){Effect.Appear(_695);};Utils.showProcessMsg=function(msg,_697){var div=$(_697);div.style.display="inline";};Utils.hideProcessMsg=function(_699){var div=$(_699);div.style.display="none";};Utils.disableButton=function(_69b){var _69c=$(_69b);_69c.className="";_69c.disabled=true;};Utils.enableButton=function(_69d){var _69e=$(_69d);_69e.className="usrBtn";_69e.disabled=false;};Utils.JSGetSwfVer=function(i){if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var _6a0=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var _6a1=navigator.plugins["Shockwave Flash"+_6a0].description;descArray=_6a1.split(" ");tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}else{flashVer=-1;}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2;}else{flashVer=-1;}}}}return flashVer;};Utils.DetectFlashVer=function(_6a2,_6a3,_6a4){reqVer=parseFloat(_6a2+"."+_6a4);for(i=25;i>0;i--){if(isIE){versionStr=VBGetSwfVer(i);}else{versionStr=Utils.JSGetSwfVer(i);}if(versionStr==-1){return false;}else{if(versionStr!=0){if(isIE){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}versionMajor=versionArray[0];versionMinor=versionArray[1];versionRevision=versionArray[2];versionString=versionMajor+"."+versionRevision;versionNum=parseFloat(versionString);if((versionMajor>_6a2)&&(versionNum>=reqVer)){return true;}else{return ((versionNum>=reqVer&&versionMinor>=_6a3)?true:false);}}}}return (reqVer?false:0);};Utils.cleanupArray=function(temp,_6a6,len){var err=1;for(i=0;i<temp.length;i++){if(len&&len<=_6a6.length){break;}for(j=0;j<_6a6.length;j++){if(temp[i]==_6a6[j]){err=0;}}if(err==1){var clen=temp[i];clen=Utils.trim(clen);if(clen!=""){if(clen.indexOf("(")!=-1&&clen.indexOf(")")!=-1){if(clen.indexOf("(")!=-1&&clen.indexOf(")")!=-1){clen=clen.substring(clen.indexOf("(")+1,clen.indexOf(")"));clen=clen.trim();}_6a6.push(clen);}else{_6a6.push(clen);}}}err=1;}return _6a6;};Utils.cleanupAndAddParamArray=function(temp,_6ab){var err=1;var eIds="";for(i=0;i<temp.length;i++){var clen=temp[i];clen=Utils.trim(clen);if(clen!=""){if(clen.indexOf("(")!=-1&&clen.indexOf(")")!=-1){clen=clen.substring(clen.indexOf("(")+1,clen.indexOf(")"));clen=clen.trim();}eIds=eIds+"&"+_6ab+"=";eIds=eIds+encodeURIComponent(clen);}}return eIds;};Utils.getFlashObject=function(_6af,_6b0,_6b1,_6b2){if(Utils.hasRightVersion){var _6b3="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+"width=\"100%\" height=\"100%\""+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\"shapes\">"+"<param name=\"movie\" value=\"templates/flashobjects/shapes.swf?shape=arrow&UPD=\""+Utils.JSCRIPT_VERSION+"><param name=\"quality\" value=\"high\" ><param name=\"bgcolor\" value=\"#ffffff\" ><param name=\"wmode\" value=\"transparent\" ><param name=\"src\" value=\"templates/flashobjects/shapes.swf?shape=arrow\"><param name=\"scale\" value=\"exactfit\"><param name=\"menu\" value=\"false\">"+"<embed src=\"templates/flashobjects/shapes.swf?shape=arrow&UPD=\""+Utils.JSCRIPT_VERSION+" wmode=\"transparent\" quality=\"high\" bgcolor=\"#ffffff\" "+"width=\"100%\" height=\"100%\" name=\"shapes\""+" loop=\"false\""+" menu=\"false\""+" quality=\"high\""+" scale=\"exactfit\""+" align=\"center\""+" allowScriptAccess=\"sameDomain\""+" type=\"application/x-shockwave-flash\""+" swLiveConnect=\"true\""+" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ></embed>"+"</object>";return _6b3;}return undefined;};Utils.getFlashMovieObject=function(_6b4){if(window.document[_6b4]){return window.document[_6b4];}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[_6b4]){return document.embeds[_6b4];}}else{return $(_6b4);}};Utils.limitChar=function(id,no,_6b7){if($(id).value.length>no){$(id).value=$(id).value.substring(0,no);}else{$(_6b7).innerHTML=no-$(id).value.length;}};function onResizeComplete(_6b8,_6b9,_6ba,_6bb){var box=Box.currentSelectedBox;var _6bd=box.boxDiv.offsetLeft;var _6be=box.boxDiv.offsetTop;Utils.log("initial left and top values : "+box.boxDiv.style.left+"  "+box.boxDiv.style.top);Utils.log("initial offsetLeft :"+_6bd+"   "+(_6bd/box.boxDiv.offsetParent.offsetWidth)*100);Utils.log("initial offsetTop : "+_6be+"   "+(_6be/box.boxDiv.offsetParent.offsetHeight)*100);Utils.log("initial width and height : "+box.boxDiv.style.width+"   "+box.boxDiv.style.height);var left=_6bd+_6ba;var top=_6be+_6bb;var _6c1=(left/box.boxDiv.offsetParent.offsetWidth)*100;var _6c2=(top/box.boxDiv.offsetParent.offsetHeight)*100;Utils.log("changed left and top values : "+_6c1+"  "+_6c2);Utils.log("changed offsetLeft :"+left+"   "+(left/box.boxDiv.offsetParent.offsetWidth)*100);Utils.log("changed offsetTop :"+top+"   "+(top/box.boxDiv.offsetParent.offsetHeight)*100);var _6c3=(_6b8/box.boxDiv.offsetParent.offsetWidth)*100;var _6c4=(_6b9/box.boxDiv.offsetParent.offsetHeight)*100;var _6c5=(40/box.boxDiv.offsetParent.offsetWidth)*100;var _6c6=(40/box.boxDiv.offsetParent.offsetHeight)*100;Utils.log("changed width and height : "+(_6c3+_6c5)+"   "+(_6c4+_6c6));box.boxDiv.style.left=_6c1+"%";box.boxDiv.style.top=_6c2+"%";box.boxDiv.style.width=_6c3+_6c5+"%";box.boxDiv.style.height=_6c4+_6c6+"%";}Utils.disableRightClick=function(_6c7,id){var ev=(!_6c7)?window.event:_6c7;var _6ca=Utils.isRightClick(ev);if(!_6ca){return;}var _6cb=(isIE)?ev.srcElement:ev.target;var _6cc=false;while(_6cb!=null){if(_6cb.id==id||_6cb.name==id){_6cc=true;break;}_6cb=_6cb.parentNode;}if(_6cc){Utils._stopEvent(ev);}};Utils.getElementsByName=function(_6cd,_6ce,name){var _6d0=_6cd.getElementsByTagName(_6ce);var _6d1=new Array();var _6d2=_6d0.length;for(var i=0;i<_6d2;i++){var div=_6d0[i];var _6d5="";if(div.name){_6d5=div.name;}else{_6d5=div.getAttribute("name");}if(_6d5!=undefined&&_6d5.length>0){if(_6d5==name){_6d1[_6d1.length]=div;}}}return _6d1;};function onRotation(_6d6){}function onRotationRelease(_6d7){var _6d8=Box.currentSelectedBox;_6d8.setAttribute("rotation",_6d7);presenter.syncThumbNailView();}Utils.tellAFriend=function(){var val=document.tell_a_friendform.inviteemails.value;var name=document.tell_a_friendform.username.value;if(val.length==0){return false;}$POST("SendFriendInvitation.sas","inviteEmail="+val+"&from="+name);($("invitethnks")).style.display="inline";setTimeout(function(){($("invitethnks")).style.display="none";},3000);document.tell_a_friendform.inviteemails.value="";document.tell_a_friendform.inviteemails.focus();return false;};Utils.createIFrame=function(){var _6db=$("slideContainer").offsetWidth;var _6dc=$("slideContainer").offsetHeight;FindAndReplace.iframe=doTheIframe("iframe",50,50,_6dc,_6db);FindAndReplace.div=FindAndReplace.iframe.contentWindow.document.createElement("div");};function doTheIframe(_6dd,_6de,_6df,_6e0,_6e1){FindAndReplace.create_ifrm=true;ifrm=document.createElement("iframe");ifrm.setAttribute("name",_6dd);ifrm.setAttribute("id",_6dd);ifrm.style.width=_6e1+"px";ifrm.style.height=_6e0+"px";ifrm.style.top=_6de+"px";ifrm.style.left=_6df+"px";ifrm.style.zindex=2000;ifrm.style.border=20;ifrm.style.visibility="hidden";ifrm.style.position="absolute";document.body.appendChild(ifrm);return ifrm;}Utils.popupOpened=false;Utils.openPopUp=function(name,_6e3,_6e4,_6e5,_6e6){if(name=="public"){Utils.republish=true;}if(FindAndReplace.findnrep==true){Utils.createIFrame();FindAndReplace.searchval=null;FindAndReplace.replacement=null;FindAndReplace.changeSearch=false;FindAndReplace.userprompt=false;if((Box.currentSelectedBox)&&(FindAndReplace.searchval==null)){FindAndReplace.sel=presenter.editor._editor._getSelection();FindAndReplace.range=presenter.editor._editor._createRange(FindAndReplace.sel);}FindAndReplace.rep=false;FindAndReplace.searchStart=true;FindAndReplace.boxNo=0;FindAndReplace.ifrm=0;FindAndReplace.i=-1;FindAndReplace.findnrep=true;FindAndReplace.direction=null;FindAndReplace.lastsearch=null;}if(!Utils.isHomePage){if(presenter.isDocumentViewOnly()){if(name=="showTime"||name=="footer"){return;}}}Utils.popupOpened=true;Utils.popupName=name;if(!_6e3){Utils.hideCombos(true);}if(!_6e5&&presenter.currMenu){presenter.currMenu.style.display="none";}if(!_6e6&&!_6e5&&!_6e3&&name!="bullet"&&name!="confirmationDialog"&&name!="createlink"){Presenter.storeContent();}var _6e7="/show20/popups/"+name+".jsp";if(Utils.POP_UPS[name]){Utils.popUP(Utils.POP_UPS[name],name,_6e3,_6e5);if(_6e4){_6e4();}}else{$GET(Utils.POPUP_URL,function(resp){Utils.POP_UPS[name]=resp.responseText;Utils.popUP(resp.responseText,name,_6e3,_6e5);if(_6e4){_6e4();}},"POPUP_NAME="+name+((Utils.isHomePage)?"":remoteApiParam+langParam));}Utils.divId=name;};Utils.cancelAction=undefined;Utils.showConfirmationDialog=function(_6e9,_6ea,_6eb,_6ec,_6ed,_6ee,_6ef,_6f0,_6f1){var _6f2=function(){var _6f3=$("approveButton");var _6f4=$("cancelButton");$("confirmationTitle").innerHTML=_6e9;$("confirmMainText").innerHTML=_6ea;if(_6ee){$("skipText").innerHTML=_6ee;}if(_6eb){$("conSkipCheck").onchange=_6eb;}if(_6ed){_6f3.value=_6ed;}if(_6ec){_6f3.onclick=function(){_6ec();Utils.closeDiv();return;};}else{_6f3.onclick=function(){Utils.closeDiv();return;};}var disp=(_6ef)?"none":"block";$("skipCheckBox").style.display=disp;if(_6ef&&!_6ec){_6f4.style.display="none";}if(!_6ec&&!_6ed){_6f3.style.display="none";}var _6f6=$("extraButton");_6f6.style.display=(_6f1)?"inline":"none";if(_6f1){_6f6.value=_6f1.extraButtonText;_6f6.onclick=function(){_6f1.extraButtonAction();};if(_6f1.cancelAction){Utils.cancelAction=_6f1.cancelAction;_6f4.onclick=function(){_6f1.cancelAction();Utils.closeDiv();};}if(_6f1.cancelButtonText){_6f4.value=_6f1.cancelButtonText;}}};Utils.openPopUp("confirmationDialog",false,_6f2,_6f0);};Utils.commonInputDialog=function(_6f7,_6f8,_6f9,_6fa,_6fb){var _6fc=function(){if(_6f7){$("pageTitle").innerHTML="<b>"+_6f7+"</b>";}if(_6f8){$("inputName").innerHTML=_6f8;}var _6fd=$("inputValue");if(_6fd){_6fd.value=_6fb;}if(_6f9){$("getInputValue").onclick=_6f9;}else{Utils.closeDiv();return;}};Utils.openPopUp("commonInputDialog",false,_6fc,_6fa);};Utils.showAlertDialog=function(_6fe,_6ff,_700,_701,_702){Utils.showConfirmationDialog(_6fe,_6ff,undefined,_701,_700,undefined,true,_702);};Utils.updateSkipCheck=function(key,_704,_705){if(!Utils.isHomePage&&isRemoteApiMode){Utils.updateSkipCheckArray(key,_704,_705);return;}$POST("Setting.do","VALUE="+_704+"&NAME="+key,function(resp){Utils.updateSkipCheckArray(key,resp.responseText,_705);});};Utils.getSkipValue=function(key){var val=Utils.skipPopupArray[key];if(!val){return false;}if(val=="true"||val==true){return true;}return false;};Utils.updateSkipCheckArray=function(key,_70a,_70b){var _70c=true;if(!_70a||_70a=="false"||_70a=="null"){_70c=false;}Utils.skipPopupArray[key]=_70c;if(_70b){_70b();}};Utils.popUP=function(resp,name,_70f,_710){if(_70f){Utils.closeDialog();$("propertiescontainer").innerHTML=resp;if(name=="boxprops"){BoxProps.toggleItem(BoxProps.currentId);}else{if(name=="insertSpecialCharacters"||name=="insertSmileys"||name=="findandreplace"){var _711=$("insertDialog");var _712=$("dialog_handle");if(!_710){_711.style.position="absolute";new Draggable(_711,{handle:_712});}else{if(_712){_712.style.cursor="default";}}if(name=="insertSpecialCharacters"){displayChar();var left=screen.width-(screen.width*0.68)-_711.width;_711.style.left=left+"px";}else{if(name=="insertSmileys"){insertSmileyEmoticons();}}}}}else{$("optioncontainer").innerHTML=resp;}Utils.updateInfo(name);if(_70f){Effect.Appear($("propertydialog"));}else{var _711=$("mainTable");var _712=$("popup_handle");if(!_710){_711.style.position="absolute";new Draggable(_711,{handle:_712});}else{if(_712){_712.style.cursor="default";}}var optC=$("optioncontainer");var cEle=Utils.getFirstNode(optC);var _716=cEle.offsetWidth;if(!_716||_716==0){_716=cEle.width;}if(!_716||_716==0){_716=cEle.style.width;}if(_716){optC.style.marginLeft="";optC.style.marginRight="";_716=_716+"";_716=_716.split("px")[0];var left=(screen.width/2-_716/2);cEle.style.left=left;}else{optC.style.marginLeft="auto";optC.style.marginRight="auto";}$("popupdiv").style.display="block";var veil=document.getElementsByClassName("veil",document)[0];if(veil){veil.style.height=document.body.scrollHeight;}}Utils.updateInfoAfterDisplay(name);};Utils.updateInfo=function(name){if(name==="public"){presenter.sharing.displayPublicUrl();if(presenter.currentDocInfo.DOCUMENT_STATUS=="1"){$("publicList").style.display="none";}}else{if(name==="newslide"){presenter.selectSlide($("frstSlide"),1);}else{if(name==="createlink"){if(presenter.linkHTML.length>0){$("selText").value=presenter.linkHTML;$("selText").readOnly=true;if(presenter.editor._editor.range_link){var a=presenter.editor._editor.getParentElement();if(a.nodeName.toLowerCase()=="a"){presenter.editor._editor.editText_link=a;}else{var text=a.firstChild.nodeValue;if(a.nodeName.toLowerCase()!="a"){for(;a!=null;a=a.parentNode){if(a.nodeName.toLowerCase()=="a"){presenter.linkHTML=text;presenter.editor._editor.editText_link=a;break;}}}}}if(presenter.editor._editor.editText_link){var a=presenter.editor._editor.editText_link;var url=a.getAttribute("href");var _71c=url.substring(0,7);var _71d=url.indexOf("?");if(a.id!="gotoreqslide"){if(_71c!="mailto:"){$("linkUrl").value=a.getAttribute("href");$("subject").value="";$("email").value="";presenter.showUrlTab();}else{$("linkUrl").value="";$("subject").value=url.substring(url.indexOf("subject")+8,url.length);$("email").value=url.substring(7,_71d);presenter.showEmailAddressTab();}}else{presenter.showSlidesLinkTab();$("linkUrl").value="";var _71e=a.getAttribute("slidenum");var _71f=/^([a-zA-Z.]+)$/;var _720=0;if(_71f.test(_71e)){if(_71e=="Previous"){_720=0;}else{if(_71e=="Next"){_720=1;}else{if(_71e=="First"){_720=2;}else{if(_71e=="Last"){_720=3;}}}}$("relative").checked=true;$("absolute").checked=false;$("slideselect").style.display="none";$("relativeselect").style.display="block";$("relativeselect").selectedIndex=_720;}else{$("relative").checked=false;$("absolute").checked=true;$("slideselect").style.display="block";$("relativeselect").style.display="none";var len=presenter.slidesInfo.length;var _722=0;for(i=0;i<len;i++){var id=presenter.slidesInfo[i].SLIDE_ID;if(id==_71e){_722=presenter.slidesInfo[i].SLIDE_SEQUENCE-1;}}$("slideselect").selectedIndex=_722;}}$("linktitle").value=a.getAttribute("title");var _725=a.getAttribute("target");var _726;if(_725=="_blank"){_726=0;}else{if(_725==""){_726=1;}else{if(_725=="_self"){_726=2;}else{if(_725=="_top"){_726=3;}}}}$("targetselect").selectedIndex=_726;}}else{$("selText").readOnly=false;}}else{if(name==="footer"){if(FooterProps.FOOTER_SLIDE_NO!=""){$("slideNum").checked=true;}var _727;var _728;var _729=new Array();var _72a=$("sel").options;for(var i=0;i<_72a.length;i++){_727=_72a[i].value;_729[i]=FormatDate.getPattern(parseInt(_727));_728=FormatDate.formatDate(_729[i]);_72a[i].text=_728;}if(FooterProps.FOOTER_DATE!=""){$("footerdate").checked=true;if(ShowUtils.fixedDate!=true){if($("fixed").checked!=true){$("variable").checked=true;}$("sel").disabled="";if(userLanguage!="ja"&&ShowUtils.selectedIndex==14){$("sel").options[13].selected="selected";}else{$("sel").options[ShowUtils.selectedIndex].selected="selected";}FooterProps.DATE_FORMAT=$("sel").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;$("txt").value=FooterProps.DATE_TEXT;}else{$("fixed").checked=true;$("txt").disabled="";$("sel").disabled="disabled";if(userLanguage!="ja"&&ShowUtils.selectedIndex==14){$("sel").options[13].selected="selected";}else{$("sel").options[ShowUtils.selectedIndex].selected="selected";}$("txt").value=FooterProps.DATE_TEXT;FooterProps.DATE_FORMAT=$("txt").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;}}else{$("fixed").disabled="disabled";$("variable").disabled="disabled";$("sel").disabled="disabled";$("txt").disabled="disabled";}if(FooterProps.FOOTER_SHOWON_FIRST_SLIDE){$("titleSlideFooter").checked=true;}$("footerText").value=FooterProps.FOOTER_TEXT;if((FooterProps.FOOTER_TEXT).length>0){$("footerTextStatus").checked=true;}}else{if(name==="dupPres"){var _72b;if(Utils.isHomePage){_72b=ShowUtils.docInfo.DOCUMENT_NAME;}else{_72b=presenter.currentDocInfo.DOCUMENT_NAME;}_72b=Utils.unescapeHTML(_72b);var _72c=$("nameDoc");_72c.value=_72b;}else{if(name==="showTime"){var _72d=$("slidshowTime");_72d.value=presenter.currentDocInfo.SLIDESHOW_TIME;}else{if(name=="boxprops"){BoxProps.updateBoxInfo();}else{if(name=="shapeprops"){ShowUtils.drawEditor.fillShapeProperties();}else{if(name=="bullet"){BulletProps.updateBulletInfo();BulletProps.addEventsForBulletTypes();}else{if(name==="publish"){if(Presenter.orgId!=-1){$("skipMsgtr").style.display="none";}var _72e=Utils.replaceParams(js_LangObj.OrgPublicWarning,new Array(Presenter.orgName));$("pubMsg").innerHTML=_72e;if(presenter.makePublic){if(presenter.corporatePublic){if($("latestLink")){$("latestLink").style.display="none";}if($("publicList")){$("publicList").style.display="none";}$("orgembed").style.display="block";$("perembed").style.display="none";var _72f=Utils.replaceParams(js_LangObj.PublicWithinOrg,new Array(Presenter.orgName));$("popup_handle").innerHTML=_72f;}else{$("perembed").style.display="block";if($("latestLink")){$("latestLink").style.display="block";}if($("publicList")){$("publicList").style.display="block";}$("popup_handle").innerHTML=js_LangObj.MakePublic;$("orgembed").style.display="none";}}if(presenter.publicEmbed){if(presenter.corporatePublic){$("orgembed").style.display="block";$("perembed").style.display="none";if($("latestLink")){$("latestLink").style.display="none";}if($("publicList")){$("publicList").style.display="none";}var _730=Utils.replaceParams(js_LangObj.EmbedWithinOrg,new Array(Presenter.orgName));$("popup_handle").innerHTML=_730;}else{$("orgembed").style.display="none";$("perembed").style.display="inline";if($("publicList")){$("publicList").style.display="block";}if($("latestLink")){$("latestLink").style.display="block";}$("popup_handle").innerHTML=js_LangObj.EmbedSlideshow;}}}else{if(name=="privateEmbed"){var note=$("privateEmbedNote");var _732=$("extPublicStatMsg");var _733=$("orgPubStat");var _734=$("privateStatMsg");var _735=$("privateEmbedMsg");var _736=$("orgPubPreso");var _737=$("extPubPreso");$("orgPubStatMsg").innerHTML=Utils.replaceParams(js_LangObj.OrgPublishStatusMsg,new Array("<span style='font-weight:bold;'>"+Presenter.orgName+"</span>"));$("orgPub").innerHTML=Utils.replaceParams(js_LangObj.OrgPublishPresentation,new Array("<span style='font-weight:bold;'>"+Presenter.orgName+"</span>"));if(presenter.currentDocInfo.DOCUMENT_STATUS=="2"){note.removeChild(_734);note.removeChild(_735);note.removeChild(_736);note.removeChild(_733);note.removeChild(_737);}else{if(presenter.currentDocInfo.DOCUMENT_STATUS=="1"){note.removeChild(_732);note.removeChild(_734);note.removeChild(_735);note.removeChild(_736);if(Presenter.sharedUser=="true"){note.removeChild(_737);}}else{if(presenter.currentDocInfo.DOCUMENT_STATUS=="0"){if(Presenter.sharedUser=="true"){note.removeChild(_737);note.removeChild(_736);}note.removeChild(_732);note.removeChild(_733);if(Presenter.orgId==-1&&Presenter.sharedUser=="false"){note.removeChild(_736);}}}}$("privateEmbedUrl").value="<iframe src= \""+presenter.embedUrl+"\" height=\"335\" width=\"450\"  scrolling=no frameBorder=\"0\" style=\"border:1px solid #AABBCC\" name=\""+presenter.currentDocInfo.DOCUMENT_NAME+"\"></iframe>";}}}}}}}}}}}};Utils.updateInfoAfterDisplay=function(name){if(name==="dupPres"){var _739=$("nameDoc");_739.focus();_739.select();}else{if(name==="insertimage"){presenter.getImages(ImageDisplay.MY_LIBRARY);}else{if(name==="showTime"){var _73a=$("slidshowTime");_73a.focus();_73a.select();}else{if(name==="remote"){var _73b=$("removeRemote");var _73c=$("startRemote");if(Presenter.sharedUser=="true"&&_73b){_73b.style.display="none";_73c.style.marginRight="12px";}else{if(Presenter.sharedUser=="true"&&_73b){_73b.style.display="block";_73c.style.marginRight="0px";}}presenter.remote.updateRemote();}else{if(name==="share"){if(presenter.sharedDet){presenter.sharing.loadSharedDet();}else{presenter.sharing.openShare();}}else{if(name==="notify"){presenter.sharing.openNotifyMail();}else{if(name==="public"){if(presenter.currentDocInfo.DOCUMENT_STATUS=="1"){$("publicList").style.display="none";}if(presenter.makePublic){$("popup_handle").innerHTML=js_LangObj.MakePublic;}if(presenter.publicEmbed){$("popup_handle").innerHTML=js_LangObj.EmbedSlideshow;}if(presenter.publicUrl){$("publicUrl").select();presenter.publicUrl=false;}else{if(presenter.publicEmbed){presenter.publicEmbed=false;$("embedUrl").select();}else{if(presenter.emailPublicUrl){presenter.emailPublicUrl=false;$("emailoption").style.display="block";}else{if(presenter.publicMode){presenter.publicMode=false;$("publicmodedet").style.display="block";}}}}ShowUtils.addTooltipElements(true);}else{if(name==="inserthtml"){if(Box.currentSelectedBox){var div=Box.currentSelectedBox;var ele;if(div.firstChild){ele=div.firstChild.innerHTML;}if(ele){$I("popup_handle",js_LangObj.ModifyHTMLCodeSnippet);var _73f=$("htmltext");if(ele.parentNode){_73f.value=ele.parentNode.innerHTML;}else{_73f.value=ele;}_73f.focus();div.style.display="none";}else{$I("popup_handle",js_LangObj.InsertHTMLCodeSnippet);var _740=$("htmltext");_740.value="";_740.focus();}}else{$I("popup_handle",js_LangObj.InsertHTMLCodeSnippet);var _740=$("htmltext");_740.value="";_740.focus();}}else{if(name=="print"){if(Presenter.noPdf=="true"){$("saveaspdf").style.display="none";}if(Presenter.noPrint=="true"){$("print").style.display="none";}if(Presenter.saveaspdf){$("printTitle").innerHTML=js_LangObj.SaveAsPDF;}else{$("printTitle").innerHTML=js_LangObj.Print;}}}}}}}}}}};Utils.statusMsgTimer=undefined;Utils.statMsg=function(msg,_742,_743,keep){if(_742){Utils.closeDiv();}if(Utils.statusMsgTimer){clearTimeout(Utils.statusMsgTimer);Utils.statusMsgTimer=undefined;}var col=(_743)?"red":"green";var _746=$("msgSpan");with(_746){innerHTML=msg;style.display="block";style.backgroundColor=col;}if(!keep){Utils.statusMsgTimer=setTimeout(function(){_746.style.display="none";},3000);}};Utils.trim=function(str){if(str.length>0){while(str.charAt(0)==" "){str=str.substring(1,str.length);}while(str.charAt(str.length-1)==" "){str=str.substring(0,str.length-1);}}return str;};Array.prototype._copy=function(a){var a=[],i=this.length;while(i--){a[i]=(typeof this[i]._copy!=="undefined")?this[i]._copy():this[i];}return a;};Utils.invertColor=function(_74a){_74a=_74a.trim();_74a=HTMLArea._colorToRgb(_74a);var _74b=_74a.substring(1,_74a.length);var rgb=parseInt(_74b,16);var red=(rgb>>16)&255;var _74e=(rgb>>8)&255;var blue=rgb&255;var ired=~red;ired=ired&255;var _751=~_74e;_751=_751&255;var _752=~blue;_752=_752&255;var _753="rgb("+ired+","+_751+","+_752+")";return _753;};Utils.convertFSToPercentFromPoint=function(_754){var _755=parseInt(_754);var _754=1.33;var _756=32;var _757=_755*_754;var _758=(_757/_756)*100;return _758;};Utils.createUUID=function(type){return type+":"+[4,2,2,2,6].map(function(_75a){var _75b="";for(var i=0;i<_75a;i++){var _75d=parseInt((Math.random()*256)).toString(16);if(_75d.length==1){_75d="0"+_75d;}_75b+=_75d;}return _75b;}).join("-");};Utils.serializeToString=function(node){if(!window.XMLSerializer){return node.xml;}else{return new XMLSerializer().serializeToString(node);}};Utils.getListItems=function(ele,_760){var eles=document.getElementsByClassName("listcontent",ele);var _762=[];var doc=this._doc;for(var k=0;k<eles.length;k++){var ele=eles[k];if(_760>=0){var _765=ele.parentNode.className.split("_");if(_765[1]==_760){_762[_762.length]=ele.parentNode;break;}}else{_762[k]=ele.parentNode;}}return _762;};Utils.setBulletBg=function(val){var _767=document.getElementById("bBg").getElementsByTagName("li");for(var i=0;i<_767.length;i++){_767[i].style.backgroundColor=val;}var _769=$("numBg").getElementsByTagName("li");for(index=0;index<_769.length;index++){var _76a=_769[index];_76a.style.color=val;}};Utils.switchMenu=function(_76b,e){var _76d=$(_76b);var pos=Utils.getPos(_76d);pos.XPos=pos.offsetLeft-4;pos.YPos=_76d.offsetHeight+pos.offsetTop+2;Utils.displayMenu(pos,"switchtomenu");if(e){Utils._stopEvent(e);}};Utils.openOtherService=function(pos){var txt;if(pos==0){txt="writer";}if(pos==1){txt="sheet";}if(pos==2){txt="wiki";}if(pos==3){txt="notebook";}if(pos==4){txt="planner";}if(pos==5){txt="creator";}if(pos==6){txt="chat";}if(pos==7){txt="meeting";}var url="http://"+txt+".zoho.com";window.open(url);};Utils.displayMenu=function(pos,id){Utils.currMenu=$(id);if(id.indexOf("thumb")!=-1){pos.XPos+=40;}Utils.currMenu.style.left=pos.XPos;Utils.currMenu.style.top=pos.YPos;Utils.currMenu.style.display="block";};Utils.getPreviousValue=function(obj,key){var _776;for(var i in obj){if(i==key){if(_776){return obj[_776];}else{return obj[key];}}_776=i;}};Utils.getNextValue=function(obj,key){var _77a=false;for(var i in obj){if(_77a){return obj[i];}if(i==key){_77a=true;}}return obj[key];};Utils.getFirstNode=function(_77c){var fsib=_77c.firstChild;while(fsib&&fsib.nodeType!=1){fsib=fsib.nextSibling;}return fsib;};Utils.getParentTableRow=function(ele){var _77f=ele.parentNode;while(_77f){var tag=_77f.tagName.toLowerCase();if(tag=="tr"){return _77f;}if(tag=="body"){return undefined;}_77f=_77f.parentNode;}return undefined;};Utils.showErrorMessage=function(_781,_782,_783){var inl=$("inlineErrorMessage");if(inl){inl.parentNode.removeChild(inl);}if(!_783){_783=3000;}var eDiv=document.createElement("div");eDiv.className="errorMessage";eDiv.innerHTML=_782;var _786=eDiv;var _787=_781.parentNode;var node=_781;if(node.parentNode.tagName.toLowerCase()=="label"){node=node.parentNode;_787=node.parentNode;}if(_787.offsetParent.tagName.toLowerCase()=="table"){node=Utils.getParentTableRow(node);if(!node){node=_781;}else{var tds=node.getElementsByTagName("td");_787=node.parentNode;var tr=document.createElement("tr");var td=document.createElement("td");td.colSpan=tds.length;if(tds.length>0){td.style.paddingLeft=tds[0].style.paddingLeft;}td.appendChild(eDiv);tr.appendChild(td);_786=tr;}}_786.id="inlineErrorMessage";_787.insertBefore(_786,node);setTimeout(function(){if(_786){var p=_786.parentNode;if(p){p.removeChild(_786);}}},_783);if(_781.previousValue){_781.value=_781.previousValue;}else{_781.value=_781.defaultValue;}setTimeout(function(){_781.focus();},1);};Utils.setVal=function(ele,val){if(ele&&ele.tagName.toLowerCase()!="select"){ele.previousValue=ele.value=val;}};Utils.collapseDiv=function(div){Utils.searchResults=true;div.style.height="0px";$("infoDet").style.display="none";$("editInfo").style.display="none";};Utils.expandDiv=function(div){Utils.searchResults=false;div.style.height=parseInt($("infodiv").style.height)*(0.585);$("infoDet").style.overflow="auto";$("editInfo").style.display="block";};Utils.openURLInNewWindow=function(url,_792,_793,_794){_793=(_793)?_793:screen.width;_794=(_794)?_794:screen.height;var _795="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+_793+",height="+_794;var left=(screen.width-_793)/2;var top=(screen.height-_794)/2;_795+=",left="+left+",top="+top;return window.open(url,_792,_795);};Utils.openWindow=function(url,name,_79a,_79b,left,top,_79e){var _79f="";if(typeof _79a=="undefined"){_79a=600;}if(typeof _79b=="undefined"){_79b=400;}if(typeof left=="undefined"||left==-1){if(isIE){var _7a0=document.body.clientWidth;}else{var _7a0=window.innerWidth;}left=(parseInt(_7a0)-parseInt(_79a))/2;}if(typeof top=="undefined"||top==-1){if(isIE){var _7a1=document.body.clientHeight;}else{var _7a1=window.innerHeight;}top=(parseInt(_7a1)-parseInt(_79b))/2;}if(typeof _79e!="undefined"){url+="&"+_79e;}window.open(url,name,"width="+_79a+",height="+_79b+",left="+left+",top="+top);};Utils.replaceParams=function(msg,args){if(typeof args!="undefined"&&args.length>0){for(i=0;i<args.length;i++){msg=Utils.replace(msg,"{"+i+"}",args[i]);}}return msg;};Utils.replace=function(_7a4,text,by){var _7a7=_7a4.length,_7a8=text.length;if((_7a7==0)||(_7a8==0)){return _7a4;}var i=_7a4.indexOf(text);if((!i)&&(text!=_7a4.substring(0,_7a8))){return _7a4;}if(i==-1){return _7a4;}var _7aa=_7a4.substring(0,i)+by;if(i+_7a8<_7a7){_7aa+=Utils.replace(_7a4.substring(i+_7a8,_7a7),text,by);}return _7aa;};Utils.colorStore=["#fd5014","#a7174a","#a603da","#0b44f5","#0abfd4","#65af32","#ff00ab","#02ed00","#ff00ab","#0190d4","#feb800"];Utils.getNextColor=function(len){if(!len){len=0;}var num=len%Utils.colorStore.length;return Utils.colorStore[num];};Utils.getLength=function(obj){var num=0;for(var i in obj){num++;}return num;};Utils.handleRemoteSave=function(msg){var code=msg.statuscode;var _7b2=(code&&code*1==400);setTimeout(function(){Utils.statMsg(msg.statusmsg,undefined,_7b2);},100);};Utils.getLeftForMiddleAlignment=function(_7b3){if(isIE){var _7b4=document.body.clientWidth;}else{var _7b4=window.innerWidth;}var left=(parseInt(_7b4)-parseInt(_7b3))/2;return left;};Element.getOpacity=function(_7b6){var _7b7;if(_7b7=Element.getStyle(_7b6,"opacity")){return parseFloat(_7b7);}if(_7b7=(Element.getStyle(_7b6,"filter")||"").match(/alpha\(opacity=(.*)\)/)){if(_7b7[1]){return parseFloat(_7b7[1])/100;}}return 1;};Element.setOpacity=function(_7b8,_7b9){_7b8=$(_7b8);var els=_7b8.style;if(_7b9==1){els.opacity=_7b9;if(isIE){els.filter=Element.getStyle(_7b8,"filter").replace(/alpha\([^\)]*\)/gi,"");}}else{if(_7b9<0.00001){_7b9=0;}els.opacity=_7b9;if(isIE){els.filter=Element.getStyle(_7b8,"filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+_7b9*100+")";}}};Utils.reduceOpacity=function(ele,_7bc,_7bd,time){if(!time){time=100;}var op=(_7bd||_7bd==0)?_7bd:Element.getOpacity(ele)*100;op-=10;Element.setOpacity(ele,op/100);ele.opacity=op/100;if(op<=0){if(_7bc){_7bc();}}else{setTimeout(function(){Utils.reduceOpacity(ele,_7bc,op,time);},time);}};Utils.increaseOpacity=function(ele,_7c1,_7c2,time){if(!time){time=100;}var op=(_7c2||_7c2==0)?_7c2:Element.getOpacity(ele)*100;op+=10;Element.setOpacity(ele,op/100);ele.opacity=op/100;if(op<100){setTimeout(function(){Utils.increaseOpacity(ele,_7c1,op,time);},time);}else{if(_7c1){_7c1();}}};Utils.unescapeHTML=function(html){var _7c6=document.createElement("DIV");_7c6.innerHTML=html;if(_7c6.innerText){return _7c6.innerText;}return _7c6.textContent;};Utils.escapeHTML=function(text){text=text.replace(/&/g,"&amp;");text=text.replace(/>/g,"&gt;");text=text.replace(/</g,"&lt;");text=text.replace(/'/g,"&#39;");text=text.replace(/"/g,"&quot;");return text;};Utils.onLock=function(resp,func){var _7ca=eval("["+resp+"]");if(_7ca[0].response.error&&_7ca[0].response.error.code=="3836"){param_name=_7ca[0].response.error.param_name;var _7cb=_7ca[0].response.error.message;Utils.openCapcha(param_name,func,_7cb);}};Utils.openCapcha=function(_7cc,func,_7ce){$("capchaMsg").value=_7ce;$("userdigest").value="";$("capchadiv").style.left=presenter.screenWidth-500+"px";$("showcapcha").src="/showcaptcha?digest="+_7cc;$("capchadiv").style.display="block";$("capchaOk").onclick=function(){Utils.onDigest(_7cc,func);};};Utils.onDigest=function(_7cf,func){var _7d1=$("userdigest").value;var _7d2="&"+_7cf+"="+_7d1;func(_7d2);};Utils.showSnippetOptions=function(_7d3,_7d4){var _7d5=document.getElementById("showForm");var _7d6=document.getElementById("typeHint");if(_7d3){var _7d7=$("videosnippet").checked;if(_7d7){_7d6.innerHTML=js_LangObj.TypeOrPasteURLCode;}else{_7d6.innerHTML=js_LangObj.TypeOrPasteHTMLCode;}if(!_7d4){$("viewInfo").style.color=$("requestLink").style.color="black";}_7d5.style.display="block";}else{_7d6.innerHTML=js_LangObj.TypeOrPasteHTMLCode;_7d5.style.display="none";}};Utils.removeStyle=function(ele,_7d9){var _7da=ele.style;if(_7da.removeProperty){_7da.removeProperty(_7d9);}var ctxt=_7da.cssText.toLowerCase();var i=ctxt.indexOf(_7d9);if(i!=-1){var _7dd=ctxt.indexOf(";",i);if(_7dd==-1){_7dd=ctxt.length;}var _7de=ctxt.substring(i,_7dd);_7da.cssText=ctxt.replace(_7de,"");}};getI18NValue=function(key){return js_LangObj[key];};Utils.removeBRNodes=function(div){Utils.removeNodesWithTag(div,"br");};Utils.removeNodesWithTag=function(div,tag){var _7e3=div.childNodes;var len=_7e3.length;for(var i=0;i<len;i++){var ch=_7e3[i];if(ch&&ch.tagName&&ch.tagName.toLowerCase()==tag){ch.parentNode.removeChild(ch);}}};Utils.getChildNodes=function(ele){var _7e8=[];var _7e9=ele.childNodes;var i=0;for(var j=0;j<_7e9.length;j++){if(_7e9[j]){_7e8[i++]=_7e9[j];var _7ec=Utils.getChildNodes(_7e9[j]);for(var k=0;k<_7ec.length;k++){if(_7ec[k]){_7e8[i++]=_7ec[k];}}}}return _7e8;};Utils.getNodeName=function(node){if(node&&node.nodeName){return node.nodeName.toLowerCase();}return undefined;};Utils.openNewWindow=function(url,_7f0,_7f1){var _7f1="toolbar=no,location=no,directories=no,status=no,menubar=no,"+"scrollbars=no,width="+screen.width+",height="+screen.height;if(isIE){_7f1+=",left=0,top=0";}window.open(url,_7f0,_7f1);};if(!Control){var Control={};}Control.Slider=Class.create();Control.Slider.prototype={initialize:function(_7f2,_7f3,_7f4){var _7f5=this;if(_7f2 instanceof Array){this.handles=_7f2.collect(function(e){return $(e);});}else{this.handles=[$(_7f2)];}this.track=$(_7f3);this.options=_7f4||{};this.axis=this.options.axis||"horizontal";this.increment=this.options.increment||1;this.step=parseInt(this.options.step||"1");this.range=this.options.range||$R(0,1);this.value=0;this.values=this.handles.map(function(){return 0;});this.spans=this.options.spans?this.options.spans.map(function(s){return $(s);}):false;this.restricted=this.options.restricted||false;this.maximum=this.options.maximum||this.range.end;this.minimum=this.options.minimum||this.range.start;this.alignX=parseInt(this.options.alignX||"0");this.alignY=parseInt(this.options.alignY||"0");this.trackLength=this.maximumOffset()-this.minimumOffset();this.active=false;this.dragging=false;this.disabled=false;if(this.options.disabled){this.setDisabled();}this.allowedValues=this.options.values?this.options.values.sortBy(Prototype.K):false;if(this.allowedValues){this.minimum=this.allowedValues.min();this.maximum=this.allowedValues.max();}this.eventMouseDown=this.startDrag.bindAsEventListener(this);this.eventMouseUp=this.endDrag.bindAsEventListener(this);this.eventMouseMove=this.update.bindAsEventListener(this);this.handles.each(function(h,i){_7f5.setValue(parseInt(_7f5.options.sliderValue||_7f5.range.start),i);Element.makePositioned(h);Event.observe(h,"mousedown",_7f5.eventMouseDown);});Event.observe(document,"mouseup",this.eventMouseUp);Event.observe(document,"mousemove",this.eventMouseMove);},dispose:function(){var _7fa=this;Event.stopObserving(document,"mouseup",this.eventMouseUp);Event.stopObserving(document,"mousemove",this.eventMouseMove);this.handles.each(function(h){Event.stopObserving(h,"mousedown",_7fa.eventMouseDown);});},setDisabled:function(){this.disabled=true;},setEnabled:function(){this.disabled=false;},getNearestValue:function(_7fc){if(this.allowedValues){if(_7fc>=this.allowedValues.max()){return (this.allowedValues.max());}if(_7fc<=this.allowedValues.min()){return (this.allowedValues.min());}var _7fd=Math.abs(this.allowedValues[0]-_7fc);var _7fe=this.allowedValues[0];this.allowedValues.each(function(v){var _800=Math.abs(v-_7fc);if(_800<=_7fd){_7fe=v;_7fd=_800;}});return _7fe;}if(_7fc>this.range.end){return this.range.end;}if(_7fc<this.range.start){return this.range.start;}return _7fc;},setValue:function(_801,_802){if(!this.active){this.activeHandle=this.handles[_802];this.activeHandleIdx=_802;}_802=_802||this.activeHandleIdx||0;if(this.restricted){if((_802>0)&&(_801<this.values[_802-1])){_801=this.values[_802-1];}if((_802<(this.handles.length-1))&&(_801>this.values[_802+1])){_801=this.values[_802+1];}}_801=this.getNearestValue(_801);this.values[_802]=_801;this.value=this.values[0];this.handles[_802].style[this.isVertical()?"top":"left"]=this.translateToPx(_801);this.drawSpans();this.updateFinished();},setValueBy:function(_803,_804){this.setValue(this.values[_804||this.activeHandleIdx||0]+_803,_804||this.activeHandleIdx||0);},translateToPx:function(_805){return Math.round((this.trackLength/(this.range.end-this.range.start))*(_805-this.range.start))+"px";},translateToValue:function(_806){return ((_806/this.trackLength)*(this.range.end-this.range.start))+this.range.start;},getRange:function(_807){var v=this.values.sortBy(Prototype.K);_807=_807||0;return $R(v[_807],v[_807+1]);},minimumOffset:function(){return (this.isVertical()?this.alignY:this.alignX);},maximumOffset:function(){return (this.isVertical()?this.track.offsetHeight-this.alignY:this.track.offsetWidth-this.alignX);},isVertical:function(){return (this.axis=="vertical");},drawSpans:function(){var _809=this;if(this.spans){$R(0,this.spans.length-1).each(function(r){_809.setSpan(r,_809.getRange(r));});}},setSpan:function(span,_80c){if(this.isVertical()){this.spans[span].style.top=this.translateToPx(_80c.start);this.spans[span].style.height=this.translateToPx(_80c.end-_80c.start);}else{this.spans[span].style.left=this.translateToPx(_80c.start);this.spans[span].style.width=this.translateToPx(_80c.end-_80c.start);}},startDrag:function(_80d){if(Event.isLeftClick(_80d)){if(!this.disabled){this.active=true;var _80e=Event.element(_80d);while((this.handles.indexOf(_80e)==-1)&&_80e.parentNode){_80e=_80e.parentNode;}this.activeHandle=_80e;this.activeHandleIdx=this.handles.indexOf(this.activeHandle);var _80f=[Event.pointerX(_80d),Event.pointerY(_80d)];var _810=Position.cumulativeOffset(this.activeHandle);this.offsetX=(_80f[0]-_810[0]);this.offsetY=(_80f[1]-_810[1]);}Event.stop(_80d);}},update:function(_811){if(this.active){if(!this.dragging){this.dragging=true;if(this.activeHandle.style.position==""){style.position="relative";}}this.draw(_811);if(navigator.appVersion.indexOf("AppleWebKit")>0){window.scrollBy(0,0);}Event.stop(_811);}},draw:function(_812){var _813=[Event.pointerX(_812),Event.pointerY(_812)];var _814=Position.cumulativeOffset(this.track);_813[0]-=this.offsetX+_814[0];_813[1]-=this.offsetY+_814[1];this.setValue(this.translateToValue(this.isVertical()?_813[1]:_813[0]));if(this.options.onSlide){this.options.onSlide(this.values.length>1?this.values:this.value,this);}},endDrag:function(_815){if(this.active&&this.dragging){this.finishDrag(_815,true);Event.stop(_815);}this.active=false;this.dragging=false;},finishDrag:function(_816,_817){this.active=false;this.dragging=false;this.updateFinished();},updateFinished:function(){if(this.options.onChange){this.options.onChange(this.values.length>1?this.values:this.value,this);}}};var svgRenderer;function SVGRenderer(_818){this.base=AbstractRenderer;this.svgRoot=null;this.backgroundRoot=null;this.svgNamespace="http://www.w3.org/2000/svg";SVGRenderer.syncThumbnail=_818;SVGRenderer.masterDocString="<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" id=\"masterDocument\" style=\"position: absolute; z-index: 1000; -moz-user-select: none;left: 0px; top: 0px;\" preserveAspectRatio=\"none\" _type=\"masterDocument\"/>";SVGRenderer.bgDocString="<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" id=\"bgDocument\" style=\"position: absolute; z-index: 60; -moz-user-select: none;left: 0px; top:0px;\" preserveAspectRatio=\"none\" _type=\"bgDocument\"/>";}SVGRenderer.prototype=new AbstractRenderer;SVGRenderer.prototype.syncThumbnailView=function(){if(SVGRenderer.syncThumbnail){SVGRenderer.syncThumbnail();}};SVGRenderer.prototype.setLayoutZIndex=function(){SVGRenderer.zindex=60;};SVGRenderer.prototype.setLayoutProperties=function(){this.backgroundRoot.style.zIndex=30;this.svgRoot.style.zIndex=60;};SVGRenderer.prototype.getViewCoordinates=function(_819){if(_819){return _819.viewBox.baseVal;}return this.svgRoot.viewBox.baseVal;};SVGRenderer.prototype.init=function(elem,_81b,_81c){svgRenderer=this;SVGRenderer.container=elem;SVGRenderer.layoutContainer=_81b;SVGRenderer.selected;SVGRenderer.container.style.MozUserSelect="none";SVGRenderer.mouseDownX;SVGRenderer.mouseDownY;SVGRenderer.primeW;SVGRenderer.primeH;SVGRenderer.primeSX;SVGRenderer.primeSY;SVGRenderer.zindex=1000;SVGRenderer.trackerGap=8;SVGRenderer.startArrow=SVGRenderer.endArrow="classic";SVGRenderer.copyPasteGap=15;SVGRenderer.isTextEditing=false;this.svgRoot=this.getNodeForVector(SVGRenderer.masterDocString);this.backgroundRoot=this.getNodeForVector(SVGRenderer.bgDocString);var w=SVGRenderer.container.offsetWidth;var h=SVGRenderer.container.offsetHeight;this.svgRoot.setAttributeNS(null,"viewBox","0, 0, "+w+" ,"+h);this.svgRoot.setAttributeNS(null,"width",w+"px");this.svgRoot.setAttributeNS(null,"height",h+"px");this.svgRoot.setAttributeNS(null,"xlink","http://www.w3.org/1999/xlink");this.backgroundRoot.setAttributeNS(null,"viewBox","0, 0, "+w+" ,"+h);this.backgroundRoot.setAttributeNS(null,"width",w+"px");this.backgroundRoot.setAttributeNS(null,"height",h+"px");SVGRenderer.deltaViewW=1;SVGRenderer.deltaViewH=1;this.removeVectorContent(SVGRenderer.container);if(!_81c){this.removeVectorContent(SVGRenderer.layoutContainer);}var _81f=SVGRenderer.container.getElementsByTagName("svg");for(var i=0;i<_81f.length;i++){var d=_81f[i];if(d){d.parentNode.removeChild(d);}}var sele=(SVGRenderer.layoutContainer)?SVGRenderer.layoutContainer:SVGRenderer.container;if(!sele){sele=renderer.getLayoutDiv();}this.svgRoot=ShowUtils.adoptNode(this.svgRoot,true);if(!_81c){this.backgroundRoot=ShowUtils.adoptNode(this.backgroundRoot,true);sele.appendChild(this.backgroundRoot);}SVGRenderer.container.appendChild(this.svgRoot);if(isGe){this.svgRoot.style.cssText=this.svgRoot.style.cssText+";font-size:"+ShowUtils.containerFontSize;this.backgroundRoot.style.cssText=this.backgroundRoot.style.cssText+";font-size:"+ShowUtils.containerFontSize;}else{this.svgRoot.style.fontSize=this.backgroundRoot.style.fontSize=ShowUtils.containerFontSize;}};SVGRenderer.prototype.renderLayoutVectorInThumbnail=function(_823,_824,_825,_826,_827,id){if(!_823||_823.length==0){return;}if(!id){id="bg-thumb";}var _829=this.getNodeForVector(_823);this.setNewIdForGradientsAndMarkers(_829);var _82a="0, 0, "+_826+", "+_827;_829.setAttributeNS(null,"preserveAspectRatio","none");_829.style.position="absolute";_829.style.zIndex=60;_829.style.MozUserSelect="none";_829.style.top=0;_829.style.left=0;var _82b=this.getMasterDocument(_829);_829.setAttributeNS(null,"id",id);_829.id=id;var _82c=undefined;if(_82b){_82c=_82b.getAttributeNS(null,"viewBox");}var _82d=this.svgRoot.getAttributeNS(null,"viewBox");if(_82d){_82a=_82d;}if(_82c){_82a=_82c;}_829.setAttributeNS(null,"viewBox",_82a);var w=_825.offsetWidth;var h=_825.offsetHeight;if(w==0||h==0){w=_825.style.width.split("px")[0];h=_825.style.height.split("px")[0];}_829.setAttributeNS(null,"width",w);_829.setAttributeNS(null,"height",h);var _830=this.getLayoutDiv(_824);var _831=this.getThumbnailSVG(_830,true);if(_831){_831.parentNode.removeChild(_831);}_829=ShowUtils.adoptNode(_829);_830.appendChild(_829);this.setDefaultsForXML(_829,true);};SVGRenderer.prototype.renderElementsToThumbNail=function(_832,_833,_834,_835){var _836=SVGRenderer.container;var vW=_836.offsetWidth;var vH=_836.offsetHeight;if(vW==0||vH==0){vW=_836.style.width.split("px")[0];vH=_836.style.height.split("px")[0];}var _839=_832.getElementsByTagName("svg")[0];if(_839){_839.parentNode.removeChild(_839);}if(!_834){_839=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"svg");var _83a=this.getMasterDocument(SVGRenderer.container);var _83b=undefined;if(_83a){_83b=_83a.getAttributeNS(null,"viewbox");}var _83c=this.svgRoot.getAttributeNS(null,"viewBox");if(_83c){viewBox=_83c;}if(_83b){viewBox=_83b;}}else{_839=this.getNodeForVector(_834);this.setNewIdForGradientsAndMarkers(_839);}_839.setAttributeNS(null,"preserveAspectRatio","none");_839.setAttributeNS(null,"id","vec-thumb");_839.id="vec-thumb";_839.style.cssText=_839.style.cssText+";font-size:"+ShowUtils.containerFontSize;_839.style.position="absolute";_839.style.zIndex=this.svgRoot.style.zIndex;_839.style.MozUserSelect="none";_839.style.top=0;_839.style.left=0;var _83a=null;var _83b=undefined;if(_83a){_83b=_83a.getAttributeNS(null,"viewbox");}var _83c=this.svgRoot.getAttributeNS(null,"viewBox");if(_83c){viewBox=_83c;}if(_83b){viewBox=_83b;}var w=_832.offsetWidth;var h=_832.offsetHeight;if(w==0||h==0){w=_832.style.width.split("px")[0];h=_832.style.height.split("px")[0];}_839.setAttributeNS(null,"width",w);_839.setAttributeNS(null,"height",h);this.renderLayoutVectorInThumbnail(_835,_833,_832,vW,vH);SVGRenderer.thumbnailDiv=_832;_839=ShowUtils.adoptNode(_839);_832.appendChild(_839);this.setDefaultsForXML(_839,true);};SVGRenderer.prototype.renderLayoutVector=function(_83f,_840){if(!_83f||_83f.length==0){return;}if(!_840){_840=this.backgroundRoot.parentNode;}else{SVGRenderer.layoutContainer=_840;}ShowUtils.drawEditor.removeVectorContent(SVGRenderer.layoutContainer);this.backgroundRoot=this.getNodeForVector(_83f);var sele=(SVGRenderer.layoutContainer)?SVGRenderer.layoutContainer:SVGRenderer.container;if(!sele){sele=renderer.getLayoutDiv();}this.backgroundRoot=ShowUtils.adoptNode(this.backgroundRoot);sele.appendChild(this.backgroundRoot);this.backgroundRoot.id="bgDocument";this.setDefaultsForXML(this.backgroundRoot,undefined,true);this.backgroundRoot.zIndex=60;this.backgroundRoot.setAttributeNS(null,"width",_840.offsetWidth+"px");this.backgroundRoot.setAttributeNS(null,"height",_840.offsetHeight+"px");};SVGRenderer.prototype.renderElementsToContainer=function(_842,_843,_844){var _845=SVGRenderer.container;if(!_842&&_844){this.init(SVGRenderer.container,SVGRenderer.layoutContainer,_844);}else{if(_842){ShowUtils.drawEditor.removeVectorContent(SVGRenderer.container);this.svgRoot=this.getNodeForVector(_842);this.svgRoot=ShowUtils.adoptNode(this.svgRoot);SVGRenderer.container.appendChild(this.svgRoot);}}this.renderLayoutVector(_843);this.svgRoot.setAttributeNS(null,"xlink","http://www.w3.org/1999/xlink");this.svgRoot.setAttributeNS(null,"width",_845.offsetWidth+"px");this.svgRoot.setAttributeNS(null,"height",_845.offsetHeight+"px");var view=this.svgRoot.viewBox.baseVal;SVGRenderer.deltaViewW=view.width/_845.offsetWidth;SVGRenderer.deltaViewH=view.height/_845.offsetHeight;if(_842){this.setDefaultsForXML(this.svgRoot);}};SVGRenderer.prototype.setDefaultsForXML=function(node,_848,_849){var _84a=SVGRenderer.zindex;if(node.style.cursor){node.style.cursor="";}node.style.left="0px";node.style.top="0px";if(!node.style.fontSize||node.style.fontSize==""){node.style.cssText=node.style.cssText+";font-size:"+ShowUtils.containerFontSize;}if(!_848){var _84b=node.getElementsByTagName("*");for(var i=0;i<_84b.length;i++){var e=_84b[i];e.setAttributeNS(null,"name","shape");if(e.style.cursor){e.style.cursor="";}if(e.tagName=="g"){var tZ=e.style.zIndex*1;if(tZ>_84a){_84a=tZ;}}this.setDeltaStrokeWidth(e);}if(node.id=="masterDocument"){SVGRenderer.zindex=_84a;}}else{var _84b=node.getElementsByTagName("*");for(var i=0;i<_84b.length;i++){var e=_84b[i];if(e.style.cursor){e.style.cursor="";}this.setDeltaStrokeWidth(e);}}var _84f=node.getElementsByTagName("image");for(var j=0;j<_84f.length;j++){var _851=_84f[j];var src=_851.getAttributeNS("http://www.w3.org/1999/xlink","href");_851.setAttributeNS("http://www.w3.org/1999/xlink","href",src);var type=_851.getAttributeNS("http://www.w3.org/1999/xlink","type");if(type){_851.removeAttributeNS("http://www.w3.org/1999/xlink","type");}_851.parentNode.parentNode.removeAttributeNS(null,"fill");}this.resetTexts(node);};SVGRenderer.prototype.setDeltaStrokeWidth=function(node){var _855=node.getAttributeNS(null,"stroke-width");if(_855){_855=_855.split("p")[0]*SVGRenderer.deltaViewW;node.setAttributeNS(null,"stroke-width",_855+"px");}};SVGRenderer.prototype.resetTexts=function(node,_857){var _858=node.getAttribute("converted");if(_858!="true"&&!_857){return;}node.setAttribute("converted","false");var _859=node.getElementsByTagName("text");for(var i=0;i<_859.length;i++){var par=_859[i].parentNode;if(par){var pos=this.getPosition(par);var x=pos.x,y=pos.y;SVGRenderer.resetShapeTextAfterResize(par);SVGRenderer.setShapeTextPosition(par,x,y);}}};SVGRenderer.prototype.resizeContainer=function(_85f,_860){var vW=_85f.offsetWidth;var vH=_85f.offsetHeight;if(vW==0||vH==0){vW=_85f.style.width.split("px")[0];vH=_85f.style.height.split("px")[0];}var _863="0, 0, "+vW+", "+vH;this.svgRoot.setAttributeNS(null,"width",vW);this.svgRoot.setAttributeNS(null,"height",vH);this.backgroundRoot.setAttributeNS(null,"width",vW);this.backgroundRoot.setAttributeNS(null,"height",vH);var view=this.svgRoot.viewBox.baseVal;SVGRenderer.deltaViewW=view.width/vW;SVGRenderer.deltaViewH=view.height/vH;if(!_860){this.resizeThumbnails();}};SVGRenderer.prototype.resizeThumbnails=function(_865){var _866;if(_865){_866=Presenter.SLIDESORTER_DIV;}else{_866=Presenter.THUMBNAIL_DIV;}if(!_866){return;}var _867=_866.childNodes;var _868=_867[0];var vw=_868.offsetWidth;var vh=_868.offsetHeight;if(vw==0||vh==0){vw=_868.style.width.split("px")[0];vh=_868.style.height.split("px")[0];}vw-=2;vh-=2;var id=setTimeout(function(){SVGRenderer.resizeThumbnail(_867,0,vw,vh,id);},2);};SVGRenderer.resizeThumbnail=function(_86c,_86d,_86e,_86f,_870){clearTimeout(_870);if(_86c.length==_86d){return;}var _871=_86c[_86d];var _872=svgRenderer.getThumbnailSVG(_871);var _873=svgRenderer.getThumbnailSVG(_871,true);if(_872){_872.setAttributeNS(null,"width",_86e);_872.setAttributeNS(null,"height",_86f);}if(_873){_873.setAttributeNS(null,"width",_86e);_873.setAttributeNS(null,"height",_86f);}var id=setTimeout(function(){SVGRenderer.resizeThumbnail(_86c,_86d+1,_86e,_86f,id);},2);};SVGRenderer.prototype.getThumbnailSVG=function(_875,isBg){var id=(!isBg)?"vec-thumb":"bg-thumb";var _878=_875.getElementsByTagName("svg");for(var n=0;n<_878.length;n++){if(_878[n].id===id){return _878[n];}}return undefined;};SVGRenderer.prototype.insertImage=function(_87a,w,h,x,y,_87f){var grp=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"g");grp.style.zIndex=++SVGRenderer.zindex;var _881=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"svg");grp.appendChild(_881);var img=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"image");img.style.position="absolute";img.setAttributeNS("http://www.w3.org/1999/xlink","href",_87a);img.setAttributeNS(null,"x","0");img.setAttributeNS(null,"y","0");img.setAttributeNS(null,"preserveAspectRatio","none");img.setAttributeNS(null,"width",w);img.setAttributeNS(null,"height",h);img.name="shape";_881.setAttributeNS(null,"x",x);_881.setAttributeNS(null,"y",y);_881.setAttributeNS(null,"preserveAspectRatio","none");_881.setAttributeNS(null,"overflow","visible");grp.setAttributeNS(null,"_type","image");grp.name="shape";_881.setAttributeNS(null,"_type","image");img.setAttributeNS(null,"_type","image");img.id=this.createUUID("imgshape");_881.appendChild(img);_881.name="shape";SVGRenderer.selected=grp;if(!_87f){this.svgRoot.appendChild(grp);}else{_87f.appendChild(grp);}return grp;};SVGRenderer.prototype.create=function(_883,_884,_885,_886,_887,left,top,_88a,_88b,_88c){var svg;_887=_887.split("p")[0]+"px";var _88e=false;if(_883.toLowerCase().indexOf("line")>=0){_88e=(_883.toLowerCase().indexOf("arrow")>=0);_883="line";svg=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"line");svg.setAttributeNS(null,"x1",left);svg.setAttributeNS(null,"y1",top);svg.setAttributeNS(null,"x2",_88a);svg.setAttributeNS(null,"y2",_88b);_884=_886;}else{svg=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"path");svg.name="shape";svg.setAttributeNS(null,"d",this.makePath(Clips.getPath(_883,_88a,_88b,null)));}svg.name="shape";svg.style.position="absolute";var grp=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"g");grp.style.zIndex=++SVGRenderer.zindex;if(_886.length==0){_886="none";}var _890=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"svg");_890.setAttributeNS(null,"overflow","visible");_890.setAttributeNS(null,"preserveAspectRatio","none");_890.style.position="absolute";if(_883.toLowerCase().indexOf("line")<0){_890.setAttribute("_width",_88a+"px");_890.setAttribute("_height",_88b+"px");}grp.appendChild(_890);_890.appendChild(svg);grp.setAttributeNS(null,"_type",_883);svg.setAttributeNS(null,"_type",_883);if(_884.length==0||_884=="none"){_884="none";}if(!_885||_885.length==0){_885="none";}if(_883=="line"){grp.setAttributeNS(null,"fill",_886);svg.setAttributeNS(null,"stroke",_886);}else{grp.setAttributeNS(null,"stroke",_886);if(_884!="none"&&_885!="none"){var grad=this.addLinearGradient(grp,_884,_885);}else{grp.setAttributeNS(null,"fill",_884);}}if(_883!="line"){_890.setAttributeNS(null,"x",left);_890.setAttributeNS(null,"y",top);grp.setAttributeNS(null,"stroke-width",_887);}else{if(_88e){this.setStartMarker(grp,SVGRenderer.startArrow);this.setEndMarker(grp,SVGRenderer.endArrow);}svg.setAttributeNS(null,"stroke-width",_887);}if(_88c){_88c.appendChild(grp);}else{this.svgRoot.appendChild(grp);SVGRenderer.selected=grp;}return grp;};SVGRenderer.prototype.getStartMarkerPath=function(type){if(type=="block"){return "M10,0 L0,5,10,10 z";}else{if(type=="classic"){return "M10,0 C7,2 7,8 10,10 L0,5z";}else{if(type=="diamond"){return "M0,5 L5,0 L10,5 L5,10 L0,5";}else{if(type=="open"){return "M10,0 L0,5,10,10,2,5,10,0";}else{if(type=="oval"){return "M10,5 A5,5 0 0,1 5,10 A5,5 0 0,1 0,5 A5,5 0 0,1 5,0 A5,5 0 0,1 10,5 z";}}}}}};SVGRenderer.prototype.getEndMarkerPath=function(type){if(type=="block"){return "M 0,0 L10,5,0,10 z";}else{if(type=="classic"){return "M0,0 C3,2 3,8 0,10 L10,5z";}else{if(type=="open"){return "M 0,0 L10,5,0,10,8,5,0,0";}else{if(type=="oval"||type=="diamond"){return this.getStartMarkerPath(type);}}}}};SVGRenderer.prototype.setStartMarker=function(_894,type){SVGRenderer.startArrow=type;var _896=this.getMarker(_894,"start");var ele=this.getShape(_894);var _898;if(_896){_896.parentNode.removeChild(_896);if(type=="none"){ele.setAttributeNS(null,"marker-start","");return;}}_896=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"marker");_896.setAttributeNS(null,"viewBox","0, 0, 10, 10");_896.setAttributeNS(null,"refX","2");_896.setAttributeNS(null,"refY","5");_896.setAttributeNS(null,"markerWidth","7");_896.setAttributeNS(null,"markerHeight","5");_896.setAttributeNS(null,"orient","auto");_896.setAttributeNS(null,"markerUnits","strokeWidth");_898=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"path");_896.appendChild(_898);var mid=this.createUUID("markerStart");_896.id=mid;_896.setAttributeNS(null,"id",mid);_894.appendChild(_896);ele.setAttributeNS(null,"marker-start","url(#"+_896.id+")");_898.setAttributeNS(null,"d",this.getStartMarkerPath(type));_896.setAttributeNS(null,"_type",type);return _896;};SVGRenderer.prototype.setEndMarker=function(_89a,type){SVGRenderer.endArrow=type;var _89c=this.getMarker(_89a,"end");var ele=this.getShape(_89a);var _89e;if(_89c){_89c.parentNode.removeChild(_89c);if(type=="none"){ele.setAttributeNS(null,"marker-end","");return;}}_89c=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"marker");_89c.setAttributeNS(null,"viewBox","0, 0, 10, 10");_89c.setAttributeNS(null,"refX","8");_89c.setAttributeNS(null,"refY","5");_89c.setAttributeNS(null,"markerWidth","7");_89c.setAttributeNS(null,"markerHeight","5");_89c.setAttributeNS(null,"orient","auto");_89c.setAttributeNS(null,"markerUnits","strokeWidth");_89e=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"path");_89c.appendChild(_89e);var mid=this.createUUID("markerEnd");_89c.id=mid;_89c.setAttributeNS(null,"id",mid);_89a.appendChild(_89c);ele.setAttributeNS(null,"marker-end","url(#"+_89c.id+")");_89e.setAttributeNS(null,"d",this.getEndMarkerPath(type));_89c.setAttributeNS(null,"_type",type);return _89c;};SVGRenderer.prototype.getMarkerType=function(_8a0,_8a1){var _8a2=this.getMarker(_8a0,_8a1);if(!_8a2){return "None";}return this.capitalize(this.getType(_8a2));};SVGRenderer.prototype.changeMarkerType=function(_8a3,_8a4,type){if(_8a4=="start"){this.setStartMarker(_8a3,type);}else{this.setEndMarker(_8a3,type);}};SVGRenderer.prototype.getMarker=function(_8a6,type){var _8a8=_8a6.getElementsByTagName("marker");var mId="markerStart";if(type=="end"){mId="markerEnd";}for(var i=0;i<_8a8.length;i++){if(_8a8[i].id.indexOf(mId)!=-1){return _8a8[i];}}};SVGRenderer.prototype.changeTextFill=function(_8ab,_8ac){var text=_8ab.getElementsByTagName("text")[0];text.setAttributeNS(null,"fill",_8ac);};SVGRenderer.prototype.removeLinearGradient=function(_8ae,_8af,_8b0,_8b1){var lG;ele=_8ae;if(_8b0){lG=this.getTextGradient(_8ae);ele=_8ae.getElementsByTagName("text")[0];}else{lG=this.getGradient(_8ae);}if(lG){lG.parentNode.removeChild(lG);}ele.setAttributeNS(null,"fill",_8af);if(_8b1){ele.setAttributeNS(null,"fill-opacity",_8b1);}};SVGRenderer.prototype.addLinearGradient=function(_8b3,col1,col2,_8b6,_8b7,_8b8){var grad=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"linearGradient");var _8ba="linear";var ele=_8b3;if(_8b8){_8ba="textLinear";ele=_8b3.getElementsByTagName("text")[0];}var gid=this.createUUID(_8ba);grad.id=gid;grad.setAttributeNS(null,"id",gid);grad.setAttributeNS(null,"_type","linearGrad");if(!col1){col1="#6797CF";}if(!col2){col2="#0099FF";}this.addLinearGradientOffset(grad,"0%",col1,_8b6);this.addLinearGradientOffset(grad,"100%",col2,_8b7);_8b3.appendChild(grad);ele.setAttributeNS(null,"fill","url(#"+grad.id+")");ele.setAttributeNS(null,"fill-opacity","1.0");if(_8b8){grad.setAttributeNS(null,"gradientUnits","userSpaceOnUse");}this.setGradientAngle(_8b3,"0",_8b8);if(_8b3.parentNode){_8b3.parentNode.appendChild(_8b3);}return grad;};SVGRenderer.prototype.addLinearGradientOffset=function(_8bd,_8be,_8bf,_8c0){var col=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"stop");col.setAttributeNS(null,"offset",_8be);col.setAttributeNS(null,"stop-color",_8bf);if(!_8c0){_8c0="1";}col.setAttributeNS(null,"stop-opacity",_8c0);_8bd.appendChild(col);};SVGRenderer.prototype.getLinearGradientOffset=function(_8c2,_8c3){return _8c2.getElementsByTagName("stop")[_8c3];};SVGRenderer.prototype.changeGradientFills=function(_8c4,_8c5,col1,col2,_8c8,_8c9){var _8ca;_8ca=this.getGradientElement(_8c4,_8c5);if(col1){this.setLinearGradientOffsetValues(_8ca,col1,_8c8,0);}if(col2){this.setLinearGradientOffsetValues(_8ca,col2,_8c9,1);}};SVGRenderer.prototype.isGradientFilled=function(_8cb,_8cc){var ele=_8cb;if(_8cc){ele=_8cb.getElementsByTagName("text")[0];if(!ele){return false;}}var fill=ele.getAttributeNS(null,"fill");return (fill.indexOf("url")!=-1);};SVGRenderer.prototype.setLinearGradientOffsetValues=function(_8cf,_8d0,_8d1,_8d2){var _8d3=this.getLinearGradientOffset(_8cf,_8d2);if(_8d3){if(!_8d1){_8d1=_8d3.getAttributeNS(null,"stop-opacity");}_8d3.setAttributeNS(null,"stop-color",_8d0);_8d3.setAttributeNS(null,"stop-opacity",_8d1);}};SVGRenderer.prototype.getGradientColors=function(_8d4,type,_8d6){var _8d7;_8d7=this.getGradientElement(_8d4,_8d6,type);var _8d8=this.getLinearGradientOffset(_8d7,0);var _8d9=this.getLinearGradientOffset(_8d7,1);if(!_8d8||!_8d9){return null;}var _8da=new Object();_8da.color1=this.getOffsetColor(_8d8);_8da.color2=this.getOffsetColor(_8d9);_8da.angle=_8d7.getAttributeNS(null,"angle");return _8da;};SVGRenderer.prototype.getOffsetColor=function(_8db){var obj=new Object();obj.color=_8db.getAttributeNS(null,"stop-color");obj.opacity=_8db.getAttributeNS(null,"stop-opacity");return obj;};SVGRenderer.prototype.getGradient=function(_8dd,type){if(!type){type="linear";}var _8df="linearGradient";if(type=="radial"){_8df="radialGradient";}var _8e0=_8dd.getElementsByTagName("*");var grad;for(var i=0;i<_8e0.length;i++){grad=_8e0[i];if(grad.tagName==_8df&&grad.id.indexOf(type+":")!=-1){return grad;}}return undefined;};SVGRenderer.prototype.getTextGradient=function(_8e3,type){var _8e5="linearGradient";if(type=="radial"){_8e5="radialGradient";}var _8e6=_8e3.getElementsByTagName(_8e5);var grad;for(var i=0;i<_8e6.length;i++){grad=_8e6[i];if(grad.id.indexOf("textLinear")!=-1){return grad;}}return undefined;};SVGRenderer.prototype.remove=function(_8e9){if(_8e9){_8e9.parentNode.removeChild(_8e9);SVGRenderer.selected=null;}};SVGRenderer.prototype.makePath=function(path){var _8eb="";for(var i=0;i<path.length;i++){_8eb+=path[i].join(" ");}return _8eb+"z";};SVGRenderer.getTransform=function(_8ed,_8ee){var _8ef=_8ed.transform.baseVal;var _8f0=_8ef.numberOfItems;var mxf=undefined;var _8f2=1;if(_8ee=="rotate"){_8f2=4;}if(_8ee=="scale"){_8f2=3;}if(_8ee=="translate"){_8f2=2;}for(var i=0;i<_8f0;++i){var xf=_8ef.getItem(i);if(xf.type==_8f2){mxf=xf;break;}}if(!mxf){return null;}if(_8f2==4){return mxf.angle;}if(_8f2==3){var ob=new Object();ob["sw"]=mxf.matrix.a;ob["sh"]=mxf.matrix.d;return ob;}if(_8f2==2){var ob=new Object();ob["x"]=mxf.matrix.e;ob["y"]=mxf.matrix.f;return ob;}};SVGRenderer.getRotateTransStr=function(_8f6){var _8f7=/rotate\([0-9,\.]*, [0-9,\.]*, [0-9,\.]*\)/;var m=_8f6.match(_8f7);return m?m[0]:"";};SVGRenderer.getScaleTransStr=function(_8f9){var _8fa=/scale\([0-9,\.]*, [0-9,\.]*\)/;var m=_8f9.match(_8fa);return m?m[0]:"";};SVGRenderer.getTranslateTransStr=function(_8fc){var _8fd=/translate\([0-9,\.]*, [0-9,\.]*\)/;var m=_8fc.match(_8fd);return m?m[0]:"";};SVGRenderer.setTransform=function(_8ff,_900,_901,_902){var _903=_8ff.getAttribute("transform");if(_903&&_903.indexOf("matrix")!=-1){_903=_8ff.getAttribute("_transform");}if(!_903){_903="";}var _904=SVGRenderer.getRotateTransStr(_903);var _905=SVGRenderer.getScaleTransStr(_903);var _906=SVGRenderer.getTranslateTransStr(_903);var _907="";if(_900=="rotate"){_907=_904="rotate("+_901.angle+", "+_901.cx+", "+_901.cy+") ";}if(_900=="scale"){_907=_905="scale("+_901.sw+", "+_901.sh+") ";}if(_900=="translate"){_907=_906="translate("+_901.x+", "+_901.y+") ";}if(_902){_903+=" "+_907;}else{_903=_904+_906+_905;}_8ff.setAttribute("transform",_903.trim());_8ff.setAttribute("_transform",_903.trim());};SVGRenderer.prototype.getShapes=function(_908){if(!_908){_908=SVGRenderer.selected;}if(_908.tagName!="g"){var _909=new Array();_909[0]=_908;return _909;}else{var type=this.getType(_908);if(type=="line"){return _908.getElementsByTagName("line");}if(type=="image"){return _908.getElementsByTagName("image");}else{return _908.getElementsByTagName("path");}}};SVGRenderer.prototype.getShape=function(_90b){if(!_90b){_90b=SVGRenderer.selected;}if(_90b.tagName!="g"){var _90c=new Array();_90c[0]=_90b;return _90c;}else{var type=this.getType(_90b);if(type=="line"){return _90b.getElementsByTagName("line")[0];}if(type=="image"){return _90b.getElementsByTagName("image")[0];}else{return _90b.getElementsByTagName("path")[0];}}};SVGRenderer.prototype.editCommand=function(_90e,cmd,_910){if(_910==""){_910=none;}var type=this.getType(_90e);if(_90e){if(cmd=="fillcolor"&&type!="line"){_90e.setAttributeNS(null,"fill",_910);}else{if(cmd=="linecolor"){if(this.getType(_90e)=="line"){_90e.setAttributeNS(null,"fill",_910);}if(type=="line"){_90e=this.getShape(_90e);}_90e.setAttributeNS(null,"stroke",_910);}else{if(cmd=="linewidth"){if(type=="line"){_90e=this.getShape(_90e);}_910=_910*SVGRenderer.deltaViewW;_90e.setAttributeNS(null,"stroke-width",_910+"px");}}}}};SVGRenderer.prototype.getTextFill=function(_912){var _913="";var text=_912.getElementsByTagName("text")[0];if(text){_913=text.getAttributeNS(null,"fill");}if(_913=="none"){_913="";}return _913;};SVGRenderer.prototype.queryCommand=function(_915,cmd){var _917="";if(_915!=null){var type=this.getType(_915);if(cmd=="fillcolor"){_917=_915.getAttributeNS(null,"fill");if(_917=="none"){_917="";}}else{if(cmd=="linecolor"){if(type=="line"){_915=this.getShape(_915);}_917=_915.getAttributeNS(null,"stroke");if(_917=="none"){_917="";}}else{if(cmd=="linewidth"){_917=_915.getAttributeNS(null,"stroke");if(_917=="none"){_917="";}else{if(type=="line"){_915=this.getShape(_915);}_917=_915.getAttributeNS(null,"stroke-width");_917=Math.round(_917.split("px")[0]/SVGRenderer.deltaViewW)+"px";}}}}}if(_917){_917=_917.split("px")[0];}return _917;};SVGRenderer.prototype.getType=function(_919){return _919.getAttributeNS(null,"_type");};SVGRenderer.prototype.bounds=function(_91a){if(!_91a){return;}var rect;var type=_91a.getAttributeNS(null,"_type");if(type=="line"){rect={x:0,y:0,width:0,height:0,rotation:0};var line=_91a.getElementsByTagName("line")[0];var x1=line.getAttributeNS(null,"x1").split("px")[0];var y1=line.getAttributeNS(null,"y1").split("px")[0];var x2=line.getAttributeNS(null,"x2").split("px")[0];var y2=line.getAttributeNS(null,"y2").split("px")[0];rect["x1"]=x1;rect["y1"]=y1;rect["x2"]=x2;rect["y2"]=y2;}else{rect={x:0,y:0,width:0,height:0,rotation:0};var pos=this.getPosition(_91a);rect["x"]=pos.x;rect["y"]=pos.y;var dim=this.getDimension(_91a);rect["width"]=dim.width;rect["height"]=dim.height;}return rect;};SVGRenderer.clearArray=function(_924){if(_924){_924.splice(0,_924.length);}};SVGRenderer.prototype.move=function(_925,left,top,_928,_929,_92a){if(_929){var txts=_925.getElementsByTagName("text");if(txts.length>0){if(!SVGRenderer.shapeTexts){SVGRenderer.shapeTexts=new Array();}for(var i=0;i<txts.length;i++){var t=txts[i];SVGRenderer.shapeTexts[i]=t.parentNode.removeChild(t);}}}else{SVGRenderer.clearArray(SVGRenderer.shapeTexts);}if((Grids.snapTo&&Grids.showGuide)||(Grids.snapGrid&&Grids.showGrid)){Grids.type="image";var type=_925.getAttributeNS(null,"_type");var dim=ShowUtils.drawEditor.renderer.getDimension(_925);var _930=Grids.snapObjectsTo(left,top,_928,type,_925,dim,null,null,_92a);left=_930[0];top=_930[1];}this.setPos(_925,left,top,_928,_929);SVGRenderer.updateRotation(_925);};SVGRenderer.prototype.getStrokeWidth=function(_931,type){var _933=_931.getAttributeNS(null,"stroke");if(!type){type=this.getType(_931);}if(_933=="none"){_933="";}else{if(type=="line"){_931=this.getShape(_931);}_933=_931.getAttributeNS(null,"stroke-width");_933=_933.split("px")[0];}return _933;};SVGRenderer.prototype.getDeltaValues=function(){var _934=new Object();_934["height"]=SVGRenderer.deltaViewH;_934["width"]=SVGRenderer.deltaViewW;return _934;};SVGRenderer.prototype.setPos=function(_935,x,y,_938,_939){var sh=SVGRenderer.getSelectedSVG(_935);if(sh){var type=_935.getAttributeNS(null,"_type");if(type!="line"){sh.setAttributeNS(null,"x",x+"px");sh.setAttributeNS(null,"y",y+"px");}else{var line=_935.getElementsByTagName("line")[0];var x1=_938.x1;var y1=_938.y1;var x2=_938.x2;var y2=_938.y2;line.setAttributeNS(null,"x1",x1*1+x*1);line.setAttributeNS(null,"y1",y1*1+y*1);line.setAttributeNS(null,"x2",x2*1+x*1);line.setAttributeNS(null,"y2",y2*1+y*1);}if(!_939){SVGRenderer.setShapeTextPosition(_935,x,y);}}};SVGRenderer.setShapeTextPosition=function(_941,x,y){var text=_941.getElementsByTagName("text")[0];if(text){SVGRenderer.setTextPosition(_941,text,x,y);}};SVGRenderer.resetShapeTextAfterResize=function(_945){var text=_945.getElementsByTagName("text")[0];var _947=svgRenderer.getTextContent(_945);if(!text||_947.length==0){return;}var dim=svgRenderer.getDimension(_945);var _949=svgRenderer.getFontDetails(_945);var _94a=svgRenderer.getWrappedTextValue(_947,_949,dim.width);svgRenderer.reAddTexts(text,_94a,_945);};SVGRenderer.resetTSpans=function(text){var _94c=text.getElementsByTagName("tspan");for(var i=0;i<_94c.length;i++){_94c[i].setAttributeNS(null,"x","0px");_94c[i].setAttributeNS(null,"y","0px");}};SVGRenderer.removeTSpans=function(text){var _94f=text.getElementsByTagName("tspan");var _950=new Array();var len=_94f.length;for(var j=len-1;j>=0;j--){_950[j]=_94f[j].parentNode.removeChild(_94f[j]);}return _950;};SVGRenderer.addTSpans=function(_953,text){if(!_953){return;}for(var i=0;i<_953.length;i++){text.appendChild(_953[i]);}};SVGRenderer.getTSpansWithDimension=function(text,_957){var ob=new Object();ob.tspans=new Array();var _959=text.getElementsByTagName("tspan");var _95a=0;var _95b=text.cloneNode(false);_95b.setAttributeNS(null,"x",-100);_95b.setAttributeNS(null,"y",-100);var s=$("sorterview");var _95d=(s&&s.style.display!="none");var p=(_95d&&_957)?_957.parentNode:svgRenderer.svgRoot;p.appendChild(_95b);for(var i=0;i<_959.length;i++){var tob=new Object();var _961=_959[i];tob.tspan=_961;if(_961.textContent.trim().length==0){continue;}_95b.textContent=_961.textContent;var bbox=_95b.getBBox();tob.height=bbox.height;tob.width=bbox.width;ob.tspans[i]=tob;_95a+=bbox.height;}_95b.parentNode.removeChild(_95b);ob.height=_95a;return ob;};SVGRenderer.setTextPosition=function(_963,text,x,y){SVGRenderer.resetTSpans(text);var dim=svgRenderer.getDimension(_963);var _968=dim.height;var _969=dim.width;var _96a=SVGRenderer.getTSpansWithDimension(text,_963);text.setAttributeNS(null,"x",x*1+_969/2+"px");if(!_96a){return;}var _96b=_96a.tspans;if(_96b.length==0){if(text.textContent.trim().length==0){return;}var _96c=text.getBBox().height;var tcy=y*1+_968/2+_96c/2;text.setAttributeNS(null,"y",tcy+"px");return;}var _96e=_96b.length;var _96f=_96a.height;var str=text.textContent;var cy=y*1+_968/2;var sy=cy-_96f/2-2*_96e+_96b[0].height/2;text.setAttributeNS(null,"y",cy+"px");for(var i=0;i<_96e;i++){var tobj=_96b[i];var ts=tobj.tspan;sy+=tobj.height/2+2;ts.setAttributeNS(null,"x",x*1+_969/2+"px");ts.setAttributeNS(null,"y",sy+"px");sy+=tobj.height/2;}svgRenderer.resetTextGradient(_963,text);};SVGRenderer.getSelectedSVG=function(_976){if(_976){if(_976.tagName=="g"){return _976.getElementsByTagName("svg")[0];}}return _976;};SVGRenderer.prototype.getPosition=function(_977){if(_977){_977=SVGRenderer.getSelectedSVG(_977);var x=_977.getAttribute("x");var y=_977.getAttribute("y");x=x.split("px")[0];y=y.split("px")[0];var r={x:x,y:y};return r;}};SVGRenderer.prototype.getDimension=function(_97b){if(_97b){var sh=_97b;if(_97b.tagName=="g"){sh=_97b.getElementsByTagName("svg")[0];}var w,h;var type=this.getType(_97b);if(type=="image"){var img=sh.getElementsByTagName("image")[0];if(img){w=img.getAttribute("width");h=img.getAttribute("height");}}else{w=sh.getAttribute("_width");h=sh.getAttribute("_height");}if(!w||!h){var g=SVGRenderer.getSelectedSVG(_97b);var box=_97b.getBBox();w=box.width;h=box.height;}else{w=w.split("px")[0];h=h.split("px")[0];}var r={width:w,height:h};return r;}};createBox=function(_984,_985,w,h){var fill=RichDrawEditor.trackerColors.boxFill;var _989=RichDrawEditor.trackerColors.boxBorder;if(_984.length>2){fill=RichDrawEditor.trackerColors.cornerBoxFill;_989=RichDrawEditor.trackerColors.cornerBoxBorder;}var box=$(_984);if(box){box.parentNode.removeChild(box);}if(!w){w=(5*SVGRenderer.deltaViewW)+"px";}if(!h){h=(5*SVGRenderer.deltaViewH)+"px";}var _98b="http://www.w3.org/2000/svg";box=document.createElementNS(_98b,"rect");box.setAttributeNS(null,"id",_984);box.setAttributeNS(null,"width",w);box.setAttributeNS(null,"height",h);box.setAttributeNS(null,"fill",fill);box.setAttributeNS(null,"stroke",_989);box.setAttributeNS(null,"stroke-width",(SVGRenderer.deltaViewW)+"px");if(_985){_985.appendChild(box);}Utils._addEvent(box,"mousedown",function(ev){SVGRenderer.startResize(ev,box);},_984);return box;};setBoxPos=function(_98d,x,y,_990){var box=$(_98d);var g=box.getAttributeNS(null,"width").split("px")[0];box.setAttributeNS(null,"x",x-g/2);box.setAttributeNS(null,"y",y-g/2);};SVGRenderer.removeResizeBox=function(_993){var box=$(_993);if(box){box.parentNode.removeChild(box);}};SVGRenderer.prototype.positionTracker=function(_995){if(!_995){this.removeTracker();return;}var type=_995.getAttributeNS(null,"_type");if(type=="line"){return this.positionLineTracker(_995);}var _997=$("tracker");if(!_997){return;}var x,y;var prop;var _99b=SVGRenderer.getSelectedSVG(_995);if(!_99b){this.removeTracker();return;}var box=_99b.getBBox();var dim=SVGRenderer.primeDim=this.getDimension(_995);if(_995.tagName=="g"){var svg=_995.getElementsByTagName("svg")[0];x=svg.getAttributeNS(null,"x").split("px")[0];y=svg.getAttributeNS(null,"y").split("px")[0];prop=_995.getAttributeNS(null,"transform");}else{x=box.x;y=box.y;prop=_995.parentNode.getAttributeNS(null,"transform");}var gapx=SVGRenderer.trackerGap*SVGRenderer.deltaViewW;var gapy=SVGRenderer.trackerGap*SVGRenderer.deltaViewH;x=parseInt(x)-gapx;y=parseInt(y)-gapy;var w=dim.width*1+2*gapx;var h=dim.height*1+2*gapy;_997.setAttributeNS(null,"x",x);_997.setAttributeNS(null,"y",y);_997.setAttributeNS(null,"width",w);_997.setAttributeNS(null,"height",h);var _9a3=SVGRenderer.primeAngle=svgRenderer.getRotation(SVGRenderer.selected);if(!_9a3){_9a3=0;}setBoxPos("rse",x+w,y+h);setBoxPos("rn",x+w/2,y);setBoxPos("rw",x,y+h/2);setBoxPos("rs",x+w/2,y+h);setBoxPos("re",x+w,y+h/2);var len=20*SVGRenderer.deltaViewH;var line=$("rotateline");var x1=x+w/2;line.setAttributeNS(null,"x1",x1);line.setAttributeNS(null,"y1",y-2);line.setAttributeNS(null,"x2",x1);line.setAttributeNS(null,"y2",y-len);line.setAttributeNS(null,"stroke",RichDrawEditor.trackerColors.trackerBorder);line.setAttributeNS(null,"stroke-width","1pt");var _9a7=$("rotatecircle");SVGRenderer.setCircleProps(_9a7,x1,y-len,(4*SVGRenderer.deltaViewW)+"px",(4*SVGRenderer.deltaViewH)+"px",RichDrawEditor.trackerColors.circleFill,RichDrawEditor.trackerColors.circleBorder,SVGRenderer.deltaViewW+"pt");var _9a8=$("c-circle");SVGRenderer.setCircleProps(_9a8,x+w/2,y+h/2,(3*SVGRenderer.deltaViewW)+"px",(3*SVGRenderer.deltaViewH)+"px","gray","black",SVGRenderer.deltaViewW+"pt",".4",".4");var _9a9=$("trackergrp");var sobj=new Object();sobj["angle"]=_9a3;sobj["cx"]=x+w/2;sobj["cy"]=y+h/2;SVGRenderer.setTransform(_9a9,"rotate",sobj);};SVGRenderer.setCircleProps=function(_9ab,cx,cy,rx,ry,fill,_9b1,_9b2,_9b3,_9b4){_9ab.setAttributeNS(null,"cx",cx);_9ab.setAttributeNS(null,"cy",cy);_9ab.setAttributeNS(null,"rx",rx);_9ab.setAttributeNS(null,"ry",ry);_9ab.setAttributeNS(null,"fill",fill);_9ab.setAttributeNS(null,"stroke",_9b1);_9ab.setAttributeNS(null,"stroke-width",_9b2);if(_9b3){_9ab.setAttributeNS(null,"fill-opacity",_9b3);}if(_9b4){_9ab.setAttributeNS(null,"stroke-opacity",_9b4);}};SVGRenderer.prototype.positionLineTracker=function(_9b5){var line=_9b5.getElementsByTagName("line")[0];var x1=line.getAttributeNS(null,"x1");var y1=line.getAttributeNS(null,"y1");var x2=line.getAttributeNS(null,"x2");var y2=line.getAttributeNS(null,"y2");var x1c=$("t-c");var x2c=$("b-c");var rW=4*SVGRenderer.deltaViewW+"px";var rH=4*SVGRenderer.deltaViewH+"px";SVGRenderer.setCircleProps(x1c,x1,y1,rW,rH,RichDrawEditor.trackerColors.circleFill,RichDrawEditor.trackerColors.circleBorder,SVGRenderer.deltaViewW,".6");SVGRenderer.setCircleProps(x2c,x2,y2,rW,rH,RichDrawEditor.trackerColors.circleFill,RichDrawEditor.trackerColors.circleBorder,SVGRenderer.deltaViewW,".6");};SVGRenderer.prototype.getLineTrackerBounds=function(elem){var cX=elem.getAttributeNS(null,"cx");var cY=elem.getAttributeNS(null,"cy");var rX=elem.getAttributeNS(null,"rx");var rY=elem.getAttributeNS(null,"ry");cX=parseInt(cX);cY=parseInt(cY);rX=parseInt(rX);rY=parseInt(rY);var x=cX-rX;var y=cY-rY;var wt=2*rX;var ht=2*rY;return {"x":x,"y":y,"width":wt,"height":ht};};SVGRenderer.prototype.showLineTracker=function(_9c8){this.removeTracker();trackergrp=document.createElementNS(this.svgNamespace,"g");trackergrp.id="trackergrp";var x1c=document.createElementNS(this.svgNamespace,"ellipse");x1c.id="t-c";x1c.style.cursor="move";var x2c=document.createElementNS(this.svgNamespace,"ellipse");x2c.id="b-c";x2c.style.cursor="move";trackergrp.appendChild(x1c);trackergrp.appendChild(x2c);this.svgRoot.appendChild(trackergrp);Utils._addEvent(x1c,"mousedown",function(ev){SVGRenderer.startLineResize(ev,x1c,true);},x1c.id);Utils._addEvent(x2c,"mousedown",function(ev){SVGRenderer.startLineResize(ev,x2c,false);},x2c.id);this.positionLineTracker(_9c8);};SVGRenderer.startLineResize=function(ev,_9ce,_9cf){var _9d0=Position.cumulativeOffset(SVGRenderer.container);SVGRenderer.mouseDownX=(Event.pointerX(ev)-_9d0[0]);SVGRenderer.mouseDownY=(Event.pointerY(ev)-_9d0[1]);Utils._addEvent(document,"mousemove",function(ev){var _9d2=(!ev)?window.event:ev;SVGRenderer.resizeLine(_9d2,_9ce,_9cf);Utils._stopEvent(_9d2);});Utils._addEvent(document,"mouseup",function(ev){var _9d4=(!ev)?window.event:ev;Utils._removeEvent(document,"mousemove",Utils.eventHandlers["mousemove"]);Utils._removeEvent(document,"mouseup",Utils.eventHandlers["mouseup"]);UndoRedo.ACTION="position";svgRenderer.syncThumbnailView();var _9d5=SVGRenderer.selected.getAttribute("id");var pos=svgRenderer.bounds(SVGRenderer.selected);var view=svgRenderer.getViewCoordinates();var _9d8="position:line:"+view.width+":"+view.height+":"+pos.x1+":"+pos.y1+":"+pos.x2+":"+pos.y2;ShareCollaboration.sendShareMessage("modify",_9d5,_9d8);});};SVGRenderer.resizeLine=function(ev,_9da,_9db){var _9dc=Position.cumulativeOffset(SVGRenderer.container);var x=(Event.pointerX(ev)-_9dc[0]);var y=(Event.pointerY(ev)-_9dc[1]);x=x*SVGRenderer.deltaViewW;y=y*SVGRenderer.deltaViewH;var line=this.selected.getElementsByTagName("line")[0];if(_9db){line.setAttributeNS(null,"x1",x);line.setAttributeNS(null,"y1",y);}else{line.setAttributeNS(null,"x2",x);line.setAttributeNS(null,"y2",y);}svgRenderer.positionLineTracker(this.selected);};SVGRenderer.prototype.addTextsAfterDrag=function(_9e0,x,y){var tx=SVGRenderer.shapeTexts;if(tx){for(var i=0;i<tx.length;i++){_9e0.appendChild(tx[i]);}}var pos=this.getPosition(_9e0);var x=pos.x,y=pos.y;SVGRenderer.setShapeTextPosition(_9e0,x,y);SVGRenderer.clearArray(SVGRenderer.shapeTexts);};SVGRenderer.prototype.showTracker=function(_9e6,_9e7){if(!_9e6){return;}SVGRenderer.selected=_9e6;var type=_9e6.getAttributeNS(null,"_type");if(type=="line"){return this.showLineTracker(_9e6);}this.removeTracker();var _9e9=document.createElementNS(this.svgNamespace,"rect");var _9ea=document.createElementNS(this.svgNamespace,"g");_9ea.setAttributeNS(null,"id","trackergrp");_9e9.setAttributeNS(null,"id","tracker");_9e9.setAttributeNS(null,"fill","none");_9e9.setAttributeNS(null,"stroke",RichDrawEditor.trackerColors.trackerBorder);_9e9.setAttributeNS(null,"stroke-width",(1*SVGRenderer.deltaViewW)+"pt");_9ea.appendChild(_9e9);this.svgRoot.appendChild(_9ea);var _9eb=svgRenderer.getRotation(this.selected);if(!_9eb){_9eb=0;}var rrb=createBox("rse",_9ea);var rtm=createBox("rn",_9ea);var rlm=createBox("rw",_9ea);var rmb=createBox("rs",_9ea);var rrm=createBox("re",_9ea);var line=document.createElementNS(this.svgNamespace,"line");var _9f2=document.createElementNS(this.svgNamespace,"ellipse");var _9f3=document.createElementNS(this.svgNamespace,"ellipse");line.id="rotateline";line.setAttributeNS(null,"id","rotateline");_9f2.id="rotatecircle";_9f2.setAttributeNS(null,"id","rotatecircle");_9f2.style.cursor="move";_9f3.setAttributeNS(null,"id","c-circle");_9f3.style.cursor="move";_9ea.appendChild(line);_9ea.appendChild(_9f2);_9ea.appendChild(_9f3);this.positionTracker(_9e6);Utils._addEvent(_9f2,"mousedown",function(ev){SVGRenderer.startRotation(ev,_9f2);},_9f2.id);if(_9e7){this.addTextsAfterDrag(_9e6);}var _9eb=this.getRotation(SVGRenderer.selected);this.setResizeCursors(_9eb);SVGRenderer.primeAngle=_9eb;};SVGRenderer.startRotation=function(ev,_9f6){svgRenderer.finishTextEditing(true);var _9f7=Position.cumulativeOffset(SVGRenderer.container);SVGRenderer.mouseDownX=(Event.pointerX(ev)-_9f7[0]);SVGRenderer.mouseDownY=(Event.pointerY(ev)-_9f7[1]);Utils._stopEvent(ev);Utils._addEvent(document,"mousemove",function(ev){var _9f9=(!ev)?window.event:ev;SVGRenderer.rotateShape(_9f9,_9f6);Utils._stopEvent(_9f9);});Utils._addEvent(document,"mouseup",function(ev){var _9fb=(!ev)?window.event:ev;Utils._removeEvent(document,"mousemove",Utils.eventHandlers["mousemove"]);Utils._removeEvent(document,"mouseup",Utils.eventHandlers["mouseup"]);UndoRedo.ACTION="rotation";svgRenderer.syncThumbnailView();var _9fc=svgRenderer.getRotation(SVGRenderer.selected);var _9fd=SVGRenderer.selected.getAttribute("id");var _9fe="rotation:"+_9fc;ShareCollaboration.sendShareMessage("modify",_9fd,_9fe);});};SVGRenderer.prototype.getRotation=function(_9ff){if(!_9ff){return null;}var _a00=SVGRenderer.getTransform(_9ff,"rotate");return _a00;};SVGRenderer.updateRotation=function(_a01){var _a02=svgRenderer.getRotation(_a01);if(_a02){SVGRenderer.setRotation(_a01,_a02);}};SVGRenderer.rotateShape=function(ev,_a04){var _a05=Position.cumulativeOffset(SVGRenderer.container);var x=(Event.pointerX(ev)-_a05[0]);var y=(Event.pointerY(ev)-_a05[1]);x*=SVGRenderer.deltaViewW;y*=SVGRenderer.deltaViewH;var dim=svgRenderer.getDimension(this.selected);var sel=SVGRenderer.getSelectedSVG(this.selected);var xv=sel.getAttributeNS(null,"x").split("px")[0];var yv=sel.getAttributeNS(null,"y").split("px")[0];var _a0c=(xv*1)+(dim.width/2);var _a0d=(yv*1)+(dim.height/2);var _a0e=x-_a0c;var _a0f=y-_a0d;var _a10=(_a0e*0)+(_a0f*(-10));var _a11=(10)*Math.sqrt((_a0e*_a0e)+(_a0f*_a0f));var _a12=_a10/_a11;_a12=Math.acos(_a12);_a12=_a12*(180/Math.PI);if(_a0e<=0){_a12=360-_a12;}this.rotate(this.selected,Math.round(_a12),_a0c,_a0d);};SVGRenderer.prototype.setRotationValue=function(_a13,_a14){var _a15=true;if(!_a14){_a15=false;_a14=SVGRenderer.selected;}var dim=this.getDimension(_a14);var sel=SVGRenderer.getSelectedSVG(_a14);var xv=sel.getAttributeNS(null,"x").split("px")[0];var yv=sel.getAttributeNS(null,"y").split("px")[0];var _a1a=(xv*1)+(dim.width/2);var _a1b=(yv*1)+(dim.height/2);SVGRenderer.rotate(_a14,Math.round(_a13%360),_a1a,_a1b,_a15);};SVGRenderer.rotate=function(_a1c,_a1d,cx,cy,_a20){if(!_a1d){_a1d=0;}_a1d=_a1d%360;if(_a1d<0){_a1d=360+_a1d;}this.setRotation(_a1c,_a1d,cx,cy,_a20);};SVGRenderer.setRotation=function(_a21,_a22,_a23,_a24,_a25){if(!_a21){return null;}if(!_a23||!_a24){var dim=svgRenderer.getDimension(_a21);var xv=SVGRenderer.getSelectedSVG(_a21).getAttributeNS(null,"x").split("px")[0];var yv=SVGRenderer.getSelectedSVG(_a21).getAttributeNS(null,"y").split("px")[0];_a23=(xv*1)+(dim.width/2);_a24=(yv*1)+(dim.height/2);}var grp;if(_a21.tagName=="g"){grp=_a21;}if(_a21.tagName=="path"){grp=_a21.parentNode.parentNode;}var sobj=new Object();sobj["angle"]=_a22;sobj["cx"]=_a23;sobj["cy"]=_a24;SVGRenderer.setTransform(grp,"rotate",sobj);if(!_a25){var _a2b=$("trackergrp");if(_a2b){SVGRenderer.setTransform(_a2b,"rotate",sobj);svgRenderer.setResizeCursors(_a22);}SVGRenderer.primeAngle=_a22;}};SVGRenderer.prototype.getSelectedShape=function(src){if(src.tagName=="tspan"){return src.parentNode.parentNode;}if(src.tagName=="text"){return src.parentNode;}if(src.id=="c-circle"){return SVGRenderer.selected;}if(src){return src.parentNode.parentNode;}};SVGRenderer.prototype.getMarkup=function(){return SVGRenderer.container.innerHTML;};SVGRenderer.prototype.hideShapeText=function(_a2d,show){var text=_a2d.getElementsByTagName("text")[0];if(text){var disp=show?"":"none";text.style.display=disp;}};SVGRenderer.startResize=function(ev,rbox){svgRenderer.finishTextEditing(true);svgRenderer.hideShapeText(SVGRenderer.selected);SVGRenderer.resizing=true;var _a33=Position.cumulativeOffset(SVGRenderer.container);SVGRenderer.mouseDownX=(Event.pointerX(ev)-_a33[0]);SVGRenderer.mouseDownY=(Event.pointerY(ev)-_a33[1]);var dim=SVGRenderer.primeDim=svgRenderer.getDimension(this.selected);SVGRenderer.primeW=dim.width;SVGRenderer.primeH=dim.height;SVGRenderer.primeRatio=dim.height/dim.width;var pos=svgRenderer.getPosition(this.selected);SVGRenderer.primePos=pos;SVGRenderer.primeSX=pos.x;SVGRenderer.primeSY=pos.y;SVGRenderer.primeAngle=svgRenderer.getRotation(this.selected);var dir="e";var did=rbox.id;if(did.length>2){dir="se";}else{if(did.indexOf("w")!=-1){dir="w";}else{if(did.indexOf("n")!=-1){dir="n";}else{if(did.indexOf("s")!=-1){dir="s";}}}}svgRenderer.setResizeCursorForDir(SVGRenderer.primeAngle,dir);Utils._stopEvent(ev);Utils._addEvent(document,"mousemove",function(ev){var _a39=(!ev)?window.event:ev;SVGRenderer.resizeShape(_a39,dir,svgRenderer.getType(SVGRenderer.selected));Utils._stopEvent(_a39);});Utils._addEvent(document,"mouseup",function(ev){var _a3b=(!ev)?window.event:ev;SVGRenderer.endResize(_a3b);document.body.style.cursor="";});};SVGRenderer.resizeShape=function(_a3c,dir,type){var _a3f=svgRenderer.getShape();var pos=SVGRenderer.primePos;var x=pos.x,y=pos.y;var min=1;var _a44=SVGRenderer.primeAngle;if(!_a44){_a44=0;}_a44=_a44%360;var _a45=Position.cumulativeOffset(SVGRenderer.container);var pgX=(Event.pointerX(_a3c)-_a45[0]);var pgY=(Event.pointerY(_a3c)-_a45[1]);var mmX=svgRenderer.getRVal(_a44,SVGRenderer.mouseDownX,SVGRenderer.mouseDownY,-1);var ssX=svgRenderer.getRVal(_a44,pgX,pgY,-1);var mmY=svgRenderer.getRVal(_a44,SVGRenderer.mouseDownY,SVGRenderer.mouseDownX,1);var ssY=svgRenderer.getRVal(_a44,pgY,pgX,1);var opt;if(type=="image"){svgRenderer.flip(dir,undefined,true);}var _a4d,_a4e;var dw=(ssX-mmX)*SVGRenderer.deltaViewW;var dh=(ssY-mmY)*SVGRenderer.deltaViewH;var tH=SVGRenderer.primeH;var tW=SVGRenderer.primeW;if(dir=="se"){_a4d=Math.max(min,SVGRenderer.primeW*1+dw);pos=SVGRenderer.setWidth(_a3f,pos.x,pos.y,_a4d,_a44,true);SVGRenderer.primeW=_a4d;_a4e=_a4d*SVGRenderer.primeRatio;pos=SVGRenderer.setHeight(_a3f,pos.x,pos.y,_a4e,_a44,true);}else{if(dir=="e"){_a4d=Math.max(min,SVGRenderer.primeW*1+dw);pos=SVGRenderer.setWidth(_a3f,pos.x,pos.y,_a4d,_a44,true);SVGRenderer.primeW=_a4d;}if(dir=="w"){_a4d=Math.max(min,SVGRenderer.primeW*1-dw);pos=SVGRenderer.setWidth(_a3f,pos.x,pos.y,_a4d,_a44,false);SVGRenderer.primeW=_a4d;}if(dir=="s"){_a4e=Math.max(min,SVGRenderer.primeH*1+dh);pos=SVGRenderer.setHeight(_a3f,pos.x,pos.y,_a4e,_a44,true);SVGRenderer.primeH=_a4e;}if(dir=="n"){_a4e=Math.max(min,SVGRenderer.primeH*1-dh);pos=SVGRenderer.setHeight(_a3f,pos.x,pos.y,_a4e,_a44,false);SVGRenderer.primeH=_a4e;}}SVGRenderer.primePos=pos;SVGRenderer.primeW=tW;SVGRenderer.primeH=tH;SVGRenderer.updateRotation(SVGRenderer.selected);svgRenderer.positionTracker(SVGRenderer.selected);};SVGRenderer.setWidth=function(_a53,x,y,_a56,_a57,_a58,_a59){var _a5a=false;if(!_a59){_a5a=true;_a59=SVGRenderer.selected;}var sign=(_a58)?1:-1;var opt;if(_a5a){var dim=SVGRenderer.primeDim;}else{var dim=svgRenderer.getDimension(_a59);}if(_a58){opt=SVGRenderer.getRadPoint(x,y,_a57,_a59);}else{opt=SVGRenderer.getRadPoint(x*1+dim.width*1,y*1+dim.height*1,_a57,_a59);}var w=SVGRenderer.primeW;svgRenderer.resize(_a53,undefined,undefined,_a56,SVGRenderer.primeH,undefined,_a59);var _a5f=SVGRenderer.getSelectedSVG(_a59);if(_a58){pt=SVGRenderer.getRadPoint(x,y,_a57,_a59);}else{pt=SVGRenderer.getRadPoint(x*1+_a56*1,y*1+dim.height*1,_a57,_a59);}var newX=x*1+opt.x*1-pt.x*1;var newY=y*1+opt.y*1-pt.y*1;_a5f.setAttributeNS(null,"x",newX);_a5f.setAttributeNS(null,"y",newY);if(_a5a){SVGRenderer.primeDim.width=_a56;}var ob=new Object();ob.x=newX;ob.y=newY;return ob;};SVGRenderer.setHeight=function(_a63,x,y,_a66,_a67,_a68,_a69){var _a6a=false;if(!_a69){_a6a=true;_a69=SVGRenderer.selected;}var sign=(_a68)?1:-1;var dim;if(_a6a){dim=SVGRenderer.primeDim;}else{dim=svgRenderer.getDimension(_a69);}var opt;if(_a68){opt=SVGRenderer.getRadPoint(x,y,_a67,_a69);}else{opt=SVGRenderer.getRadPoint(x*1+dim.width*1,y*1+dim.height*1,_a67,_a69);}var w=SVGRenderer.primeW;svgRenderer.resize(_a63,undefined,undefined,SVGRenderer.primeW,_a66,undefined,_a69);if(_a68){pt=SVGRenderer.getRadPoint(x,y,_a67,_a69);}else{pt=SVGRenderer.getRadPoint(x*1+dim.width*1,y*1+_a66*1,_a67,_a69);}var newX=x*1+opt.x*1-pt.x*1;var newY=y*1+opt.y*1-pt.y*1;var _a71=SVGRenderer.getSelectedSVG(_a69);_a71.setAttributeNS(null,"x",newX);_a71.setAttributeNS(null,"y",newY);if(_a6a){SVGRenderer.primeDim.height=_a66;}var ob=new Object();ob.x=newX;ob.y=newY;return ob;};SVGRenderer.prototype.resize=function(_a73,left,top,_a76,_a77,flip,_a79){if(!_a79){_a79=SVGRenderer.selected;}var type=_a73.getAttribute("_type");if(type=="image"){_a73.setAttribute("width",_a76);_a73.setAttribute("height",_a77);var svg=_a73.parentNode;svg.setAttribute("_width",_a76);svg.setAttribute("_height",_a77);}else{if(type!="line"){if(!flip){flip=this.getFlip(_a79);}else{if(flip==" "){flip=undefined;_a79.removeAttribute("_flip");}else{_a79.setAttribute("_flip",flip);}}_a73.setAttributeNS(null,"d",svgRenderer.makePath(Clips.getPath(type,_a76,_a77,null,flip)));var svg=_a73.parentNode;svg.setAttribute("_width",_a76);svg.setAttribute("_height",_a77);if(left&&top){this.setPos(_a79,left,top);}}else{_a73.setAttribute("x2",left);_a73.setAttribute("y2",top);}}};SVGRenderer.endResize=function(ev){Utils._removeEvent(document,"mousemove",Utils.eventHandlers["mousemove"]);Utils._removeEvent(document,"mouseup",Utils.eventHandlers["mouseup"]);SVGRenderer.resizing=false;svgRenderer.hideShapeText(SVGRenderer.selected,true);SVGRenderer.resetShapeTextAfterResize(SVGRenderer.selected);UndoRedo.ACTION="resize";svgRenderer.syncThumbnailView();var _a7d=this.selected.getAttribute("id");var view=svgRenderer.getViewCoordinates();var dim=svgRenderer.getDimension(this.selected);var pos=svgRenderer.getPosition(this.selected);var _a81="resize:"+view.width+":"+view.height+":"+dim.width+":"+dim.height+":"+pos.x+":"+pos.y;ShareCollaboration.sendShareMessage("modify",_a7d,_a81);};SVGRenderer.getRadPoint=function(x,y,_a84,_a85){var _a86=SVGRenderer.getSelectedSVG(_a85);var dim=svgRenderer.getDimension(_a86);var xv=_a86.getAttributeNS(null,"x").split("px")[0];var yv=_a86.getAttributeNS(null,"y").split("px")[0];var cX=(xv*1)+(dim.width/2);var cY=(yv*1)+(dim.height/2);x=x-cX;y=y-cY;var obj=new Object();obj.x=((x*Math.cos((Math.PI/180)*(_a84)))-(y*Math.sin((Math.PI/180)*(_a84)))*1)+(cX*1);obj.y=((x*Math.sin((Math.PI/180)*(_a84)))+(y*Math.cos((Math.PI/180)*(_a84)))*1)+(cY*1);return obj;};SVGRenderer.prototype.getAlteredPercentageFontSize=function(_a8d){var oP=_a8d.split("%")[0];return oP+"%";};SVGRenderer.prototype.getCorrectPercentageFontSize=function(_a8f,_a90){if(!_a90){_a90=SVGRenderer.deltaViewW;}var oP=_a8f.split("%")[0];return (oP/_a90)+"%";};SVGRenderer.prototype.createTextElement=function(text,_a93){if(!_a93){_a93=SVGRenderer.selected;}var _a94=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"text");var _a95=this.getAlteredPercentageFontSize("100");_a94.style.fontSize=_a95;_a94.style.fontWeight="normal";_a94.style.fontFamily="arial";_a94.style.fontStyle="normal";_a94.style.position="absolute";_a94.setAttributeNS(null,"fill","black");_a94.setAttributeNS(null,"stroke","black");_a94.setAttributeNS(null,"stroke-width","0");var dim=this.getDimension(_a93);_a94.setAttributeNS(null,"width",dim.width);_a94.setAttributeNS(null,"height",dim.height);_a94.setAttributeNS(null,"text-anchor","middle");_a94.setAttributeNS(null,"fill-opacity","1.0");_a94.setAttributeNS(null,"stroke-dasharray","0");var svg=SVGRenderer.getSelectedSVG(_a93);var x=svg.getAttributeNS(null,"x").split("px")[0];var y=svg.getAttributeNS(null,"y").split("px")[0];var _a9a=SVGRenderer.getSelectedSVG(_a93);this.createTextSpans(text,_a94,x,dim.width);if(_a93){_a93.appendChild(_a94);}SVGRenderer.setTextPosition(_a93,_a94,x,y);return _a94;};SVGRenderer.prototype.createTextSpans=function(text,_a9c,x,_a9e){var _a9f=text.split("\r\n");for(var i=0;i<_a9f.length;i++){var _aa1=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"tspan");_aa1.textContent=_a9f[i].trim();_aa1.setAttributeNS(null,"text-anchor","middle");_a9c.appendChild(_aa1);}};SVGRenderer.prototype.reAddTexts=function(_aa2,text,_aa4){if(!_aa4){_aa4=SVGRenderer.selected;}_aa2.textContent="";var svg=SVGRenderer.getSelectedSVG(_aa4);var x=svg.getAttributeNS(null,"x").split("px")[0];var y=svg.getAttributeNS(null,"y").split("px")[0];var dim=this.getDimension(_aa4);this.createTextSpans(text,_aa2,x,dim.width);SVGRenderer.setTextPosition(_aa4,_aa2,x,y);};SVGRenderer.prototype.finishTextEditing=function(_aa9){SVGRenderer.isTextEditing=false;if(!SVGRenderer.selected){return;}var _aaa=$("addtext");if(_aaa){text=this.getWrappedText(_aaa);_aaa.parentNode.removeChild(_aaa);this.updateText(text);UndoRedo.ACTION="addtext";svgRenderer.syncThumbnailView();var _aab=SVGRenderer.selected.getAttribute("id");var _aac="addtext";if(text.length>0){_aac+=":"+text;}ShareCollaboration.sendShareMessage("modify",_aab,_aac);}if(!_aa9){SVGRenderer.selected=undefined;}};SVGRenderer.prototype.updateText=function(text,_aae){if(!_aae){_aae=SVGRenderer.selected;}var _aaf=_aae.getElementsByTagName("text")[0];if(text.length>0){if(!_aaf){_aaf=this.createTextElement(text,_aae);}else{this.reAddTexts(_aaf,text,_aae);}}else{if(_aaf){_aaf.parentNode.removeChild(_aaf);}}};SVGRenderer.prototype.onAddText=function(){if(!SVGRenderer.selected){return;}if(!SVGRenderer.isTextEditing){SVGRenderer.isTextEditing=true;}else{return;}var pos=this.getPosition(SVGRenderer.selected);var _ab1=$("addtext");if(_ab1){_ab1.parentNode.removeChild(_ab1);}_ab1=document.createElement("textarea");_ab1.id="addtext";var dim=this.getDimension(SVGRenderer.selected);var w=dim.width/SVGRenderer.deltaViewW;var h=dim.height/SVGRenderer.deltaViewH;var _ab5=svgRenderer.getRotation(SVGRenderer.selected);if((_ab5>=45&&_ab5<=135)||(_ab5>=225&&_ab5<=315)){pos=SVGRenderer.getRadPoint(pos.x*1,pos.y*1+h*1,90,SVGRenderer.selected);var tmp=w;w=h;h=tmp;}_ab1.style.width=w;_ab1.style.height=h;_ab1.style.left=pos.x/SVGRenderer.deltaViewW;_ab1.style.top=pos.y/SVGRenderer.deltaViewH;_ab1.style.overflow="hidden";var _ab7=this.getFontDetails(SVGRenderer.selected);this.cloneFontStyles(_ab1,_ab7);SVGRenderer.container.parentNode.parentNode.appendChild(_ab1);var text=SVGRenderer.selected.getElementsByTagName("text")[0];var _ab9=svgRenderer.getTextContent(SVGRenderer.selected);_ab1.value=_ab9;_ab1.style.backgroundColor="white";_ab1.focus();Utils._addEvent(_ab1,"blur",function(ev){Utils._removeEvent(_ab1,"blur",Utils.eventHandlers["blur"+"addText"]);svgRenderer.finishTextEditing();},"addText");};SVGRenderer.prototype.getTextContent=function(_abb){var text=_abb.getElementsByTagName("text")[0];var _abd="";if(text){var _abe=text.getElementsByTagName("tspan");var len=_abe.length;for(var i=len-1;i>=0;i--){var d=_abe[i];if(d){var s=d.textContent.trim().replace("\r\n"," ")+" ";_abd=s+_abd;d.parentNode.removeChild(d);}}if(_abd.length==0){_abd=text.textContent;}}return _abd.trim();};SVGRenderer.prototype.getFontDetails=function(_ac3){if(!_ac3){_ac3=SVGRenderer.selected;}var text=_ac3.getElementsByTagName("text")[0];if(!text){return null;}var fDet=new Object();fDet.fSize=this.getCorrectPercentageFontSize(text.style.fontSize);fDet.fStyle=text.style.fontStyle;fDet.fWeight=text.style.fontWeight;fDet.fFamily=text.style.fontFamily;var fill=text.getAttributeNS(null,"fill");if(fill.indexOf("url")!=-1){var _ac7=this.getGradientColors(_ac3,"linear",true);fDet.fill="gradient";fDet.colors=_ac7;}else{fDet.fill=fill;fDet.opacity=this.getFillOpacity(_ac3,true);}fDet.borderColor=text.getAttributeNS(null,"stroke");fDet.borderSize=text.getAttributeNS(null,"stroke-width");fDet.borderOpacity=text.getAttributeNS(null,"stroke-opacity");if(!fDet.borderOpacity){fDet.borderOpacity="1.0";}return fDet;};SVGRenderer.prototype.getFontStrokeProperty=function(_ac8,_ac9){var prop="stroke";if(_ac9=="size"){prop="stroke-width";}else{if(_ac9=="opacity"){prop="stroke-opacity";}}var text=_ac8.getElementsByTagName("text")[0];if(!text){return null;}var val=text.getAttributeNS(null,prop);if(!val&&_ac9=="opacity"){val="1.0";}if(_ac9=="size"){val=val.split("px")[0];}return val;};SVGRenderer.prototype.setFontStrokeProperty=function(_acd,_ace,_acf){var prop="stroke";if(_ace=="size"){prop="stroke-width";}else{if(_ace=="opacity"){prop="stroke-opacity";}}var text=_acd.getElementsByTagName("text")[0];if(!text){return null;}text.setAttributeNS(null,prop,_acf);};SVGRenderer.prototype.updateFont=function(_ad2,_ad3,_ad4){if(!_ad2){_ad2=SVGRenderer.selected;}var text=_ad2.getElementsByTagName("text")[0];if(!text){return;}if(_ad3=="fontSize"){_ad4=this.getAlteredPercentageFontSize(_ad4);}if(_ad3=="fontFamily"){_ad4="'"+_ad4+"'";}text.style[_ad3]=_ad4;SVGRenderer.resetShapeTextAfterResize(_ad2);};SVGRenderer.prototype.getFontStyle=function(_ad6,_ad7){if(!_ad6){_ad6=SVGRenderer.selected;}var text=_ad6.getElementsByTagName("text")[0];if(!text){return null;}if(_ad7=="fontSize"){return this.getCorrectPercentageFontSize(text.style.fontSize);}else{var val=text.style[_ad7];if(_ad7=="fontFamily"){val=val.replace(/'/g,"");}return val;}};SVGRenderer.prototype.setFontDetails=function(_ada,fDet){if(!_ada){_ada=SVGRenderer.selected;}var text=_ada.getElementsByTagName("text")[0];if(!text){return;}text.style.fontSize=fDet.fSize;text.style.fontStyle=fDet.fStyle;text.style.fontWeight=fDet.fWeight;text.style.fontFamily=fDet.fFamily;var fill=fDet.fill;if(fill=="gradient"){var c1=fDet.colors.color1;var c2=fDet.colors.color2;var grad=this.getTextGradient(_ada);if(!grad){grad=this.addLinearGradient(_ada,c1.color,c2.color,c1.opacity,c2.opacity,true);}else{this.setLinearGradientOffsetValues(grad,c1.color,c1.opacity,0);this.setLinearGradientOffsetValues(grad,c2.color,c2.opacity,1);}}else{text.setAttributeNS(null,"fill",fill);}return fDet;};SVGRenderer.prototype.getVectorContent=function(_ae1){var view=this.svgRoot.viewBox.baseVal;var sW=_ae1.offsetWidth;var dW=view.width/sW;var _ae5=$("addtext");if(_ae5){_ae5.parentNode.removeChild(_ae5);}var svg=this.getMasterDocument(_ae1);var xSer=new XMLSerializer();var vec;if(svg){svg.removeAttributeNS(null,"class");vec=xSer.serializeToString(svg);var node=this.getNodeForVector(vec);var gs=node.getElementsByTagName("*");for(var i=0;i<gs.length;i++){if(gs[i].id=="trackergrp"||gs[i].id=="tracker"){gs[i].parentNode.removeChild(gs[i]);}else{var _aec=gs[i].getAttribute("stroke-width");if(_aec){_aec=Math.round((_aec.split("p")[0]/dW));gs[i].setAttribute("stroke-width",_aec+"px");}var _aed=gs[i].getAttribute("transform");var _aee=gs[i].getAttribute("_transform");if(_aed&&_aed.indexOf("matrix")!=-1){gs[i].setAttribute("transform",_aee);}}}vec=xSer.serializeToString(node);}return vec;};SVGRenderer.prototype.checkAndSetDefaultSize=function(_aef){var dim=this.getDimension(SVGRenderer.selected);var w=Math.round(dim.width/SVGRenderer.deltaViewW);var h=Math.round(dim.height/SVGRenderer.deltaViewH);var _af3=SVGRenderer.getSelectedSVG(SVGRenderer.selected);var wd=_af3.getAttribute("_width");var ht=_af3.getAttribute("_height");var _af6=false;var type=SVGRenderer.selected.getAttributeNS(null,"_type");if(type=="line"){if(w<=1&&h<=1){_af6=true;}}else{if(!wd||!ht){_af6=true;}else{if(w<=1&&h<=1){_af6=true;}}}var newX,newY;if(_af6){var nW=50;var nH=50;var pos;var oX=0;oY=0;if(type=="line"){pos=this.bounds(SVGRenderer.selected);oX=pos.x2*1+50;oY=pos.y2;}else{pos=this.getPosition(SVGRenderer.selected);}var _afe=this.getShape();this.resize(_afe,oX,oY,nW,nH);if(type!="line"){newX=pos.x;newY=pos.y;if(!_aef){newX-=nW/2;newY-=nH/2;}_af3.setAttributeNS(null,"x",newX);_af3.setAttributeNS(null,"y",newY);}UndoRedo.ACTION="add";this.syncThumbnailView();dim.width=nW;dim.height=nH;}var draw=ShowUtils.drawEditor;var v=this.getViewCoordinates();if(type=="line"){pos=this.bounds(SVGRenderer.selected);newX=pos.x1;newY=pos.y1;dim.width=pos.x2;dim.height=pos.y2;}else{pos=this.getPosition(SVGRenderer.selected);if(!newX){newX=pos.x;}if(!newY){newY=pos.y;}}var _b01=draw.mode+":"+draw.fillColor1+":"+draw.fillColor2+":"+draw.lineColor+":"+draw.lineWidth+":"+newX+":"+newY+":"+dim.width+":"+dim.height+":"+v.width+":"+v.height+":"+SVGRenderer.startArrow+":"+SVGRenderer.endArrow;var _b02=SVGRenderer.selected.getAttribute("id");ShareCollaboration.sendShareMessage("add",_b02,_b01);};SVGRenderer.prototype.getImageSrc=function(_b03){if(_b03){var _b04=_b03.getElementsByTagName("image")[0];return _b04.getAttributeNS("http://www.w3.org/1999/xlink","href");}return undefined;};SVGRenderer.prototype.setLinePosition=function(_b05,_b06,_b07){if(!_b05){return;}var type=this.getType(_b05);if(type!="line"){return;}var ele=this.getShape(_b05);ele.setAttributeNS(null,_b06,_b07);};SVGRenderer.prototype.getLinePosition=function(_b0a,_b0b){if(!_b0a){_b0a=SVGRenderer.selected;}var type=this.getType(_b0a);if(type!="line"){return;}var ele=this.getShape(_b0a);return ele.getAttributeNS(null,_b0b);};SVGRenderer.prototype.setDimension=function(_b0e,_b0f,_b10,_b11,_b12,_b13){if(!_b13){_b13=SVGRenderer.selected;}var _b14=this.getShape(_b13);var pos=this.getPosition(_b13);var dim=this.getDimension(_b13);var x=pos.x;var y=pos.y;SVGRenderer.primeH=dim.height;SVGRenderer.primeSX=x;SVGRenderer.primeSY=y;var _b19=svgRenderer.getRotation(_b13);if(!_b19){_b19=0;}if(_b0e!=dim.width){SVGRenderer.setWidth(_b14,x,y,_b0e,_b19,_b10,_b13);}if(_b0f!=dim.height){SVGRenderer.primeW=_b0e;pos=this.getPosition(_b13);SVGRenderer.primeSX=pos.x;SVGRenderer.primeSY=pos.y;SVGRenderer.setHeight(_b14,pos.x,pos.y,_b0f,_b19,_b11,_b13);}pos=this.getPosition(_b13);x=pos.x;y=pos.y;SVGRenderer.resetShapeTextAfterResize(_b13);SVGRenderer.updateRotation(_b13);var type=this.getType(_b13);if(type=="image"){this.flip(undefined,_b13,true);}if(!_b12){this.syncThumbnailView();}};SVGRenderer.prototype.flip=function(dir,_b1c,_b1d){if(!_b1c){_b1c=SVGRenderer.selected;}var type=this.getType(_b1c);var dim=this.getDimension(_b1c);if(type=="image"){var _b20=_b1c.getElementsByTagName("image")[0];var _b21=SVGRenderer.getTransform(_b20,"scale");if(!_b21){_b21=new Object();_b21["sw"]=1;_b21["sh"]=1;}_b20.setAttributeNS(null,"transform","");if(!_b1d){if(dir=="x"){_b21.sw=_b21.sw*-1;}else{_b21.sh=_b21.sh*-1;}}if(_b21.sw*1==1&&_b21.sh*1==1){_b1c.setAttribute("_flip","");return;}var _b22=new Object();_b22["x"]=dim.width;_b22["y"]=dim.height;var fX=0,fY=0;if(_b21.sw*1==-1&&_b21.sh*1==-1){fX=fY=0;}else{if(_b21.sw==-1){fX=0;fY=-1*dim.height;}else{fX=-1*dim.width;fY=0;}}var _b25=new Object();_b25["x"]=fX;_b25["y"]=fY;SVGRenderer.setTransform(_b20,"translate",_b22);SVGRenderer.setTransform(_b20,"scale",_b21);SVGRenderer.setTransform(_b20,"translate",_b25,true);var _b26=this.getFlip(_b1c);if(!_b26){_b26="";}_b1c.setAttribute("_flip",_b26);}else{if(this.isTypeValidForFlip(type)){var _b27=this.getShape(_b1c);var _b28=_b1c.getAttribute("_flip");var flip;if(!_b28||_b28==""){flip=dir;}else{if(_b28==dir){flip=undefined;}else{if(_b28.length>1){if(dir=="x"){flip="y";}else{flip="x";}}else{flip="xy";}}}var _b2a=flip;if(!_b2a){_b2a="";}_b1c.setAttribute("_flip",_b2a);_b27.setAttributeNS(null,"d",this.makePath(Clips.getPath(type,dim.width,dim.height,null,flip)));}}};SVGRenderer.prototype.flipX=function(){this.flip("x");this.syncThumbnailView();};SVGRenderer.prototype.flipY=function(){this.flip("y");this.syncThumbnailView();};SVGRenderer.prototype.getFlip=function(_b2b){if(!_b2b){_b2b=SVGRenderer.selected;}var type=this.getType(_b2b);if(type=="image"){var _b2d=_b2b.getElementsByTagName("image")[0];var _b2e=SVGRenderer.getTransform(_b2d,"scale");if(!_b2e){return undefined;}if(_b2e.sw<1&&_b2e.sh<1){return "x y";}else{if(_b2e.sw<1){return "x";}else{return "y";}}}else{var flip=_b2b.getAttribute("_flip");if(flip==""){return undefined;}else{return flip;}}};SVGRenderer.prototype.setBorderType=function(_b30,type){var dash="";if(type=="dashed"){dash="3, 2";}_b30.setAttributeNS(null,"stroke-dasharray",dash);};SVGRenderer.prototype.getBorderType=function(_b33){var dash=_b33.getAttributeNS(null,"stroke-dasharray");if(!dash||dash.length==0){return "Solid";}else{return "Dashed";}};SVGRenderer.prototype.getFillOpacityProperty=function(_b35){var prop="fill-opacity";var type=this.getType(_b35);if(type=="image"){prop="opacity";}return prop;};SVGRenderer.prototype.setFillOpacity=function(_b38,_b39,_b3a,_b3b){if(!_b38){return;}var prop=this.getFillOpacityProperty(_b38);var ele=_b38;if(_b3b){ele=_b38.getElementsByTagName("text")[0];if(!ele){return;}}if(this.isGradientFilled(_b38,_b3b)){var _b3e=this.getGradientElement(_b38,_b3b);var _b3f="1";if(_b3a){_b3f="0";}var _b40=this.getLinearGradientOffset(_b3e,_b3f);_b40.setAttributeNS(null,"stop-opacity",_b39);ele.setAttributeNS(null,prop,"");}else{ele.setAttributeNS(null,prop,_b39);}};SVGRenderer.prototype.getFillOpacity=function(_b41,_b42){var ele=_b41;if(_b42){ele=_b41.getElementsByTagName("text")[0];}if(!ele){return 0;}var prop=this.getFillOpacityProperty(_b41);var op=ele.getAttributeNS(null,prop);if(!op){op="1.0";}return op;};SVGRenderer.prototype.setStrokeOpacity=function(_b46,_b47){if(!_b46){return;}var type=this.getType(_b46);if(type=="line"){_b46.setAttributeNS(null,"opacity",_b47);}else{_b46.setAttributeNS(null,"stroke-opacity",_b47);}};SVGRenderer.prototype.getStrokeOpacity=function(_b49){if(!_b49){return "0.0";}var val="1.0";var type=this.getType(_b49);if(type=="line"){val=_b49.getAttributeNS(null,"opacity");}else{val=_b49.getAttributeNS(null,"stroke-opacity");}if(!val){val="1.0";}return val;};SVGRenderer.prototype.getLineBoundsForAngle=function(_b4c,_b4d){var _b4e=new Object();var x1,x2,y1,y2;var unit="%";var ex=ey="100";var tx=ty="0";if(_b4d){var box;try{box=_b4d.getBBox();}catch(err){return undefined;}w=box.width;h=box.height;tx=box.x;ty=box.y;ex=w*1+box.x*1;ey=h*1+box.y*1;unit="px";}if(_b4c==0){x1=x2=tx;y2=ty;y1=ey;}else{if(_b4c==45){x1=ex;y1=ey;x2=tx;y2=ty;}else{if(_b4c==90){x1=ex;x2=tx;y1=y2=ty;}else{if(_b4c==135){x1=ex;y2=ey;x2=tx;y1=ty;}else{if(_b4c==180){x1=x2=tx;y1=ty;y2=ey;}else{if(_b4c==225){x1=tx;y1=ty;x2=ex;y2=ey;}else{if(_b4c==270){x1=tx;y1=y2=ty;x2=ex;}else{if(_b4c==315){x1=tx;y2=ty;x2=ex;y1=ey;}}}}}}}}_b4e.x1=x1+unit;_b4e.x2=x2+unit;_b4e.y1=y1+unit;_b4e.y2=y2+unit;return _b4e;};SVGRenderer.prototype.getGradientElement=function(_b57,_b58,type){var _b5a;if(!type){type="linear";}if(_b58){return this.getTextGradient(_b57,type);}else{return this.getGradient(_b57,type);}};SVGRenderer.prototype.resetTextGradient=function(_b5b,_b5c){if(!_b5c){_b5c=_b5b.getElementsByTagName("text")[0];}if(!_b5c){return;}var _b5d=this.getTextGradient(_b5b);if(!_b5d){return;}var _b5e=_b5d.getAttributeNS(null,"angle");var b=this.getLineBoundsForAngle(_b5e*1,_b5c);if(!b){return;}_b5d.setAttributeNS(null,"x1",b.x1);_b5d.setAttributeNS(null,"x2",b.x2);_b5d.setAttributeNS(null,"y1",b.y1);_b5d.setAttributeNS(null,"y2",b.y2);};SVGRenderer.prototype.setGradientAngle=function(_b60,_b61,_b62){var _b63=this.getGradientElement(_b60,_b62);var _b64;if(_b62){_b64=_b60.getElementsByTagName("text")[0];}var b=this.getLineBoundsForAngle(_b61,_b64);if(!b){return;}_b63.setAttributeNS(null,"x1",b.x1);_b63.setAttributeNS(null,"x2",b.x2);_b63.setAttributeNS(null,"y1",b.y1);_b63.setAttributeNS(null,"y2",b.y2);_b63.setAttributeNS(null,"angle",_b61);};SVGRenderer.prototype.getGradientAngle=function(_b66,_b67){var _b68=this.getGradientElement(_b66,_b67);return _b68.getAttributeNS(null,"angle");};SVGRenderer.prototype.sendBackward=function(_b69,_b6a){if(!_b69){_b69=SVGRenderer.selected;}if(!_b69){return;}var psib=this.getPreviousNode(_b69);if(!psib){return;}var _b6c=psib.style.zIndex;var _b6d=_b69.style.zIndex;_b69.style.zIndex=_b6c;psib.style.zIndex=_b6d;if(!_b6a){_b6a=this.svgRoot;}_b6a.insertBefore(_b69,psib);};SVGRenderer.prototype.sendBack=function(_b6e,_b6f){if(!_b6e){_b6e=SVGRenderer.selected;}if(!_b6e){return;}var psib=this.getPreviousNode(_b6e);if(!psib){return;}if(!_b6f){_b6f=this.svgRoot;}var _b71=this.getFirstNode(_b6f);var _b72=_b71.style.zIndex;var _b73=_b6e.style.zIndex;_b6e.style.zIndex=_b72*1-1;_b6f.insertBefore(_b6e,_b71);};SVGRenderer.prototype.bringForward=function(_b74,_b75){if(!_b74){_b74=SVGRenderer.selected;}if(!_b74){return;}var nsib=this.getNextNode(_b74);if(!nsib||nsib.id=="trackergrp"){return;}var _b77=nsib.style.zIndex;var _b78=_b74.style.zIndex;_b74.style.zIndex=_b77;nsib.style.zIndex=_b78;if(!_b75){_b75=this.svgRoot;}_b75.insertBefore(nsib,_b74);};SVGRenderer.prototype.bringFront=function(_b79,_b7a){if(!_b79){_b79=SVGRenderer.selected;}if(!_b79){return;}if(!_b7a){_b7a=this.svgRoot;}var nsib=this.getLastNode(_b7a);if(!nsib){return;}if(nsib.id=="trackergrp"){nsib=this.getPreviousNode(nsib);}if(!nsib||nsib.id==_b79.id){return;}_b79.style.zIndex=++SVGRenderer.zindex;_b7a.appendChild(_b79);};SVGRenderer.prototype.copy=function(_b7c){if(!_b7c){_b7c=SVGRenderer.selected;}if(!_b7c){return;}SVGRenderer.cutCopyObject=new Object();SVGRenderer.cutCopyObject.shape=_b7c.cloneNode(true);var s=SVGRenderer.cutCopyObject.shape;var type=this.getType(_b7c);if(type!="image"){}SVGRenderer.cutCopyObject.deltaW=SVGRenderer.deltaViewW;SVGRenderer.cutCopyObject.deltaH=SVGRenderer.deltaViewH;};SVGRenderer.prototype.setNewIdForGradientsAndMarkers=function(node){var _b80=node.getElementsByTagName("linearGradient");for(var i=0;i<_b80.length;i++){var gr=_b80[i];var _b83=(gr.id.indexOf("text")==-1)?"linear":"textLinear";var gid=this.createUUID(_b83);gr.id=gid;gr.setAttributeNS(null,"id",gid);var par=gr.parentNode;if(gr.id.indexOf("text")==-1){par.setAttributeNS(null,"fill","url(#"+gr.id+")");}else{var txt=par.getElementsByTagName("text")[0];txt.setAttributeNS(null,"fill","url(#"+gr.id+")");}}var _b87=node.getElementsByTagName("marker");for(var j=0;j<_b87.length;j++){var _b89="markerStart";var m=_b87[j];var p=m.parentNode;var l=p.getElementsByTagName("line")[0];var px="marker-start";if(m.id.indexOf("markerStart")==-1){_b89="markerEnd";px="marker-end";}var mid=this.createUUID(_b89);m.id=mid;m.setAttributeNS(null,"id",mid);l.setAttributeNS(null,px,"url(#"+m.id+")");}};SVGRenderer.prototype.paste=function(left,top){if(!SVGRenderer.cutCopyObject){return;}var _b91=SVGRenderer.cutCopyObject.shape;_b91.id=this.createUUID("shape");_b91.style.zIndex=++SVGRenderer.zindex;var type=this.getType(_b91);if(left&&top){left=(left+SideBar.containerDiv.scrollLeft)*SVGRenderer.deltaViewW;top=top*SVGRenderer.deltaViewH;if(type!="line"){this.setPos(_b91,left,top);}}SVGRenderer.cutCopyObject.shape=_b91.cloneNode(true);this.svgRoot.appendChild(_b91);if(type!="line"){var pos=this.getPosition(_b91);if(!left||!top){left=pos.x*1+SVGRenderer.copyPasteGap*SVGRenderer.deltaViewW;top=pos.y*1+SVGRenderer.copyPasteGap*SVGRenderer.deltaViewH;}this.setPos(_b91,left,top);var dim=this.getDimension(_b91);var _b95=dim.height;var _b96=dim.width;SVGRenderer.selected=_b91;this.setDimension(_b96,_b95,true,true);SVGRenderer.cutCopyObject.shape=_b91.cloneNode(true);var _b97=_b91.getElementsByTagName("linearGradient");for(var i=0;i<_b97.length;i++){var gr=_b97[i];var _b9a=(gr.id.indexOf("text")==-1)?"linear":"textLinear";gr.id=this.createUUID(_b9a);if(gr.id.indexOf("text")==-1){_b91.setAttributeNS(null,"fill","url(#"+gr.id+")");}else{var txt=_b91.getElementsByTagName("text")[0];txt.setAttributeNS(null,"fill","url(#"+gr.id+")");}}var text=_b91.getElementsByTagName("text")[0];if(text){var _b9d=text.style.fontSize;_b9d=this.getCorrectPercentageFontSize(_b9d,SVGRenderer.cutCopyObject.deltaW);text.style.fontSize=this.getAlteredPercentageFontSize(_b9d);}}else{if(type=="line"){var _b9e=this.bounds(_b91);var d=15;if(left&&top){d=0;var xD=_b9e.x2-_b9e.x1;var yD=_b9e.y2-_b9e.y1;_b9e.x1=left;_b9e.y1=top;_b9e.x2=(left+xD);_b9e.y2=(top+yD);}this.setPos(SVGRenderer.cutCopyObject.shape,d,d,_b9e);this.setPos(_b91,d,d,_b9e);var _ba2=this.getMarker(_b91,"start");var _ba3=this.getMarker(_b91,"end");var line=this.getShape(_b91);if(_ba2){_ba2.id=this.createUUID("markerStart");line.setAttributeNS(null,"marker-start","url(#"+_ba2.id+")");}if(_ba3){_ba3.id=this.createUUID("markerEnd");line.setAttributeNS(null,"marker-end","url(#"+_ba3.id+")");}}}if(type!="image"){var e=(type=="line")?this.getShape(_b91):_b91;var te=(type=="line")?this.getShape(SVGRenderer.cutCopyObject.shape):SVGRenderer.cutCopyObject.shape;var oS=e.getAttributeNS(null,"stroke-width").split("px")[0]*1+"px";e.setAttributeNS(null,"stroke-width",oS);te.setAttributeNS(null,"stroke-width",oS);}SVGRenderer.cutCopyObject.deltaW=SVGRenderer.deltaViewW;SVGRenderer.cutCopyObject.deltaH=SVGRenderer.deltaViewH;return _b91;};SVGRenderer.prototype.changePresetsAngle=function(_ba8){var _ba9=this.getGradientAngle(SVGRenderer.selected);var gs=_ba8.getElementsByTagName("g");for(var i=0;i<gs.length;i++){this.setGradientAngle(gs[i],_ba9);}};SVGRenderer.prototype.drawPresets=function(_bac,_bad,_bae,_baf){var _bb0=this.getGradientAngle(SVGRenderer.selected);var f=_bad.firstChild;var _bb2=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"svg");_bb2.setAttribute("height",_bad.offsetHeight);_bb2.setAttribute("width",_bad.offsetWidth);_bb2.setAttributeNS(null,"shape-rendering","crispEdges");_bb2.style.position="relative";_bb2.style.top="-2000px";_bad.appendChild(_bb2);var sX=0,sY=0;var cnt=0;var x=15,y=12;var w=38,h=28;_baf=_baf*1-1;var _bba=_bae*(_baf);var end=_bba+_bae;if(end>_bac.length){end=_bba+_bac.length%_bae;}for(var i=_bba;i<end;i++){var gP=_bac[i];var c1=gP.color1;var c2=gP.color2;var b=gP.border;cnt++;var g=this.getRectForPreset(i,c1,c2,b,x,y,w,h,_bb0);_bb2.appendChild(g);g.setAttribute("title",gP.name);if(cnt%3!=0){x+=(w+10);}else{x=15;y+=(h+10);}}var _bc2=_bac.length/_bae;if(_bac.length%_bae!=0){_bc2++;}var nav=$("gNavBar");if(_bc2>1){nav.style.display="block";nav.innerHTML="";for(var j=1;j<=_bc2;j++){var span=document.createElement("span");span.innerHTML=j+"";span.style.fontFamily="verdana";span.style.fontSize="11px";span.style.margin="5";span.style.paddingBottom="5";if(j!=(_baf+1)){var s=this;span.style.cursor="pointer";span.style.textDecoration="underline";span.style.color="#678CFE";span.onclick=function(){s.drawPresets(_bac,_bad,_bae,this.innerHTML);};}else{span.style.fontWeight="bold";}nav.appendChild(span);}}else{nav.style.display="none";nav.parentNode.style.height=_bad.style.height;}if(f){f.parentNode.removeChild(f);}_bb2.style.top="0px";};SVGRenderer.prototype.getRectForPreset=function(id,col1,col2,_bca,x,y,w,h,_bcf){var r=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"rect");r.style.cursor="pointer";r.setAttributeNS(null,"x",x+"px");r.setAttributeNS(null,"y",y+"px");r.setAttributeNS(null,"width",w+"px");r.setAttributeNS(null,"height",h+"px");var grp=SVGRenderer.container.ownerDocument.createElementNS(this.svgNamespace,"g");grp.appendChild(r);grp.setAttributeNS(null,"stroke",_bca);grp.setAttributeNS(null,"stroke-width","1px");this.addLinearGradient(grp,col1,col2);this.setGradientAngle(grp,_bcf);grp.onclick=function(){ShowUtils.drawEditor.setPresetColors(id);};return grp;};SVGRenderer.prototype.isThemeImage=function(_bd2){var type=this.getType(_bd2);if(type!="image"){return false;}var img=this.getShape(_bd2);var src=img.getAttributeNS("http://www.w3.org/1999/xlink","href");if(src.indexOf("/themes/")==0){return true;}return false;};SVGRenderer.prototype.preloadImages=function(_bd6,_bd7){var _bd8=new Array();for(var i=0;i<_bd6.length;i++){if(!_bd6[i]){continue;}var dom=(new DOMParser()).parseFromString(_bd6[i],"text/xml");var _bdb=dom.documentElement;var _bdc=_bdb.getElementsByTagName("image");for(var j=0;j<_bdc.length;j++){_bd8[_bd8.length]=_bdc[j].getAttributeNS("http://www.w3.org/1999/xlink","href");}}if(_bd8.length!=0){this.loadNextImage(_bd8,_bd7,0);}};SVGRenderer.prototype.loadNextImage=function(_bde,_bdf,pos){var src=_bde[pos];if(!src){return;}var _be2=new Image();var r=this;_be2.onload=function(){var ti=function(){pos=pos+1;r.loadNextImage(_bde,_bdf,pos);_be2.onload=null;};setTimeout(ti,10);};_be2.src=src;_bdf.push(_be2);};SVGRenderer.prototype.getContainer=function(){return SVGRenderer.container;};SVGRenderer.prototype.getAllElements=function(_be5){var _be6=new Array();if(!_be5){_be5=SVGRenderer.container;}var gs=_be5.getElementsByTagName("g");var ln=gs.length;var _be9=new Array(ln);var m=0;for(var i=ln-1;i>-1;i--){_be9[m]=gs[i];m++;}return _be9;};SVGRenderer.prototype.getShapeElement=function(root,id){var gs=root.getElementsByTagName("g");var ln=gs.length;for(var i=0;i<ln;i++){if(gs[i].id==id){return gs[i];}}};var richdraw;function RichDrawEditor(elem,_bf2,_bf3,_bf4){this.container=elem;this.layoutContainer=_bf2;this.thumbnailcontainer=_bf3;this.gridX=10;this.gridY=10;this.mouseDownX=0;this.mouseDownY=0;this.deltaX=0;this.deltaY=0;this.mode="";this.fillColor1="";this.fillColor2="";this.lineColor="";this.lineWidth="";this.selected=undefined;this.selectedBounds={x:0,y:0,width:0,height:0};this.onunselect=function(){};this.renderer=_bf4;this.onResizeListener=this.onResize.bindAsEventListener(this);if(this.container){this.renderer.init(this.container,this.layoutContainer);}richdraw=this;}RichDrawEditor.trackerColors={trackerBorder:"#0ef803",circleBorder:"#6c6c6c",circleFill:"#ff8a00",boxBorder:"#03d5dd",boxFill:"#ffee7a",cornerBoxBorder:"#082481",cornerBoxFill:"#00b4ff"};RichDrawEditor.gradientPresetsArray=[{name:"Greeny",color1:"#325A08",color2:"#BCEE7F",border:"#325A07"},{name:"Sea blue",color1:"#00879E",color2:"#01E1FB",border:"#00424E"},{name:"Blacky red",color1:"#00424E",color2:"#940401",border:"#380200"},{name:"Dark sandal",color1:"#977200",color2:"#FBBF05",border:"#493701"},{name:"Indian red",color1:"#730609",color2:"#FD7876",border:"#3A0000"},{name:"Dorger blue",color1:"#417A9C",color2:"#B3D5F4",border:"#145575"},{name:"Purple touch",color1:"#4F38B3",color2:"#988EF9",border:"#0B2483"},{name:"Squash",color1:"#F39127",color2:"#FEFF3F",border:"#E54C01"},{name:"Orange pint",color1:"#C50B00",color2:"#F87400",border:"#780801"},{name:"Navy Blue",color1:"#0020df",color2:"#00041f",border:"#000314"},{name:"Clay",color1:"#43184e",color2:"#e46e0a",border:"#33103c"},{name:"Escher",color1:"#1c8c74",color2:"#d13c24",border:"#9c2d1a"},{name:"Beer",color1:"#dbc406",color2:"#4d1d2d",border:"#928106"},{name:"Deep red",color1:"#d50e23",color2:"#334606",border:"#840314"},{name:"Deep Green",color1:"#02244a",color2:"#107a0b",border:"#001327"},{name:"Marooned",color1:"#b4053e",color2:"#25200a",border:"#181304"},{name:"Dragon red",color1:"#e20100",color2:"#3d0301",border:"#220200"},{name:"Dark forest",color1:"#298700",color2:"#051200",border:"#061200"},{name:"Silky",color1:"#117c90",color2:"#7c1516",border:"#5a0c0c"},{name:"Blueberry",color1:"#459dab",color2:"#09343b",border:"#062126"},{name:"Kiwi",color1:"#8f784c",color2:"#282303",border:"#161302"},{name:"Deep fried",color1:"#928f1c",color2:"#7a1527",border:"#691020"},{name:"Deep sky",color1:"#335E81",color2:"#718387",border:"#344A40"},{name:"Wild red",color1:"#730800",color2:"#110101",border:"#0a0100"},{name:"Poppy",color1:"#370f07",color2:"#bc3811",border:"#250900"},{name:"Chocolate",color1:"#835017",color2:"#1f282f",border:"#0e1214"},{name:"Pinkish blue",color1:"#80c5ec",color2:"#df91e5",border:"#62aad3"},{name:"Asparagus",color1:"#6bcad8",color2:"#43b655",border:"#2ba03d"},{name:"Green neon",color1:"#78d2d8",color2:"#a5f351",border:"#7ecd2a"},{name:"Blue yellow",color1:"#eef568",color2:"#82d3db",border:"#60bac3"},{name:"Neon sick",color1:"#57b066",color2:"#d88cd1",border:"#3a8d47"},{name:"Pinky yellow",color1:"#ede878",color2:"#ec93d3",border:"#be57a1"},{name:"Lime",color1:"#adf356",color2:"#e4f566",border:"#95dd38"},{name:"Farm green",color1:"#6bce6b",color2:"#dbf069",border:"#74c223"},{name:"Ice",color1:"#8ecadc",color2:"#e0ef79",border:"#6bc7cb"},{name:"Peach",color1:"#edec6c",color2:"#ecb77e",border:"#d89f5f"},{name:"Tick-trefoil",color1:"#9b8fdc",color2:"#e2e779",border:"#8a7dcd"},{name:"Blue horizon",color1:"#e1f7af",color2:"#2086f5",border:"#0b63c3"},{name:"Browny blue",color1:"#ee8a1e",color2:"#82c4d1",border:"#ac5e0a"},{name:"Pinkish green",color1:"#c5cd23",color2:"#f7c4be",border:"#8c9209"},{name:"Slate",color1:"#e2e2e2",color2:"#a5a5a5",border:"#949494"},{name:"Purple cyan",color1:"#e0c8ea",color2:"#1ff8e5",border:"#0ec0b0"},{name:"Milky rose",color1:"#fccbb5",color2:"#ebf8cd",border:"#dea084"},{name:"Icy yellow",color1:"#e9fa95",color2:"#b7f0f1",border:"#6bc7c9"},{name:"Tricky green",color1:"#8cf81f",color2:"#9acbe0",border:"#5e99b2"}];RichDrawEditor.themeDefaultColors={moon_surface:{color1:"#999999",color2:"#666666",border:"#333333"},blue_waves:{color1:"#00ccff",color2:"#000066",border:"#ffffff"},red_rays:{color1:"#feff3f",color2:"#f39127",border:"#666666"},chocolate_storm:{color1:"#ff6600",color2:"#cc0000",border:"#990000"},blue_bubbles:{color1:"#00ccff",color2:"#3366cc",border:"#ffffff"},graded_grids:{color1:"#f39127",color2:"#993300",border:"#000000"},marooned:{color1:"#ffcc00",color2:"#cc0000",border:"#ffffff"},autumn_leaves:{color1:"#00cc00",color2:"#006600",border:"#003300"},snowy_stars:{color1:"#0033ff",color2:"#000066",border:"#000000"},vario_stripes:{color1:"#ffffff",color2:"#0066cc",border:"#000000"},blown_grass:{color1:"#99ff00",color2:"003300#",border:"#000000"},blue_dunes:{color1:"#33ccff",color2:"#003399",border:"#003399"},blood_red:{color1:"#ff6c6e",color2:"#c01114",border:"#ffffff"},concave_blues:{color1:"#e6f3f5",color2:"#01cfff",border:"#064f75"},fire_brick:{color1:"#febed3",color2:"#d5527b",border:"#ffffff"},forest_green:{color1:"#65c179",color2:"#0e541d",border:"#ffffff"},golden_rod:{color1:"#fdfa3d",color2:"#f39527",border:"#995a10"},indian_red:{color1:"#ffdddd",color2:"#ea6e6e",border:"#730e0f"},lime_green:{color1:"#bde415",color2:"#4c9d2c",border:"#fe8b11"},misty_rose:{color1:"#ef81c6",color2:"#ecde63",border:"#565656"},navy_blue:{color1:"#fdfa3d",color2:"#f39527",border:"#ffffff"},orange_wafers:{color1:"#ffa452",color2:"#fd9d46",border:"#aa5a03"},persian_decor:{color1:"#ffa452",color2:"#ffe5cc",border:"#592e00"},plumcake_purple:{color1:"#ffc1ff",color2:"#c71ebb",border:"#6c0363"},sea_blue:{color1:"#ffeec5",color2:"#e0fcff",border:"#02363f"},yellow_brownies:{color1:"#ffeec5",color2:"#fbd576",border:"#f4b46f"},eighty_greens:{color1:"#d4f9d9",color2:"#7ad385",border:"#2da736"},dark_cyan:{color1:"#a5e9f5",color2:"#348491",border:"#ffffff"},plain:{color1:"#F39127",color2:"#FEFF3F",border:"#DD4A02"},wavy_paths:{color1:"#fcce44",color2:"#ff6d00",border:"#8b8b8b"},botanical_grass:{color1:"#90c954",color2:"#f9fbf7",border:"#59bc50"},dreamflower:{color1:"#f961c5",color2:"#feeaf7",border:"#ffffff"},falling_flowers:{color1:"#655b08",color2:"#fef389",border:"#fcfae1"},maples_leaves:{color1:"#fce200",color2:"#fe5301",border:"#ffffff"},mercury_bricks:{color1:"#fff7af",color2:"#7e3649",border:"#66303d"},mountain_black:{color1:"#e2e2e2",color2:"#777777",border:"#ffffff"},octaves:{color1:"#f7c8f1",color2:"#ec59dd",border:"#ffffff"},stripes_and_rings:{color1:"#e1e7ea",color2:"#ff5e2c",border:"#c83509"}};RichDrawEditor.prototype.getShapeElement=function(root,id){this.renderer.getShapeElement(root,id);};RichDrawEditor.prototype.setThemeColors=function(_bf7){var _bf8=RichDrawEditor.themeDefaultColors[_bf7];if(!_bf8){_bf8=RichDrawEditor.themeDefaultColors["plain"];}this.fillColor1=_bf8.color1;this.fillColor2=_bf8.color2;this.lineColor=_bf8.border;};RichDrawEditor.prototype.clearWorkspace=function(){this.container.innerHTML="";};RichDrawEditor.prototype.setLayoutProperties=function(){this.renderer.setLayoutProperties();};RichDrawEditor.prototype.setLayoutZIndex=function(){this.renderer.setLayoutZIndex();};var t=1;RichDrawEditor.prototype.setContainer=function(ele,_bfa,_bfb){this.container=ele;this.layoutContainer=_bfa;this.thumbnailcontainer=_bfb;this.renderer.init(this.container,this.layoutContainer);};RichDrawEditor.prototype.getContainer=function(){return this.container;};RichDrawEditor.prototype.deleteSelection=function(){this.remove();var _bfc=richdraw.selected.getAttribute("id");ShareCollaboration.sendShareMessage("delete",_bfc);richdraw.selected=undefined;};RichDrawEditor.prototype.remove=function(){richdraw.renderer.remove(richdraw.selected);richdraw.renderer.removeTracker();Utils.closeDiv();Utils.closeDialog();UndoRedo.ACTION="delete";return richdraw.renderer.syncThumbnailView();};RichDrawEditor.prototype.select=function(elem){if(elem&&elem.id=="c-circle"){return;}if(elem==this.selected){return;}this.renderer.finishTextEditing(true);this.selected=this.renderer.getSelectedShape(elem);};RichDrawEditor.prototype.unselect=function(){if(this.selected){this.renderer.finishTextEditing();this.renderer.removeTracker();this.selected=undefined;}};RichDrawEditor.prototype.selectShape=function(_bfe){this.selected=_bfe;this.renderer.showTracker(this.selected);};RichDrawEditor.prototype.finishTextEditing=function(_bff){this.renderer.finishTextEditing(_bff);};RichDrawEditor.prototype.getSelectedElement=function(){return this.selected;};RichDrawEditor.prototype.setGrid=function(_c00,_c01){this.gridX=_c00;this.gridY=_c01;};RichDrawEditor.prototype.editCommand=function(cmd,_c03){if(cmd=="mode"){this.mode=_c03;}else{if(this.selected!=null){if(cmd=="fillcolor"){this.fillColor1=_c03;}else{if(cmd=="linecolor"){this.lineColor=_c03;}else{if(cmd=="linewidth"){this.lineWidth=parseInt(_c03)+"px";}}}UndoRedo.ACTION=cmd;this.renderer.editCommand(this.selected,cmd,_c03);var _c04=this.selected.getAttribute("id");var _c05=cmd+":"+_c03;ShareCollaboration.sendShareMessage("modify",_c04,_c05);}}};RichDrawEditor.prototype.getMode=function(){return this.mode;};RichDrawEditor.prototype.queryCommand=function(cmd){if(cmd=="mode"){return this.mode;}else{if(!this.selected){if(cmd=="fillcolor"){return this.fillColor;}else{if(cmd=="linecolor"){return this.lineColor;}else{if(cmd=="linewidth"){return this.lineWidth;}}}}else{return this.renderer.queryCommand(this.selected,cmd);}}};RichDrawEditor.prototype.onSelectStart=function(_c07){return false;};RichDrawEditor.prototype.log=function(val){$("notesArea").value+="\n"+val;};RichDrawEditor.prototype.isMouseOnContainer=function(_c09,_c0a){var el=isIE?_c09.srcElement:_c09.target;var tmp=el;for(;tmp!=null;tmp=tmp.parentNode){if(_c0a&&tmp&&tmp.id=="dragShapeDiv"){return "dragIcon";}if(tmp==this.container){return true;}if(tmp.id&&(tmp.id==this.container.id||tmp.id=="masterDocument"||tmp.id=="bgDocument")||tmp.id=="slideContainer"){return true;}if(tmp.className=="sbContent"||tmp.className=="toolbarIcon"||tmp.className=="multiToolbarIcon"||tmp.className=="multiTbarFrstRow"){return "terminate";}}return false;};RichDrawEditor.prototype.updateColorDefaults=function(){var _c0d=false;if(this.mode.indexOf("thin")==-1&&this.mode.indexOf("Bracket")==-1&&this.mode.indexOf("Brace")==-1){if(!this.fillColor1||this.fillColor1==""||this.fillColor1=="none"){this.fillColor1="#F39127";this.fillColor2="#FEFF3F";}}else{_c0d=true;this.fillColor1="none";this.fillColor2="none";}if(!this.lineColor||this.lineColor==""||this.lineColor=="none"){this.lineColor="#DD4A02";}this.lineWidth="1px";if(this.mode.toLowerCase().indexOf("line")==0||_c0d){this.lineWidth="2px";}};RichDrawEditor.prototype.onMouseDown=function(_c0e){var _c0f=Position.cumulativeOffset(this.container);var _c10=Math.round((Event.pointerX(_c0e)-_c0f[0])/this.gridX)*this.gridX;var _c11=Math.round((Event.pointerY(_c0e)-_c0f[1])/this.gridY)*this.gridY;var _c12=this.isMouseOnContainer(_c0e);if(!_c12){return false;}if(_c12=="terminate"){return _c12;}if(this.mode!="select"){this.unselect();var _c13=this.renderer.getDeltaValues();this.mouseDownX=(_c10+SideBar.containerDiv.scrollLeft)*_c13.width;this.mouseDownY=_c11*_c13.height;this.updateColorDefaults();var _c14=1*_c13.width;var _c15=1*_c13.height;if(this.mode.toLowerCase().startsWith("line")){_c14=this.mouseDownX;_c15=this.mouseDownY;}this.selected=this.renderer.create(this.mode,this.fillColor1,this.fillColor2,this.lineColor,this.lineWidth,this.mouseDownX,this.mouseDownY,_c14,_c15);this.selected.setAttribute("id",this.renderer.createUUID("shape"));this.selected.name="shape";this.startResize(_c0e);if(isGe){Event.stop(_c0e);}}else{if(this.mouseDownX!=_c10||this.mouseDownY!=_c11){this.unselect();}}return true;};RichDrawEditor.prototype.getXYForEvent=function(_c16,_c17,_c18){var _c19=Position.cumulativeOffset(this.container);if(!_c17){_c17=Event.pointerX(_c16);}if(!_c18){_c18=Event.pointerY(_c16);}var x=Math.round((_c17-_c19[0])/this.gridX)*this.gridX;var y=Math.round((_c18-_c19[1])/this.gridY)*this.gridY;var _c1c=this.renderer.getDeltaValues();x=(x+SideBar.containerDiv.scrollLeft)*_c1c.width;y=y*_c1c.height;var c=new Object();c.x=x;c.y=y;return c;};RichDrawEditor.prototype.checkIfCoordInContainer=function(c){var cVal=this.renderer.getViewCoordinates();if(c.x<0||c.x>cVal.width){return false;}if(c.y<0||c.y>cVal.height){return false;}return true;};RichDrawEditor.prototype.createOnDrop=function(_c20){var c=this.getXYForEvent(_c20);var _c22=this.isMouseOnContainer(_c20,true);if(!_c22||_c22=="terminate"){return false;}if(_c22=="dragIcon"&&this.checkIfCoordInContainer(c)){var _c23=$("sbMainTable");if(_c23){var sX=_c23.offsetLeft;if(c.x>=sX){return false;}}}this.mouseDownX=c.x;this.mouseDownY=c.y;this.unselect();this.updateColorDefaults();var _c25=this.renderer.getDeltaValues();var wt=1*_c25.width;var ht=1*_c25.height;if(this.mode.toLowerCase().startsWith("line")){wt=this.mouseDownX;ht=this.mouseDownY;}this.selected=this.renderer.create(this.mode,this.fillColor1,this.fillColor2,this.lineColor,this.lineWidth,this.mouseDownX,this.mouseDownY,wt,ht);this.selected.setAttribute("id",this.renderer.createUUID("shape"));this.selected.name="shape";this.renderer.checkAndSetDefaultSize(true);this.renderer.showTracker(this.selected);return true;};RichDrawEditor.isShapeDrawn=false;RichDrawEditor.prototype.startResize=function(ev){var _c29=this.container;Utils._addEvent(document,"mousemove",function(ev){var evt=(!ev)?window.event:ev;richdraw.onDraw(evt);Utils._stopEvent(evt);});var ren=this.renderer;var sel=this.selected;var _c2e=this;Utils._addEvent(document,"mouseup",function(ev){_c2e.selected=sel;RichDrawEditor.isShapeDrawn=true;ren.editCommand(_c2e.selected,"mode","select");ren.checkAndSetDefaultSize();ren.showTracker(sel);UndoRedo.ACTION="add";var _c30=(!ev)?window.event:ev;Utils._removeEvent(document,"mousemove",Utils.eventHandlers["mousemove"]);Utils._removeEvent(document,"mouseup",Utils.eventHandlers["mouseup"]);});};RichDrawEditor.prototype.onMouseUp=function(ev,_c32){if(this.mode!="select"||_c32){if(this.selected){this.renderer.showTracker(this.selected,true);}if(this.mode!="select"&&!RichDrawEditor.isShapeDrawn){this.selected=undefined;}RichDrawEditor.isShapeDrawn=false;this.renderer.syncThumbnailView();}};RichDrawEditor.prototype.renderToThumbNail=function(_c33,_c34,vec,_c36){this.renderer.renderElementsToThumbNail(_c33,_c34,vec,_c36);};RichDrawEditor.prototype.renderLayoutVectorInThumbNail=function(_c37,_c38,_c39){var vW=this.container.offsetWidth;var vH=this.container.offsetHeight;if(vW==0||vH==0){vW=this.container.style.width.split("px")[0];vH=this.container.style.height.split("px")[0];}this.renderer.renderLayoutVectorInThumbnail(_c37,_c38,_c39,vW,vH);};RichDrawEditor.prototype.renderLayoutVector=function(vec,_c3d){this.renderer.renderLayoutVector(vec,_c3d);};RichDrawEditor.prototype.resizeContainer=function(_c3e){renderer.resizeContainer(this.container,_c3e);};RichDrawEditor.prototype.resizeThumbnails=function(_c3f){renderer.resizeThumbnails(_c3f);};RichDrawEditor.prototype.resizeThumbnailsIfNeeded=function(_c40,_c41){if(!_c41||!_c40){return;}if(_c40.offsetWidth!=_c41.width||_c40.offsetHeight!=_c41.height){renderer.resizeThumbnails(false);}};RichDrawEditor.prototype.renderElementsToContainer=function(_c42,_c43,_c44){this.renderer.renderElementsToContainer(_c42,_c43,_c44);};RichDrawEditor.prototype.getVectorContent=function(_c45,_c46){return this.renderer.getVectorContent(_c45,_c46);};RichDrawEditor.getVectorWithReplacedImagePaths=function(_c47,_c48,_c49){var vec;if(_c49){vec=_c48;}else{vec=(isIE)?_c48.VML:_c48.SVG;}if(!vec||!_c47){return;}var div=document.createElement("div");div.innerHTML=vec;var _c4c=div.getElementsByTagName("img");if(!isIE){return RichDrawEditor.modifyImagePathForSVGVector(_c47,_c4c);}else{return RichDrawEditor.modifyImagePathForVMLVector(_c47,_c4c);}};RichDrawEditor.getRoot=function(div,id){if(isIE){rts=div.getElementsByTagName("group");}else{rts=div.getElementsByTagName("svg");}if(!id){id="masterDocument";}for(var k=0;k<rts.length;k++){if(rts[k]&&rts[k].id==id){return rts[k];}}};RichDrawEditor.getRootNodeAsString=function(_c50,_c51,id){if(!id){id="masterDocument";}var vec;if(isIE){var _c54=document.createElement("v:group");_c54.setAttribute("coordorigin","0,0");_c54.setAttribute("coordsize",_c51.width+","+_c51.height);_c54.style.position="absolute";_c54.style.width=0;_c54.style.height=0;_c54.style.left=0;_c54.style.top=0;_c54.id=id;_c54.style.zIndex=1000;var tdiv=document.createElement("div");_c54.innerHTML=_c50.innerHTML;tdiv.appendChild(_c54);vec=tdiv.innerHTML;}else{var _c56=_c50.cloneNode(true);_c56.setAttribute("id",id);var xSer=new XMLSerializer();vec=xSer.serializeToString(_c56);}return vec;};RichDrawEditor.modifyImagePathForSVGVector=function(_c58,_c59){var dom=(new DOMParser()).parseFromString(_c58,"text/xml");var _c5b=dom.documentElement;var _c5c=_c5b.getElementsByTagName("image");for(var i=0;i<_c59.length;i++){var img=_c59[i];var id=img.id;var src=img.getAttribute("src");for(var j=0;j<_c5c.length;j++){var simg=_c5c[j];if(simg.id==id){simg.setAttributeNS("http://www.w3.org/1999/xlink","href",src);}}}var xSer=new XMLSerializer();var vec=xSer.serializeToString(_c5b);return vec;};RichDrawEditor.modifyImagePathForVMLVector=function(_c65,_c66){document.namespaces.add("v","urn:schemas-microsoft-com:vml");if(document.styleSheets.length==0){document.createStyleSheet();}document.s5ss=document.styleSheets[document.styleSheets.length-1];document.s5ss.addRule("v\\:*","behavior: url(#default#VML);");var _c67=document.createElement("v:group");_c67.innerHTML=_c65;var _c68=_c67.getElementsByTagName("image");for(var i=0;i<_c66.length;i++){var img=_c66[i];var id=img.id;var src=img.getAttribute("src");for(var j=0;j<_c68.length;j++){var vimg=_c68[j];if(vimg.id==id){vimg.setAttribute("src",src);}}}return _c67.innerHTML;};RichDrawEditor.prototype.preloadImages=function(_c6f,_c70){this.renderer.preloadImages(_c6f,_c70);};AbstractRenderer.prototype.removeVectorContent=RichDrawEditor.prototype.removeVectorContent=function(_c71){if(_c71){var eles=_c71.getElementsByTagName("*");for(var i=eles.length-1;i>=0;i--){if(eles[i].id=="masterDocument"||eles[i].id=="bgDocument"||eles[i].id=="trackergrp"||eles[i].id=="tracker"){eles[i].parentNode.removeChild(eles[i]);}}}};RichDrawEditor.prototype.renderCurrentElements=function(){var _c74=$("placeslides1");var pres=document.getElementsByClassName("slide",_c74);};RichDrawEditor.prototype.onDrag=function(_c76){var _c77=Position.cumulativeOffset(this.container);var _c78=((Event.pointerX(_c76)-_c77[0])/this.gridX)*this.gridX;var _c79=((Event.pointerY(_c76)-_c77[1])/this.gridY)*this.gridY;var _c7a=this.renderer.getDeltaValues();_c78*=_c7a.width;_c79*=_c7a.height;var type=this.selected.getAttribute("_type");if(type=="line"){this.renderer.move(this.selected,_c78*1-this.mouseDownX*1,_c79*1-this.mouseDownY*1,this.selectedBounds,true);}else{this.renderer.move(this.selected,_c78-this.deltaX,_c79-this.deltaY,undefined,true);}RichDrawEditor.shapeDragged=true;this.renderer.removeTracker();};RichDrawEditor.prototype.fineRotate=function(_c7c){var type=this.renderer.getType(this.selected);if(type=="line"){return;}var _c7e=1;var _c7f=this.renderer.getRotation(this.selected);if(_c7c==39||_c7c==40){_c7f+=_c7e;}else{_c7f-=_c7e;}this.renderer.setRotationValue(_c7f);var _c80=this.selected.getAttribute("id");var _c81="rotation:"+_c7f;ShareCollaboration.sendShareMessage("modify",_c80,_c81);};RichDrawEditor.prototype.fineLineResize=function(_c82,_c83){var b=this.renderer.bounds(this.selected);var _c85="";switch(_c82){case 37:b.x2=b.x2-_c83;_c85="x2";break;case 38:b.y2=b.y2-_c83;_c85="y2";break;case 39:b.x2=b.x2*1+_c83;_c85="x2";break;case 40:b.y2=b.y2*1+_c83;_c85="y2";break;}this.renderer.move(this.selected,0,0,b);this.renderer.positionTracker(this.selected);var _c86=this.selected.getAttribute("id");var view=this.renderer.getViewCoordinates();var _c88="";if(_c85.indexOf("x")!=-1){_c88=b.x2;}else{_c88=b.y2;}var _c89="lineposition:"+view.width+":"+view.height+":"+_c85+":"+_c88;ShareCollaboration.sendShareMessage("modify",_c86,_c89);};RichDrawEditor.prototype.fineResize=function(_c8a,_c8b){var type=this.selected.getAttribute("_type");var _c8d=5;if(_c8b){_c8d=1;}if(type=="line"){return this.fineLineResize(_c8a,_c8d);}var dim=this.renderer.getDimension(this.selected);var w=dim.width*1;var h=dim.height*1;var _c91=true;var _c92=true;switch(_c8a){case 37:w-=_c8d;break;case 38:h-=_c8d;break;case 39:w+=_c8d;break;case 40:h+=_c8d;break;}this.renderer.setDimension(w*1,h*1,_c92,_c91);this.renderer.positionTracker(this.selected);var _c93=this.selected.getAttribute("id");var view=this.renderer.getViewCoordinates();var _c95="dimension:"+view.width+":"+view.height+":"+w+":"+h;ShareCollaboration.sendShareMessage("modify",_c93,_c95);};RichDrawEditor.prototype.fineLineMove=function(_c96,_c97){var b=this.renderer.bounds(this.selected);switch(_c96){case 37:b.x1=b.x1-_c97;b.x2=b.x2-_c97;break;case 38:b.y1=b.y1-_c97;b.y2=b.y2-_c97;break;case 39:b.x1=b.x1*1+_c97;b.x2=b.x2*1+_c97;break;case 40:b.y1=b.y1*1+_c97;b.y2=b.y2*1+_c97;break;}this.renderer.move(this.selected,0,0,b);this.renderer.positionTracker(this.selected);var view=this.renderer.getViewCoordinates();var _c9a="position:line:"+view.width+":"+view.height+":"+b.x1+":"+b.y1+":"+b.x2+":"+b.y2;var _c9b=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_c9b,_c9a);};RichDrawEditor.prototype.fineMove=function(_c9c,_c9d){var _c9e=5;if(_c9d){_c9e=1;}Grids.offset=0;var type=this.renderer.getType(this.selected);if(type=="line"){return this.fineLineMove(_c9c,_c9e);}var pos=this.renderer.getPosition(this.selected);var x=pos.x;var y=pos.y;if((Grids.showGuide&&Grids.snapTo)||(Grids.showGrid&&Grids.snapGrid)){Grids.offset=_c9e=Grids.snap_diff;}else{switch(_c9c){case 37:x=x*1-_c9e;break;case 38:y=y*1-_c9e;break;case 39:x=x*1+_c9e;break;case 40:y=y*1+_c9e;break;}}this.renderer.move(this.selected,x,y,null,null,_c9c);this.renderer.positionTracker(this.selected);var view=this.renderer.getViewCoordinates();var _ca4="position:shape:"+view.width+":"+view.height+":"+x+":"+y;var _ca5=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_ca5,_ca4);};RichDrawEditor.prototype.onResize=function(_ca6){var _ca7=Position.cumulativeOffset(this.container);var _ca8=Math.round((Event.pointerX(_ca6)-_ca7[0])/this.gridX)*this.gridX;var _ca9=Math.round((Event.pointerY(_ca6)-_ca7[1])/this.gridY)*this.gridY;var _caa=_ca8-this.mouseDownX;var _cab=_ca9-this.mouseDownY;this.renderer.track(handle,_caa,_cab);};RichDrawEditor.prototype.getRenderer=function(){return renderer;};RichDrawEditor.prototype.addText=function(_cac){if(this.selected){var type=this.renderer.getType(this.selected);if(type=="line"){return;}renderer.onAddText();}};RichDrawEditor.prototype.onDraw=function(_cae){if(!this.selected){return;}var _caf=Position.cumulativeOffset(this.container);var _cb0=((Event.pointerX(_cae)-_caf[0])/this.gridX)*this.gridX;var _cb1=((Event.pointerY(_cae)-_caf[1])/this.gridY)*this.gridY;var _cb2=this.renderer.getDeltaValues();_cb0*=_cb2.width;_cb1*=_cb2.height;var _cb3=this.renderer.getShape(this.selected);var flip=" ";var w=_cb0-this.mouseDownX;var h=_cb1-this.mouseDownY;var sX=this.mouseDownX;var sY=this.mouseDownY;var type=_cb3.getAttribute("_type");if(type.toLowerCase().indexOf("square")!=-1||type=="Connector"||type=="Circle"||_cae.shiftKey){var s=(w*1<0)?-1:1;w=Math.sqrt(h*h)*s;}if(type=="line"){sX=_cb0;sY=_cb1;}else{if(w*1<1){sX=sX+w;w=w*-1;flip+="x";}if(h*1<1){sY=sY+h;h=h*-1;flip+="y";}}RichDrawEditor.isShapeDrawn=true;this.renderer.resize(_cb3,sX,sY,w,h,flip);};RichDrawEditor.getAttributeValue=function(node,name){var _cbd=node.attributes;var attr=_cbd.getNamedItem(name);return attr.value;};RichDrawEditor.prototype.isShapeInLayout=function(_cbf){var tmp=_cbf;for(;tmp!=null;tmp=tmp.parentNode){if(tmp.id=="masterDocument"){return false;}else{if(tmp.id=="bgDocument"||tmp.id=="vec-thumb"||tmp.id=="bg-thumb"){return true;}}}return false;};RichDrawEditor.prototype.isShapeInThumbnail=function(_cc1,_cc2){if(!_cc2){var _cc3=$("addtext");if(_cc3){renderer.finishTextEditing(true);}}var tmp=_cc1;for(;tmp!=null;tmp=tmp.parentNode){if(tmp.id=="masterDocument"){return false;}else{if(tmp.id=="vec-thumb"||tmp.id=="bg-thumb"){return true;}}}return false;};RichDrawEditor.prototype.onHit=function(_cc5,_cc6,ele){if(this.mode=="select"){if(!ele){var ele=Event.element(_cc5);}else{if(!isIE){ele=Utils.getFirstNode(ele);ele=Utils.getFirstNode(ele);}}this.select(ele);this.selectedBounds=this.renderer.bounds(this.selected);var _cc8=Position.cumulativeOffset(this.container);this.mouseDownX=Math.round((Event.pointerX(_cc5)-_cc8[0])/this.gridX)*this.gridX;this.mouseDownY=Math.round((Event.pointerY(_cc5)-_cc8[1])/this.gridY)*this.gridY;var _cc9=this.renderer.getSelectedShape(ele);if(!_cc9){return;}var cN;if(!isIE){cN=_cc9.getElementsByTagName("svg")[0];}else{cN=_cc9.childNodes[0];}var x,y;if(cN){x=cN.getAttribute("x");y=cN.getAttribute("y");}if(!x||!y){x=_cc9.style.left;y=_cc9.style.top;}x=x.split("px")[0];y=y.split("px")[0];var _ccd=this.renderer.getDeltaValues();this.mouseDownX=this.mouseDownX*_ccd.width;this.mouseDownY=this.mouseDownY*_ccd.height;this.deltaX=this.mouseDownX-x;this.deltaY=this.mouseDownY-y;this.renderer.showTracker(this.selected);if(_cc6){return;}this.startDrag(_cc5);if(isGe){Event.stop(_cc5);}}};RichDrawEditor.prototype.isDragging=function(){return RichDrawEditor.dragging;};RichDrawEditor.dragging=false;RichDrawEditor.prototype.startDrag=function(ev){Utils._addEvent(document,"mousemove",function(ev){RichDrawEditor.dragging=true;var evt=(!ev)?window.event:ev;richdraw.onDrag(evt);Utils._stopEvent(evt);});Utils._addEvent(document,"mouseup",function(ev){RichDrawEditor.dragging=false;var _cd2=(!ev)?window.event:ev;Utils._removeEvent(document,"mousemove",Utils.eventHandlers["mousemove"]);Utils._removeEvent(document,"mouseup",Utils.eventHandlers["mouseup"]);if(RichDrawEditor.shapeDragged){RichDrawEditor.shapeDragged=false;UndoRedo.ACTION="position";richdraw.onMouseUp(ev,true);}var view=richdraw.renderer.getViewCoordinates();var type=richdraw.renderer.getType(richdraw.selected);var _cd5;if(type=="line"){var pos=richdraw.renderer.bounds(richdraw.selected);_cd5="position:line:"+view.width+":"+view.height+":"+pos.x1+":"+pos.y1+":"+pos.x2+":"+pos.y2;}else{var pos=richdraw.renderer.getPosition(richdraw.selected);_cd5="position:shape:"+view.width+":"+view.height+":"+pos.x+":"+pos.y;}var _cd7=richdraw.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_cd7,_cd5);});};RichDrawEditor.prototype.getPercentageValues=function(mX,mY){var v=this.renderer.getViewCoordinates();var pos=new Object();var w=v.width;var h=v.height;pos.x=(mX*100/w).toFixed(2);pos.y=(mY*100/h).toFixed(2);return pos;};RichDrawEditor.prototype.getPixelValue=function(pV,_cdf,_ce0){if(_ce0&&pV<=0){return 1;}var v=this.renderer.getViewCoordinates();var pos=new Object();var v=(_cdf)?v.width:v.height;return pV*v/100;};RichDrawEditor.prototype.insertImage=function(_ce3,_ce4,_ce5,_ce6){$("msgSpan").innerHTML=js_LangObj.InsertingImage;$("msgSpan").style.display="block";var img=document.createElement("img");var _ce8=this;var x,y=undefined;if(_ce4){var c=_ce8.getXYForEvent(_ce4,_ce5,_ce6);if(_ce8.checkIfCoordInContainer(c)){x=c.x;y=c.y;}else{return;}}img.onload=function(){setTimeout(function(){$("msgSpan").style.display="none";if(_ce4&&Utils._dropEvent){var _cec=this.renderer.getViewCoordinates();var cw=_cec.width*1;var ch=_cec.height*1;var dw=cw/640;var dh=ch/480;x=x-(img.width*dw*0.66/2);y=y-(img.height*dh*0.66/2);}_ce8.resizeAndInsertImage(img,_ce3,x,y);img.onload=null;},100);};img.src=_ce3;};RichDrawEditor.prototype.resizeAndInsertImage=function(img,_cf2,x,y){var _cf5=this.renderer.getViewCoordinates();var cw=_cf5.width*1;var ch=_cf5.height*1;var dw=cw/640;var dh=ch/480;var ctw=this.container.offsetWidth;var cth=this.container.offsetHeight;img.style.left="0px";img.style.top="0px";var _cfc=0.66;var _cfd=0.66;var ih=(img.height)*_cfd*(dh);var iw=(img.width)*_cfc*(dw);if(!x||!y){x=cw/2-iw/2;y=ch/2-ih/2;}var _d00=this.renderer.insertImage(_cf2,iw,ih,x,y);_d00.id=this.renderer.createUUID("shape");_d00.name="shape";this.selected=_d00;UndoRedo.ACTION="imageadd";this.renderer.showTracker(this.selected);this.renderer.syncThumbnailView();_cf2=_cf2.replace("http:","http_");var v=this.renderer.getViewCoordinates();var _d02="image:"+_cf2+":"+iw+":"+ih+":"+x+":"+y+":"+v.width+":"+v.height;ShareCollaboration.sendShareMessage("add",_d00.id,_d02);};RichDrawEditor.prototype.flipX=function(){if(this.selected){UndoRedo.ACTION="flipx";this.renderer.flipX();var _d03=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_d03,"flip:x");}};RichDrawEditor.prototype.flipY=function(){if(this.selected){UndoRedo.ACTION="flipy";this.renderer.flipY();var _d04=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_d04,"flip:y");}};RichDrawEditor.prototype.getFlip=function(){return renderer.getFlip();};RichDrawEditor.prototype.isElementShape=function(ele){var _d06=ele.tagName;if(_d06=="tspan"||_d06=="path"||_d06=="line"||_d06=="image"){return true;}return false;};RichDrawEditor.prototype.updateArrowHead=function(type,_d08){var pos="start";if(!_d08){pos="end";}this.renderer.changeMarkerType(this.selected,pos,type);UndoRedo.ACTION="arrowhead:"+pos;this.renderer.syncThumbnailView();var _d0a=this.selected.getAttribute("id");var _d0b="arrowhead:"+pos+":"+type;ShareCollaboration.sendShareMessage("modify",_d0a,_d0b);};RichDrawEditor.lineArrowHeadTypes=["none","block","classic","open","oval","diamond"];RichDrawEditor.prototype.getLineArrowIndex=function(type){return RichDrawEditor.lineArrowHeadTypes.indexOf(type.toLowerCase());};RichDrawEditor.prototype.changeLineArrowHead=function(type,_d0e,_d0f){var _d10;var left=0;var _d10="lineicon";var _d12=this.getLineArrowIndex(type);if(!_d0e){left=(_d12*30)+parseInt(_d12);_d10+="end";}else{if(_d12!=0){left=(_d12*30)+parseInt(_d12)+155;}_d10+="start";}if(!_d0f){this.updateArrowHead(type,_d0e);}this.updateArrowImage(_d10+"img",left);if(presenter&&presenter.currMenu){presenter.currMenu.style.display="none";}};RichDrawEditor.prototype.updateArrowImage=function(_d13,left){var _d15=$(_d13);_d15.style.backgroundPosition="-"+left+"px 0px";};RichDrawEditor.prototype.getShapeProperties=function(){this.renderer.getShapeProperties(this.selected);};RichDrawEditor.showImageProps=function(show){var _d17="none",_d18="block";if(show){_d17="block";_d18="none";}$("imageOpacity").style.display="none";$("shapeBorder").style.display=_d18;$("shapeFill").style.display=_d18;$("shapePos").style.display="block";$("flipAndAngle").style.display="block";$("lineArrow").style.display="none";$("linePos").style.display="none";};RichDrawEditor.showLineProps=function(){$("shapeBorder").style.display="block";$("shapeFill").style.display="none";$("shapePos").style.display="none";$("flipAndAngle").style.display="none";$("lineArrow").style.display="block";$("linePos").style.display="block";};RichDrawEditor.prototype.fillBorderProps=function(_d19,_d1a){$(_d1a+"borderSize").selectedIndex=_d19.borderSize;$(_d1a+"borderColor").value=_d19.borderColor;$(_d1a+"borderColorImg").style.backgroundColor=_d19.borderColor+"";var _d1b=RichDrawEditor.getFloatOpacityValue(_d19.borderOpacity);BoxProps.updateCombo($(_d1a+"borderColorOp"),_d1b);};RichDrawEditor.prototype.fillShapeProperties=function(){new Draggable($("propertydialog"),{handle:$("shapeprops_handle")});var _d1c=this.renderer.getShapeProperties(this.selected);RichDrawEditor.shapeProps=_d1c;if(_d1c.type!="line"){var p=this.getPercentageValues(_d1c.x,_d1c.y);Utils.setVal($("sPosX"),p.x);Utils.setVal($("sPosY"),p.y);var d=this.getPercentageValues(_d1c.width,_d1c.height);Utils.setVal($("sDimWidth"),d.x);Utils.setVal($("sDimHeight"),d.y);Utils.setVal($("sAngle"),_d1c.rotation);}if(_d1c.type!="image"){this.fillBorderProps(_d1c,"");var _d1f=(_d1c.borderType=="Solid")?0:1;$("borderType").selectedIndex=_d1f;if(_d1c.type=="line"){RichDrawEditor.showLineProps();BoxProps.toggleItem(undefined,2,"line");this.changeLineArrowHead(_d1c.startArrowType,true,true);this.changeLineArrowHead(_d1c.endArrowType,false,true);var x1v=this.getPercentageValues(_d1c.x1,_d1c.y1);var x2v=this.getPercentageValues(_d1c.x2,_d1c.y2);Utils.setVal($("sX1"),x1v.x);Utils.setVal($("sY1"),x1v.y);Utils.setVal($("sX2"),x2v.x);Utils.setVal($("sY2"),x2v.y);}else{this.fillGradientValues(_d1c,"");RichDrawEditor.showImageProps();BoxProps.toggleItem(undefined,1,"shape");}}else{RichDrawEditor.showImageProps(true);BoxProps.toggleItem(undefined,5,"image");}var _d22=_d1c.fontProps;if(_d22){$("shapeText").style.display="block";$("shapeTextFill").style.display="block";$("textBorder").style.display="block";this.fillGradientValues(_d22,"txt");var fFam=_d22.fFamily;if(fFam.charAt(0)=="'"){fFam=fFam.substring(1,fFam.length-1);}BoxProps.updateCombo($("font-family"),fFam,"font-family");BoxProps.updateCombo($("font-size"),_d22.fSize,"font-size");BoxProps.updateCombo($("font-style"),_d22.fStyle,"font-style");BoxProps.updateCombo($("font-weight"),_d22.fWeight,"font-weight");this.fillBorderProps(_d22,"txt");}else{$("shapeText").style.display="none";$("shapeTextFill").style.display="none";$("textBorder").style.display="none";}};RichDrawEditor.prototype.fillGradientValues=function(_d24,_d25){var c1,c2,op1,op2,_d2a;var isG=false;if(_d24.fill=="gradient"){isG=true;$(_d25+"gradient").checked=true;var col1=_d24.colors.color1;var col2=_d24.colors.color2;c1=col1.color+"";c2=col2.color+"";op1=col1.opacity;op2=col2.opacity;_d2a=_d24.colors.angle;}else{$(_d25+"solid").checked=true;op1=_d24.opacity;c1=_d24.fill;}this.setFillProps(isG,_d25,c1,c2,op1,op2,_d2a);};RichDrawEditor.prototype.setFillProps=function(_d2e,_d2f,c1,c2,op1,op2,_d34){if(_d2e){$(_d2f+"topCol").value=c1;$(_d2f+"botCol").value=c2;$(_d2f+"botColSpn").style.display="block";$(_d2f+"topColImg").style.backgroundColor=c1;$(_d2f+"botColImg").style.backgroundColor=c2;$(_d2f+"topColLab").innerHTML="<b>"+js_LangObj.FillColor+" 1:</b>";$(_d2f+"botColLab").innerHTML="<b>"+js_LangObj.FillColor+" 2:</b>";$(_d2f+"gradFlow").style.display="block";if(_d2f==""){$("presetButton").style.display="block";}if(!_d34){_d34=0;}var _d35=document.getElementsByClassName("gradBgSel");for(var i=0;i<_d35.length;i++){var gele=_d35[i];if(gele.id&&gele.id.indexOf(_d2f+"gangle")==0){gele.className="gradBg";}}$(_d2f+"gangle"+_d34).className="gradBgSel";}else{$(_d2f+"solid").checked=true;$(_d2f+"botColSpn").style.display="none";$(_d2f+"topColLab").innerHTML="<b>"+js_LangObj.FillColor+":</b>";var _d38=$(_d2f+"topColImg");if(!c1||c1==""||c1=="none"){c1="none";_d38.style.backgroundColor="transparent";_d38.className="colorchsrnone";}else{_d38.className="colorchsr";_d38.style.backgroundColor=c1+"";}$(_d2f+"topCol").value=c1+"";$(_d2f+"gradFlow").style.display="none";if(_d2f==""){$("presetButton").style.display="none";}}RichDrawEditor.setOpacityComboValues(_d2f,op1,op2);};RichDrawEditor.setOpacityComboValues=function(_d39,op1,op2){BoxProps.updateCombo($(_d39+"topColOp"),RichDrawEditor.getFloatOpacityValue(op1));if(op2){BoxProps.updateCombo($(_d39+"botColOp"),RichDrawEditor.getFloatOpacityValue(op2));}};RichDrawEditor.getFloatOpacityValue=function(_d3c){if(!_d3c){return "0.0";}_d3c=_d3c.toString();if(_d3c.indexOf(".")==0){_d3c="0"+_d3c;}if(_d3c.indexOf(".")==-1){_d3c+=".0";}_d3c=(_d3c*1).toFixed(1);return _d3c;};RichDrawEditor.prototype.changeColorType=function(_d3d,_d3e){var _d3f="";if(_d3e){_d3f="txt";}var c1=$(_d3f+"topCol").value;var ele=$(_d3f+"topColOp");var op1=ele.options[ele.selectedIndex].text.toLowerCase();var op2;if(!_d3e){this.fillColor1=c1;}if(_d3d){if(this.renderer.isGradientFilled(this.selected,_d3e)){return;}var c2="#FFFFFF";op2="1.0";this.renderer.addLinearGradient(this.selected,c1,c2,op1,op2,_d3e);if(!_d3e){this.fillColor2=c2;}}else{this.renderer.removeLinearGradient(this.selected,c1,_d3e,op1);if(!_d3e){this.fillColor2="";}}this.setFillProps(_d3d,_d3f,c1,c2,op1,op2);if(_d3e){UndoRedo.ACTION="colortype:font";}else{UndoRedo.ACTION="colortype:shape";}this.renderer.syncThumbnailView();var _d45=this.selected.getAttribute("id");var _d46="colortype:";if(_d3e){_d46+="font:";}else{_d46+="shape:";}_d46+=c1+":"+op1;if(op2){_d46+=":"+c2+":"+op2;}ShareCollaboration.sendShareMessage("modify",_d45,_d46);};RichDrawEditor.prototype.updateShapeProperty=function(ele,_d48){var id=ele.id;var val;if(ele.tagName.toLowerCase()!="select"){val=ele.value;}else{val=ele.options[ele.selectedIndex].value;}var _d4b=false;if(id=="PosX"||id=="PosY"){val=ele.options[ele.selectedIndex].value;ele=$("sPos"+id.charAt(id.length-1));id=ele.id;if(val=="center"){_d4b=true;}if(id=="sPosX"){val=($F("sPosX"));}else{val=($F("sPosY"));}}else{var _d4c;if(id=="sPosX"){_d4c=$("PosX").options[$("PosX").selectedIndex].value;}else{_d4c=$("PosY").options[$("PosY").selectedIndex].value;}if(_d4c=="center"){_d4b=true;}}if(id=="sDimWidth"||id=="sDimHeight"||id=="sPosX"||id=="sPosY"||id=="sAngle"){if(isNaN(Math.abs(val))){Utils.showErrorMessage(ele,js_LangObj.EntriesMustBeNumbers);return;}}Utils.setVal(ele,val);if(_d4b){val=((val*1)+50).toFixed(2);}if(id.indexOf("topCol")!=-1||id.indexOf("botCol")!=-1){this.changeGradient(ele);}else{if(id.indexOf("Dim")!=-1){this.updateDimension(ele);}else{if(id.indexOf("Pos")!=-1){this.updatePosition(ele,val);}else{if(id.indexOf("sAngle")!=-1){var _d4d=val;_d4d=_d4d%360;val=_d4d;this.renderer.setRotationValue(_d4d);UndoRedo.ACTION="rotation";var _d4e=this.selected.getAttribute("id");var _d4f="rotation:"+_d4d;ShareCollaboration.sendShareMessage("modify",_d4e,_d4f);}else{if(id.indexOf("borderColor")!=-1){if(id.indexOf("txt")!=-1){this.updateTextStrokeProperty("color",val);}else{this.editCommand("linecolor",val);this.lineColor=val;$(id+"Img").style.backgroundColor=val;}}else{if(id.indexOf("borderSize")!=-1){var val=ele.options[ele.selectedIndex].text;this.editCommand("linewidth",val);}else{if(id.indexOf("borderType")!=-1){var type=ele.options[ele.selectedIndex].text.toLowerCase();UndoRedo.ACTION="bordertype";this.renderer.setBorderType(this.selected,type);var _d4e=this.selected.getAttribute("id");var _d4f="bordertype:"+type;ShareCollaboration.sendShareMessage("modify",_d4e,_d4f);}}}}}}}if(!_d48){this.renderer.syncThumbnailView();}};RichDrawEditor.prototype.updateFont=function(ele){var val=ele.options[ele.selectedIndex].text;var id=ele.id;if(id=="font-size"){val=Utils.convertFSToPercentFromPoint(val)+"%";}if(id=="font-family"){val=CSSHandler.getValue("font",ele.id,val);}var _d54=CSSHandler.Css_Script_Mapping[id];this.renderer.updateFont(this.selected,_d54,val);UndoRedo.ACTION="font:"+_d54;this.renderer.syncThumbnailView();var _d55=this.selected.getAttribute("id");var _d56="font:"+_d54+":"+val;ShareCollaboration.sendShareMessage("modify",_d55,_d56);};RichDrawEditor.prototype.changeGradient=function(ele){var id=ele.id;var _d59=true;var _d5a="";var val=ele.value;var _d5c=false;if(id.indexOf("txt")!=-1){_d5a="txt";_d5c=true;}if($(_d5a+"botColSpn").style.display=="none"){_d59=false;}var _d5d=this.selected.getAttribute("id");if(id.indexOf("topCol")!=-1){if(_d59){$(_d5a+"topColImg").style.backgroundColor=val;if(_d5c){UndoRedo.ACTION="changegradient:top:text";}else{UndoRedo.ACTION="changegradient:top";}this.renderer.changeGradientFills(this.selected,_d5c,val);var _d5e="changegradient:"+_d5c+":"+val;ShareCollaboration.sendShareMessage("modify",_d5d,_d5e);if(!_d5c){this.fillColor1=val;}}else{if(_d5c){UndoRedo.ACTION="textfill";this.renderer.changeTextFill(this.selected,val);var _d5e="textfill:"+val;ShareCollaboration.sendShareMessage("modify",_d5d,_d5e);}else{this.editCommand("fillcolor",val);this.fillColor1=val;}}}else{if(id.indexOf("botCol")!=-1){if(_d5c){UndoRedo.ACTION="changegradient:bottom:text";}else{UndoRedo.ACTION="changegradient:bottom";}this.renderer.changeGradientFills(this.selected,_d5c,undefined,val);var _d5e="changegradient:"+_d5c+":"+"undefined"+":"+val;ShareCollaboration.sendShareMessage("modify",_d5d,_d5e);if(!_d5c){this.fillColor2=val;}}}$(id+"Img").style.backgroundColor=val;};RichDrawEditor.prototype.updateTextStrokeProperty=function(prop,_d60){this.renderer.setFontStrokeProperty(this.selected,prop,_d60);if(prop=="color"){$("txtborderColorImg").style.backgroundColor=_d60;}UndoRedo.ACTION="textstroke:"+prop;this.renderer.syncThumbnailView();var _d61=this.selected.getAttribute("id");var _d62="textstroke:"+prop+":"+_d60;ShareCollaboration.sendShareMessage("modify",_d61,_d62);};RichDrawEditor.prototype.setLinePosition=function(_d63,_d64){if(isNaN(Math.abs(_d64))){Utils.showErrorMessage($("s"+_d63.toUpperCase()),js_LangObj.EntriesMustBeNumbers);return;}var isX=(_d63.toLowerCase().indexOf("x")!=-1);_d64=this.getPixelValue(_d64,isX);this.renderer.setLinePosition(this.selected,_d63,_d64);UndoRedo.ACTION="lineposition:"+_d63;this.renderer.syncThumbnailView();this.renderer.positionTracker(this.selected);var _d66=this.selected.getAttribute("id");var view=this.renderer.getViewCoordinates();var _d68="lineposition:"+view.width+":"+view.height+":"+_d63+":"+_d64;ShareCollaboration.sendShareMessage("modify",_d66,_d68);};RichDrawEditor.prototype.updateDimension=function(ele){var id=ele.id;var dim=this.renderer.getDimension(this.selected);var w=dim.width*1;var h=dim.height*1;var ov=ele.value;var _d6f=(id.indexOf("Width")!=-1);var v=this.getPixelValue(ov,_d6f,true);if(_d6f){w=v;}else{h=v;}if(ov<=0){var pd=this.getPercentageValues(w,h);if(_d6f){ele.value=pd.x;}else{ele.value=pd.y;}}this.renderer.setDimension(w*1,h*1,true,true);UndoRedo.ACTION="dimension";this.renderer.positionTracker(this.selected);var _d72=this.selected.getAttribute("id");var view=this.renderer.getViewCoordinates();var _d74="dimension:"+view.width+":"+view.height+":"+w+":"+h;ShareCollaboration.sendShareMessage("modify",_d72,_d74);};RichDrawEditor.prototype.updatePosition=function(ele,val){var id=ele.id;var pos=this.renderer.getPosition(this.selected);var x=pos.x;var y=pos.y;var v=val;var isX=(id.indexOf("X")!=-1);v=this.getPixelValue(v,isX);if(isX){x=v;}else{y=v;}this.renderer.move(this.selected,x,y);UndoRedo.ACTION="position";this.renderer.positionTracker(this.selected);var _d7d=this.selected.getAttribute("id");var view=this.renderer.getViewCoordinates();var _d7f="position:shape:"+view.width+":"+view.height+":"+x+":"+y;ShareCollaboration.sendShareMessage("modify",_d7d,_d7f);};RichDrawEditor.prototype.makeCenter=function(_d80,_d81){var type=this.renderer.getType(this.selected);if(type=="line"){return;}var pos=this.renderer.getPosition(this.selected);var dim=this.renderer.getDimension(this.selected);var _d85=this.renderer.getViewCoordinates();var w=dim.width*1;var h=dim.height*1;var cw=_d85.width*1;var ch=_d85.height*1;var x=pos.x;var y=pos.y;var _d8c;if(_d80=="x"||_d80=="both"){x=cw/2-w/2;if(!_d81){_d8c=((x*100)/cw).toFixed(2);Utils.setVal($("sPosX"),_d8c);}}if(_d80=="y"||_d80=="both"){y=ch/2-h/2;if(!_d81){_d8c=((y*100)/ch).toFixed(2);Utils.setVal($("sPosY"),_d8c);}}this.renderer.move(this.selected,x,y);this.renderer.positionTracker(this.selected);UndoRedo.ACTION="position";this.renderer.syncThumbnailView();var view=this.renderer.getViewCoordinates();var _d8e="position:shape:"+view.width+":"+view.height+":"+x+":"+y;var _d8f=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_d8f,_d8e);};RichDrawEditor.prototype.fitToScreen=function(_d90){var type=this.renderer.getType(this.selected);if(type=="line"){return;}if(type=="image"){_d90=true;}var pos=this.renderer.getPosition(this.selected);var dim=this.renderer.getDimension(this.selected);var _d94=this.renderer.getViewCoordinates();var w=dim.width*1;var h=dim.height*1;var cw=_d94.width*1;var ch=_d94.height*1;var newW=cw;var newH=ch;if(_d90){if(w>h){newH=newW/w*h;}else{newW=newH/h*w;}}this.renderer.setDimension(newW,newH,true,true,true);this.makeCenter("both",true);};RichDrawEditor.prototype.updateImageOpacity=function(ele){var val=ele.options[ele.selectedIndex].text;this.renderer.setFillOpacity(this.selected,val);this.renderer.syncThumbnailView();};RichDrawEditor.prototype.updateFillOpacity=function(ele,_d9e,_d9f){var val=ele.options[ele.selectedIndex].text;this.renderer.setFillOpacity(this.selected,val,_d9e,_d9f);UndoRedo.ACTION="opacity:"+_d9e+":"+_d9f;this.renderer.syncThumbnailView();var _da1=this.selected.getAttribute("id");var _da2="opacity:"+val+":"+_d9e+":"+_d9f;ShareCollaboration.sendShareMessage("modify",_da1,_da2);};RichDrawEditor.prototype.updateStrokeOpacity=function(ele){var val=ele.options[ele.selectedIndex].text;this.renderer.setStrokeOpacity(this.selected,val);UndoRedo.ACTION="strokeopacity";this.renderer.syncThumbnailView();var _da5=this.selected.getAttribute("id");var _da6="strokeopacity:"+val;ShareCollaboration.sendShareMessage("modify",_da5,_da6);};RichDrawEditor.prototype.changeGradientFlow=function(_da7,_da8){var eles=document.getElementsByClassName("gradBgSel");var _daa=_da8?"txt":"";for(var i=0;i<eles.length;i++){var e=eles[i];if(_da8){if(e.id.indexOf(_daa)!=-1){e.className="gradBg";}}else{if(e.id.indexOf("txt")==-1){e.className="gradBg";}}}$(_daa+"gangle"+_da7).className="gradBgSel";this.renderer.setGradientAngle(this.selected,_da7,_da8);if(_da8){UndoRedo.ACTION="gradientflow:text";}else{UndoRedo.ACTION="gradientflow";}this.renderer.syncThumbnailView();var _dad=this.selected.getAttribute("id");var _dae="gradientflow:"+_da7;if(_da8){_dae+=":"+_da8;}ShareCollaboration.sendShareMessage("modify",_dad,_dae);};RichDrawEditor.prototype.addTextOnShape=function(){ShowUtils.drawEditor.addText();};RichDrawEditor.prototype.bringFront=function(){this.renderer.bringFront();UndoRedo.ACTION="front";this.renderer.syncThumbnailView();var _daf=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_daf,"front");};RichDrawEditor.prototype.bringForward=function(){this.renderer.bringForward();UndoRedo.ACTION="forward";this.renderer.syncThumbnailView();var _db0=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_db0,"forward");};RichDrawEditor.prototype.sendBack=function(){this.renderer.sendBack();UndoRedo.ACTION="back";this.renderer.syncThumbnailView();var _db1=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_db1,"back");};RichDrawEditor.prototype.sendBackward=function(){this.renderer.sendBackward();UndoRedo.ACTION="backward";this.renderer.syncThumbnailView();var _db2=this.selected.getAttribute("id");ShareCollaboration.sendShareMessage("modify",_db2,"backward");};RichDrawEditor.prototype.cut=function(){this.renderer.copy();this.deleteShape();};RichDrawEditor.prototype.copy=function(){this.renderer.copy();};RichDrawEditor.prototype.paste=function(left,top){var _db5=Position.cumulativeOffset(this.container);if(left&&top){var left=Math.round((left-_db5[0])/this.gridX)*this.gridX;var top=Math.round((top-_db5[1])/this.gridY)*this.gridY;}var sel=this.renderer.paste(left,top);this.renderer.syncThumbnailView();if(sel){this.selected=sel;this.renderer.showTracker(this.selected);}var _db7=this.selected.getAttribute("id");var v=this.renderer.getViewCoordinates();var _db9=this.selected;var type=this.renderer.getType(_db9);if(type.indexOf("image")==-1){var dim=this.renderer.getDimension(_db9);var newX,newY;if(type=="line"){pos=this.renderer.bounds(_db9);newX=pos.x1;newY=pos.y1;dim.width=pos.x2;dim.height=pos.y2;}else{pos=this.renderer.getPosition(_db9);newX=pos.x;newY=pos.y;}var _dbe,_dbf;if(this.renderer.isGradientFilled(_db9)){var clr=this.renderer.getGradientColors(_db9,"linear");_dbe=clr.color1.color;_dbf=clr.color2.color;}else{_dbe=this.renderer.queryCommand(_db9,"fillcolor");}var _dc1=this.renderer.queryCommand(_db9,"linecolor");var _dc2=this.renderer.queryCommand(_db9,"linewidth");var _dc3=this.renderer.getMarkerType(_db9,"start");var _dc4=this.renderer.getMarkerType(_db9,"end");var _dc5=type+":"+_dbe+":"+_dbf+":"+_dc1+":"+_dc2+":"+newX+":"+newY+":"+dim.width+":"+dim.height+":"+v.width+":"+v.height+":"+_dc3+":"+_dc4;ShareCollaboration.sendShareMessage("add",_db7,_dc5);}else{var src=this.renderer.getImageSrc(_db9);var rect=this.renderer.bounds(_db9);src=src.replace("http:","http_");var _dc5="image:"+src+":"+rect.width+":"+rect.height+":"+rect.x+":"+rect.y+":"+v.width+":"+v.height;ShareCollaboration.sendShareMessage("add",_db7,_dc5);}};RichDrawEditor.prototype.deleteShape=function(){DrawTools.deleteShape();presenter.syncThumbNailView();};RichDrawEditor.prototype.showProperties=function(){Utils.openPopUp("shapeprops",true);};RichDrawEditor.prototype.showPresets=function(){var p=$("gPresetsMain");var pG=$("gPresets");var pB=$("presetButton");pB.blur();var _dcb=Utils.getPos(pB);p.style.left=_dcb.offsetLeft+"px";p.style.top=_dcb.offsetTop+pB.offsetHeight+"px";p.style.display="block";var _dcc=9;var _dcd=1;if(pG.innerHTML.length<3){this.renderer.drawPresets(RichDrawEditor.gradientPresetsArray,pG,_dcc,_dcd);}else{this.renderer.changePresetsAngle(pG);}};RichDrawEditor.prototype.closeOpenDialogs=function(){var p=$("gPresetsMain");if(p){p.style.display="none";}if($("HelperDiv1")){closeDialog("HelperDiv1");}var _dcf=$("col");if(_dcf){_dcf.style.display="none";}};RichDrawEditor.prototype.setPresetColors=function(_dd0){var cols=RichDrawEditor.gradientPresetsArray[_dd0];var col1=$("topCol");col1.value=cols.color1;this.updateShapeProperty(col1,true);var col2=$("botCol");col2.value=cols.color2;this.updateShapeProperty(col2,true);var bor=$("borderColor");bor.value=cols.border;this.updateShapeProperty(bor);};RichDrawEditor.prototype.getShapeTextMenuStatus=function(){var _dd5=this.selected;var type=this.renderer.getType(_dd5);if(type=="line"){return "disable";}var _dd7=this.renderer.getFontDetails(_dd5);if(_dd7){return "edit";}else{return "add";}};RichDrawEditor.prototype.getAllElements=function(_dd8){return this.renderer.getAllElements(_dd8);};RichDrawEditor.prototype.isTrackerSelected=function(shp,xVal,yVal){var _ddc=shp.getElementsByTagName("rect");var _ddd=_ddc.length;if(_ddd==0){var eles;if(isIE){eles=shp.getElementsByTagName("oval");}else{eles=shp.getElementsByTagName("ellipse");}var ln=eles.length;for(var k=0;k<ln;k++){var bnds=this.renderer.getLineTrackerBounds(eles[k]);bnds.x=parseFloat(bnds.x);bnds.y=parseFloat(bnds.y);bnds.width=parseFloat(bnds.width);bnds.height=parseFloat(bnds.height);var pts=new Array(4);var _de3={"x":bnds.x,"y":bnds.y};pts[0]=_de3;var _de4={"x":bnds.x+bnds.width,"y":bnds.y};pts[1]=_de4;var _de5={"x":bnds.x+bnds.width,"y":bnds.y+bnds.height};pts[2]=_de5;var _de6={"x":bnds.x,"y":bnds.y+bnds.height};pts[3]=_de6;var _de7=new Array();_de7[0]=pts;var _de8=this.isPointInsideShape(xVal,yVal,_de7);if(_de8){return {"rect":eles[k],"action":"lineresize"};}}return undefined;}var v;if(isIE){v=this.renderer.getViewCoordinates();v.height=parseFloat(v.height);v.width=parseFloat(v.width);}var _dea=this.renderer.getRotation(shp);var _deb=undefined;var _dec=undefined;var pos,dim;for(var n=0;n<_ddd;n++){var rect=_ddc[n];if(rect.id.trim()=="tracker"){var box=rect.getBBox();pos={"x":box.x,"y":box.y};dim={"height":box.height,"width":box.width};}else{if(isIE){var _df2=this.renderer.getBoxCoordinates();_df2.height=parseFloat(_df2.height);_df2.width=parseFloat(_df2.width);_dec=parseFloat(_df2.height/2);_deb=parseFloat(_df2.width/2);}else{var box=rect.getBBox();box.height=parseFloat(box.height);box.width=parseFloat(box.width);_dec=parseFloat(box.height/2);_deb=parseFloat(box.width/2);}}if((isIE&&_dec)||(pos&&_dec)){break;}}if(isIE){var bnds=this.renderer.getTrackerBounds();pos={"x":bnds.x,"y":bnds.y};dim={"height":bnds.height,"width":bnds.width};}pos.x=parseFloat(pos.x);pos.y=parseFloat(pos.y);dim.width=parseFloat(dim.width);dim.height=parseFloat(dim.height);var cX=pos.x+(dim.width/2);var cY=pos.y+(dim.height/2);var _df5=new Array(4);var _df6=new Array(2);_df6[0]=pos.x;_df6[1]=pos.y;_df5[0]=_df6;var _de4=new Array(2);_de4[0]=pos.x+dim.width;_de4[1]=pos.y;_df5[1]=_de4;var _de5=new Array(2);_de5[0]=pos.x+dim.width;_de5[1]=pos.y+dim.height;_df5[2]=_de5;var _df7=new Array(2);_df7[0]=pos.x;_df7[1]=pos.y+dim.height;_df5[3]=_df7;for(var i=0;i<4;i++){var pt=_df5[i];if(_dea){var nPt=this.getRotVal(_dea,pt[0],pt[1],cX,cY);}else{var nPt={"x":pt[0],"y":pt[1]};}_df5[i]=nPt;}var _dfb;for(var k=0;k<4;k++){var _dfc,_dfd;_dfc=_df5[k];if(_df5[k+1]){_dfd=_df5[k+1];}else{_dfd=_df5[0];}var x1=parseFloat(_dfc.x);var y1=parseFloat(_dfc.y);var x2=parseFloat(_dfd.x);var y2=parseFloat(_dfd.y);var _e02=(x1+x2)/2;var _e03=(y1+y2)/2;var _e04=new Array(4);var _e05=new Array(2);_e05[0]=_e02-_deb;_e05[1]=_e03-_dec;_e04[0]=_e05;var _e06=new Array(2);_e06[0]=_e02+_deb;_e06[1]=_e03-_dec;_e04[1]=_e06;var _e07=new Array(2);_e07[0]=_e02+_deb;_e07[1]=_e03+_dec;_e04[2]=_e07;var _e08=new Array(2);_e08[0]=_e02-_deb;_e08[1]=_e03+_dec;_e04[3]=_e08;for(var n=0;n<4;n++){var _e09=_e04[n];if(_dea){var _e0a=this.getRotVal(_dea,_e09[0],_e09[1],_e02,_e03);}else{var _e0a={"x":_e09[0],"y":_e09[1]};}_e04[n]=_e0a;}var _e0b=new Array();_e0b[0]=_e04;var _de8=this.isPointInsideShape(xVal,yVal,_e0b);if(_de8){if(k==0){_dfb="rn";}else{if(k==1){_dfb="re";}else{if(k==2){_dfb="rs";}else{_dfb="rw";}}}break;}}if(!_dfb){var _e0c=_df5[2];var pt1=parseFloat(_e0c.x);var pt2=parseFloat(_e0c.y);var _e0f=new Array(4);var pts1=new Array(2);pts1[0]=pt1-_deb;pts1[1]=pt2-_dec;_e0f[0]=pts1;var pts2=new Array(2);pts2[0]=pt1+_deb;pts2[1]=pt2-_dec;_e0f[1]=pts2;var pts3=new Array(2);pts3[0]=pt1+_deb;pts3[1]=pt2+_dec;_e0f[2]=pts3;var pts4=new Array(2);pts4[0]=pt1-_deb;pts4[1]=pt2+_dec;_e0f[3]=pts4;for(var h=0;h<4;h++){var _e09=_e0f[h];if(_dea){_e0a=this.getRotVal(_dea,_e09[0],_e09[1],pt1,pt2);}else{_e0a={"x":_e09[0],"y":_e09[1]};}_e0f[h]=_e0a;}var _e15=new Array();_e15[0]=_e0f;if(this.isPointInsideShape(xVal,yVal,_e15)){_dfb="rse";}}if(_dfb){for(var n=0;n<_ddd;n++){var rect=_ddc[n];if(rect.id==_dfb){return {"rect":rect,"action":"resize"};}}}if(isIE){var _e16=shp.getElementsByTagName("oval");}else{var _e16=shp.getElementsByTagName("ellipse");}var _e17=_e16.length;var _e18;var _e19;var _e1a,_e1b;for(var n=0;n<_e17;n++){var elem=_e16[n];if(elem.id.indexOf("c-circle")!=-1){var bB;if(isIE){var cntr=this.renderer.getCenterCoordinates();_e1a=parseFloat(cntr.cx);_e1b=parseFloat(cntr.cy);}else{bB=elem.getBBox();_e1a=parseFloat(bB.x)+(parseFloat(bB.width)/2);_e1b=parseFloat(bB.y)+(parseFloat(bB.height)/2);}continue;}_e18=elem;var b;if(isIE){b=this.renderer.getRotateCircleCoordinates(elem);}else{b=elem.getBBox();}_e19={"height":b.height,"width":b.width};_e19.width=parseFloat(_e19.width);_e19.height=parseFloat(_e19.height);}var _e20=shp.getElementsByTagName("line")[0];var x1,y1,x2,y2;if(isIE){x1=pos.x+(dim.width/2);x2=x1;y1=pos.y;var dif=this.renderer.getRotateLineDiff();y2=pos.y-dif;}else{x1=_e20.getAttributeNS(null,"x1").split("px")[0];y1=_e20.getAttributeNS(null,"y1").split("px")[0];x2=_e20.getAttributeNS(null,"x2").split("px")[0];y2=_e20.getAttributeNS(null,"y2").split("px")[0];}var _e22={"x1":x1,"y1":y1,"x2":x2,"y2":y2};var _e23;if(_dea){var _e24=_e1b-parseFloat(_e22.y2);var x,y;var _e27=(Math.PI/180)*_dea;if(_dea<=90){x=(_e24*Math.sin(_e27))+_e1a;y=_e1b-(_e24*Math.cos(_e27));}else{if(_dea>90&&_dea<=180){_e27=(Math.PI/180)*(_dea-90);x=(_e24*Math.cos(_e27))+_e1a;y=(_e24*Math.sin(_e27))+_e1b;}else{if(_dea>180&&_dea<=270){_e27=(Math.PI/180)*(_dea-180);x=_e1a-(_e24*Math.sin(_e27));y=_e1b+(_e24*Math.cos(_e27));}else{if(_dea<=360){_e27=(Math.PI/180)*(_dea-270);x=_e1a-(_e24*Math.cos(_e27));y=_e1b-(_e24*Math.sin(_e27));}}}}_e23={"x":x,"y":y};}else{_e23={"x":_e22.x2,"y":_e22.y2};}_e23.x=parseFloat(_e23.x);_e23.y=parseFloat(_e23.y);var _e28=new Array(4);var _e29=new Array(2);_e29[0]=_e23.x-(_e19.width/2);_e29[1]=_e23.y-(_e19.height/2);_e28[0]=_e29;var _e2a=new Array(2);_e2a[0]=_e23.x+(_e19.width/2);_e2a[1]=_e23.y-(_e19.height/2);_e28[1]=_e2a;var _e2b=new Array(2);_e2b[0]=_e23.x+(_e19.width/2);_e2b[1]=_e23.y+(_e19.height/2);_e28[2]=_e2b;var _e2c=new Array(2);_e2c[0]=_e23.x-(_e19.width/2);_e2c[1]=_e23.y+(_e19.height/2);_e28[3]=_e2c;var _e2d=_e23.x;var _e2e=_e23.y;for(var i=0;i<4;i++){var pt=_e28[i];var _e2f;if(_dea){_e2f=this.getRotVal(_dea,pt[0],pt[1],_e2d,_e2e);}else{_e2f={"x":pt[0],"y":pt[1]};}_e28[i]=_e2f;}var _e30=new Array();_e30[0]=_e28;var _e31=this.isPointInsideShape(xVal,yVal,_e30);if(_e31){return {"rect":_e18,"action":"rotate"};}return undefined;};RichDrawEditor.prototype.isShapeSelected=function(shp,xVal,yVal){var pos,dim;var typ=this.renderer.getType(shp);if(typ==="image"){var _e38=this.renderer.getShapeProperties(shp);_e38.x=parseFloat(_e38.x);_e38.y=parseFloat(_e38.y);_e38.width=parseFloat(_e38.width);_e38.height=parseFloat(_e38.height);_e38.rotation=parseInt(_e38.rotation);var nArr=new Array(4);var fPt={"x":_e38.x,"y":_e38.y};nArr[0]=fPt;var sPt={"x":_e38.x+_e38.width,"y":_e38.y};nArr[1]=sPt;var tPt={"x":_e38.x+_e38.width,"y":_e38.y+_e38.height};nArr[2]=tPt;var foPt={"x":_e38.x,"y":_e38.y+_e38.height};nArr[3]=foPt;var num=0;var cX=_e38.x+(_e38.width/2);var cY=_e38.y+(_e38.height/2);while(num<4){var pt=nArr[num];pt.x=parseFloat(pt.x);pt.y=parseFloat(pt.y);if(_e38.rotation>0){pt=this.getRotVal(_e38.rotation,pt.x,pt.y,cX,cY);}nArr[num]=pt;num++;}var _e42=new Array();_e42[0]=nArr;var _e43=this.isPointInsideShape(xVal,yVal,_e42);if(_e43){return shp;}return undefined;}if(typ==="line"){var _e44=this.renderer.bounds(shp);_e44.x1=parseFloat(_e44.x1);_e44.x2=parseFloat(_e44.x2);_e44.y1=parseFloat(_e44.y1);_e44.y2=parseFloat(_e44.y2);var _e45=this.renderer.queryCommand(shp,"linewidth");_e45=parseFloat(_e45);var _e46,_e47;if(_e44.y1>_e44.y2){_e46=_e44.y1-_e45;_e47=_e44.y2+_e45;}else{_e46=_e44.y2-_e45;_e47=_e44.y1+_e45;}if(((xVal>=_e44.x1&&xVal<=_e44.x2)||(xVal>=_e44.x2&&xVal<=_e44.x1))&&((yVal>=_e46&&yVal<=_e47)||(yVal>=_e47&&yVal<=_e46))){var m=(_e44.y2-_e44.y1)/(_e44.x2-_e44.x1);var numX=(yVal-_e44.y1)-(m*(xVal-_e44.x1));_e45=_e45+2;var _e4a=-1*_e45;if(numX<_e45&&numX>_e4a){return shp;}}return undefined;}if(isIE){var _e4b=this.renderer.bounds(shp);pos={"x":_e4b.x,"y":_e4b.y};dim={"height":_e4b.height,"width":_e4b.width};}else{var box=shp.getBBox();pos={"x":box.x,"y":box.y};dim={"height":box.height,"width":box.width};}var _e4d=this.renderer.getRotation(shp);pos.x=parseFloat(pos.x);pos.y=parseFloat(pos.y);dim.width=parseFloat(dim.width);dim.height=parseFloat(dim.height);var flip=this.renderer.getFlip(shp);var _e4f=Clips.getPath(typ,dim.width,dim.height,undefined,flip);var pts=Clips.getCoOrdinatePoints(_e4f);var cX=pos.x+(dim.width/2);var cY=pos.y+(dim.height/2);var ln=pts.length;for(var j=0;j<ln;j++){var pt=pts[j];var _e53=pt.length;for(var k=0;k<_e53;k++){var fPt=pt[k];fPt[0]+=pos.x;fPt[1]+=pos.y;if(_e4d){var nPt=this.getRotVal(_e4d,fPt[0],fPt[1],cX,cY);}else{var nPt={"x":fPt[0],"y":fPt[1]};}pt[k]=nPt;}}typ=typ.toLowerCase();if(typ.indexOf("square bevel")!=-1||typ.indexOf("cube")!=-1){var ln=pts.length-1;while(ln>-1){var nArr=new Array();nArr[0]=pts[ln];inAShape=this.isPointInsideShape(xVal,yVal,nArr);if(inAShape){break;}ln--;}}else{inAShape=this.isPointInsideShape(xVal,yVal,pts);}if(inAShape){return shp;}return undefined;};RichDrawEditor.prototype.getRotatedSmallAndBigXY=function(typ,dim,flip,_e59,xVal,yVal){var _e5c=Clips.getPath(typ,dim.width,dim.height,undefined,flip);var pts=Clips.getPathPoints(_e5c);var cX=xVal+dim.width/2;var cY=yVal+dim.height/2;var ln=pts.length;var rPt=new Object();for(var j=0;j<ln;j++){var pt=pts[j];var _e64=pt.length;for(var k=0;k<_e64;k++){var fPt=pt[k];fPt[0]+=xVal;fPt[1]+=yVal;var nPt=this.getRotVal(_e59,fPt[0],fPt[1],cX,cY);pt[k]=nPt;if(j==0&&k==0){rPt["bigx"]=rPt["smallx"]=pt[k].x;rPt["bigy"]=rPt["smally"]=pt[k].y;}else{if(pt[k].x<rPt["smallx"]){rPt["smallx"]=pt[k].x;}else{if(pt[k].x>rPt["bigx"]){rPt["bigx"]=pt[k].x;}}if(pt[k].y<rPt["smally"]){rPt["smally"]=pt[k].y;}else{if(pt[k].y>rPt["bigy"]){rPt["bigy"]=pt[k].y;}}}}}return rPt;};RichDrawEditor.prototype.isPointInsideShape=function(xVal,yVal,pts){var _e6b=pts.length;var _e6c=false;for(var m=0;m<_e6b;m++){var _e6e=pts[m];var _e6f=_e6e.length;for(var n=0;n<_e6f;n++){var _e71=_e6e[n];var _e72;if(_e6e[n+1]){_e72=_e6e[n+1];}else{_e72=_e6e[0];}if(_e72.y==_e71.y){continue;}if(_e72.x!=_e71.x){var _e73=(_e72.y-_e71.y)/(_e72.x-_e71.x);var chkX=(yVal-_e71.y+(_e73*_e71.x))/_e73;if(chkX>=xVal){if((chkX>_e71.x&&chkX<=_e72.x)||(chkX>_e72.x&&chkX<=_e71.x)){_e6c=!_e6c;}}}else{if(_e72.x>=xVal&&((yVal>_e71.y&&yVal<=_e72.y)||(yVal>_e72.y&&yVal<=_e71.y))){_e6c=!_e6c;}}}}return _e6c;};RichDrawEditor.prototype.getRotVal=function(_e75,x,y,cX,cY){var _e7a={};var _e7b=(Math.PI/180)*_e75;_e7a.a=Math.cos(_e7b);_e7a.c=(-1)*Math.sin(_e7b);_e7a.b=Math.sin(_e7b);_e7a.d=Math.cos(_e7b);_e7a.e=(cY*_e7a.b)-(cX*_e7a.d)+cX;_e7a.f=cY-(cX*_e7a.b)-(cY*_e7a.d);var finX=(x*_e7a.a)+(y*_e7a.c)+_e7a.e;var finY=(x*_e7a.b)+(y*_e7a.d)+_e7a.f;return {"x":finX,"y":finY};};function AbstractRenderer(){}AbstractRenderer.prototype.insertImage=function(){};AbstractRenderer.prototype.syncThumbnailView=function(){};AbstractRenderer.prototype.init=function(elem){};AbstractRenderer.prototype.bounds=function(_e7f){return {x:0,y:0,width:0,height:0};};AbstractRenderer.prototype.create=function(_e80,_e81,_e82,_e83,left,top,_e86,_e87){};AbstractRenderer.prototype.remove=function(_e88){};AbstractRenderer.prototype.move=function(_e89,left,top,_e8c){};AbstractRenderer.prototype.track=function(_e8d){};AbstractRenderer.prototype.resize=function(_e8e,_e8f,_e90,toX,toY){};AbstractRenderer.prototype.editCommand=function(_e93,cmd,_e95){};AbstractRenderer.prototype.queryCommand=function(_e96,cmd){};AbstractRenderer.prototype.showTracker=function(_e98){};AbstractRenderer.prototype.getMarkup=function(){return null;};AbstractRenderer.prototype.getDeltaValues=function(){};AbstractRenderer.prototype.getShapes=function(_e99){var o=new Array();o[0]=_e99;return o;};AbstractRenderer.prototype.getShape=function(_e9b){};AbstractRenderer.prototype.onAddText=function(){};AbstractRenderer.prototype.resizeContainer=function(){};AbstractRenderer.prototype.finishTextEditing=function(){};AbstractRenderer.prototype.getPosition=function(_e9c){};AbstractRenderer.prototype.getSelectedShape=function(){return null;};AbstractRenderer.prototype.setLayoutProperties=function(){};AbstractRenderer.prototype.setLayoutZIndex=function(){};AbstractRenderer.prototype.getStrokeWidth=function(){};AbstractRenderer.prototype.getMasterDocument=function(node){if(node.id=="masterDocument"||node.id=="vec-thumb"||node.id=="bg-thumb"||node.id=="bgDocument"||node.id=="vml-thumb"){return node;}var eles=node.getElementsByTagName("*");for(var i=eles.length-1;i>=0;i--){if(eles[i].id=="masterDocument"||eles[i].id=="vec-thumb"||eles[i].id=="bg-thumb"||eles[i].id=="bgDocument"||eles[i].id=="vml-thumb"){return eles[i];}}return undefined;};AbstractRenderer.prototype.removeTracker=function(){var _ea0=$("trackergrp");var _ea1=$("tracker");if($("rse")){Utils._removeEvent($("rse"),"mousedown",Utils.eventHandlers["mousedown"+"rse"]);Utils._removeEvent($("rn"),"mousedown",Utils.eventHandlers["mousedown"+"rn"]);Utils._removeEvent($("rw"),"mousedown",Utils.eventHandlers["mousedown"+"rw"]);Utils._removeEvent($("rn"),"mousedown",Utils.eventHandlers["mousedown"+"rn"]);Utils._removeEvent($("rs"),"mousedown",Utils.eventHandlers["mousedown"+"rs"]);}if(_ea1){_ea1.parentNode.removeChild(_ea1);}if(_ea0){_ea0.parentNode.removeChild(_ea0);}};AbstractRenderer.prototype.getRVal=function(_ea2,v1,v2,sg){if(_ea2==0){return v1;}var r=(v1*Math.cos((Math.PI/180)*(-_ea2)))+sg*(v2*Math.sin((Math.PI/180)*(-_ea2)));return r;};AbstractRenderer.prototype.createUUID=function(type){return type+":"+[4,2,2,2,6].map(function(_ea8){var _ea9="";for(var i=0;i<_ea8;i++){var _eab=parseInt((Math.random()*256)).toString(16);if(_eab.length==1){_eab="0"+_eab;}_ea9+=_eab;}return _ea9;}).join("-");};AbstractRenderer.prototype.flipX=function(){};AbstractRenderer.prototype.flipY=function(){};AbstractRenderer.prototype.isTypeValidForFlip=function(type){if(type=="ellipse"||type=="line"||type=="roundrect"||type=="Terminator"||type=="Connector"){return false;}return true;};AbstractRenderer.prototype.cloneFontProps=function(src,_eae){with(_eae.style){fontSize=src.style.fontSize+" !important";fontStyle=src.style.fontStyle;fontWeight=src.style.fontWeight;fontFamily=src.style.fontFamily;}};AbstractRenderer.prototype.cloneFontDetails=function(_eaf,_eb0){with(_eb0.style){fontSize=_eaf.fSize;fontStyle=_eaf.fStyle;fontWeight=_eaf.fWeight;fontFamily=_eaf.fFamily;if(!fontFamily||fontFamily.length==0){fontFamily="monospace";}}};AbstractRenderer.prototype.cloneFontStyles=function(_eb1,_eb2){if(_eb2){_eb1.style.fontSize=_eb2.fSize;_eb1.style.fontStyle=_eb2.fStyle;_eb1.style.fontWeight=_eb2.fWeight;_eb1.style.fontFamily=_eb2.fFamily;var fill=_eb2.fill;if(fill=="gradient"){fill=_eb2.colors.color1.color;}_eb1.style.color=fill+"";}else{_eb1.style.fontFamily="arial";_eb1.style.fontSize="100%";}_eb1.style.border="1px blue dotted";_eb1.style.position="absolute";_eb1.style.zIndex=5000;_eb1.style.overflow="hidden";_eb1.style.textAlign="center";};AbstractRenderer.prototype.getShapeProperties=function(_eb4){var _eb5=new Object();_eb5.type=this.getType(_eb4);var flip=this.getFlip(_eb4);if(_eb5.type!="line"){var dim=this.getDimension(_eb4);var pos=this.getPosition(_eb4);_eb5.height=dim.height*1;_eb5.width=dim.width*1;_eb5.x=pos.x*1;_eb5.y=pos.y*1;}else{var b=this.bounds(_eb4);_eb5.x1=b.x1*1;_eb5.y1=b.y1*1;_eb5.x2=b.x2*1;_eb5.y2=b.y2*1;_eb5.startArrowType=this.getMarkerType(_eb4,"start");_eb5.endArrowType=this.getMarkerType(_eb4,"end");}_eb5.flip=flip;_eb5.rotation=this.getRotation(_eb4);if(!_eb5.rotation){_eb5.rotation="0";}_eb5.fontProps=this.getFontDetails(_eb4);if(_eb5.type!="image"){_eb5.borderColor=this.queryCommand(_eb4,"linecolor");_eb5.borderSize=this.queryCommand(_eb4,"linewidth");var fill;if(this.isGradientFilled(_eb4)){fill=this.getGradientColors(_eb4,"linear",false);_eb5.fill="gradient";_eb5.colors=fill;}else{fill=this.queryCommand(_eb4,"fillcolor");_eb5.fill=fill;_eb5.opacity=this.getFillOpacity(_eb4);}_eb5.borderType=this.getBorderType(_eb4);_eb5.borderOpacity=this.getStrokeOpacity(_eb4);}return _eb5;};AbstractRenderer.prototype.capitalize=function(str){return (str.charAt(0).toUpperCase()+str.substring(1));};AbstractRenderer.prototype.setResizeCursors=function(_ebc){var rnc="n-resize";var rwc="w-resize";var rsec="se-resize";if((_ebc>=45&&_ebc<=135)||(_ebc>=225&&_ebc<=315)){rnc="w-resize";rwc="n-resize";rsec="ne-resize";if(_ebc>=225&&_ebc<=315){rsec="sw-resize";}}$("rn").style.cursor=rnc;$("re").style.cursor=rwc;$("rs").style.cursor=rnc;$("rw").style.cursor=rwc;$("rse").style.cursor=rsec;};AbstractRenderer.prototype.setResizeCursorForDir=function(_ec0,dir){var rnc="n-resize";var rwc="w-resize";var rsec="se-resize";if((_ec0>=45&&_ec0<=135)||(_ec0>=225&&_ec0<=315)){rnc="w-resize";rwc="n-resize";rsec="ne-resize";if(_ec0>=225&&_ec0<=315){rsec="sw-resize";}}var c=rnc;switch(dir){case "e":c=rwc;break;case "s":c=rnc;break;case "n":c=rnc;break;case "w":c=rwc;break;case "se":c=rsec;break;}document.body.style.cursor=c;};AbstractRenderer.prototype.getNodeForVector=function(_ec6){if(isIE){var div=document.createElement("div");div.innerHTML=_ec6;return div.getElementsByTagName("group")[0];}else{_ec6=_ec6.replace(/xmlns:xlink="http:\/\/www.w3.org\/1999\/xlink"/g,"");_ec6=_ec6.replace(/xlink="http:\/\/www.w3.org\/1999\/xlink"/g,"");_ec6=_ec6.replace(/<svg/g,"<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\"");_ec6=_ec6.replace(/xlink:href/g,"href");_ec6=_ec6.replace(/href/g,"xlink:href");var dom=(new DOMParser()).parseFromString(_ec6,"text/xml");var eles=dom.getElementsByTagName("*");for(var i=0;i<eles.length;i++){var ele=eles[i];var _ecc=ele.getAttribute("transform");var _ecd=ele.getAttribute("_transform");if(_ecc&&_ecc.indexOf("matrix")!=-1){ele.setAttribute("transform",_ecd);}}return dom.documentElement;}};AbstractRenderer.prototype.getPreviousNode=function(_ece){var psib=_ece;do{psib=psib.previousSibling;}while(psib&&psib.nodeType!=1);return psib;};AbstractRenderer.prototype.getFirstNode=function(_ed0){var fsib=_ed0.firstChild;while(fsib&&fsib.nodeType!=1){fsib=fsib.nextSibling;}return fsib;};AbstractRenderer.prototype.getLastNode=function(_ed2){var fsib=_ed2.lastChild;while(fsib&&fsib.nodeType!=1){fsib=fsib.previousSibling;}return fsib;};AbstractRenderer.prototype.getNextNode=function(_ed4){var psib=_ed4;do{psib=psib.nextSibling;}while(psib&&psib.nodeType!=1);return psib;};AbstractRenderer.prototype.getLayoutDiv=function(_ed6){if(!_ed6){_ed6=$("slideDiv");}var _ed7=_ed6;if(_ed6){var eles=document.getElementsByClassName("layout",_ed6);_ed7=eles[0];}return _ed7;};String.prototype.wordWrap=function(_ed9,_eda,_edb,trim){if(this.length==1){return this;}var i,j,s,r=this.split("\n");if(_ed9>0){for(i in r){for(s=r[i],r[i]="";s.length>_ed9;j=_edb?_ed9:(j=s.substr(0,_ed9).match(/\S*$/)).input.length-j[0].length||j.input.length+(j=s.substr(_ed9).match(/^\S*/)).input.length+j[0].length,r[i]+=s.substr(0,j),r[i]=(trim)?r[i].trim():r[i],r[i]+=((s=s.substr(j)).length?_eda:"")){}r[i]+=s;}}return r.join("\n");};AbstractRenderer.prototype.getWrappedTextValue=function(text,_ee2,_ee3,isIE){var cpl=this.getCharactersPerLineForTextWrap(text,_ee2,_ee3);var _ee6=text.wordWrap(cpl,"\r\n",false,isIE);return _ee6;};AbstractRenderer.prototype.getCharactersPerLineForTextWrap=function(text,_ee8,_ee9){var tspn=document.createElement("span");this.cloneFontDetails(_ee8,tspn);tspn.innerHTML=text;tspn.style.position="absolute";tspn.style.zIndex=0;tspn.style.left="0px";tspn.style.top="0px";this.getContainer().appendChild(tspn);var _eeb=tspn.offsetWidth;var s=$("sorterview");var _eed=(s&&s.style.display!="none");if(_eeb==0&&presenter.sortSlides){var tdiv=s.getElementsByTagName("div")[0];tdiv.appendChild(tspn);_ee9=_ee9*(tdiv.offsetWidth/this.getViewCoordinates().width);_eeb=tspn.offsetWidth;}var _eef=text.length;var cpl=0;tspn.innerHTML="";var _ef1=Math.ceil(_eeb/_ee9);if(_ef1>1){while(tspn.offsetWidth<_ee9){tspn.innerHTML=text.substring(0,cpl++);}}else{cpl=_eef;tspn.innerHTML=text;}tspn.parentNode.removeChild(tspn);return cpl;};AbstractRenderer.prototype.getWrappedText=function(area,isIE){var _ef4=this.getFontDetailsForElement(area);return this.getWrappedTextValue(area.value,_ef4,area.clientWidth,isIE);};AbstractRenderer.prototype.getFontDetailsForElement=function(area){var _ef6=new Object();_ef6.fSize=area.style.fontSize;_ef6.fStyle=area.style.fontStyle;_ef6.fWeight=area.style.fontWeight;_ef6.fFamily=area.style.fontFamily;return _ef6;};$GET=function(url,_ef8,_ef9,fail,_efb){if(!_ef9){_ef9="";}if(!_ef8){_ef8=function(){};}var time=(new Date()).getTime();if(_ef9.length>0){_ef9+="&";}_ef9+=("DATE="+time);if(!fail){fail=$Fail;}var obj={method:"get",parameters:_ef9,onSuccess:_ef8,onFailure:fail,asynchronous:(Ajax.forceSynchronusMode)?!Ajax.forceSynchronusMode:!_efb};new Ajax.Request(url,obj);};function getCookie(_efe){var _eff=document.cookie.split(";");var _f00=false;for(i=0;i<_eff.length;i++){var _f01=_eff[i].split("=");var _f02=_f01[0].replace(/^\s+|\s+$/g,"");if(_f02==_efe){_f00=true;if(_f01.length>1){cookieValue=unescape(_f01[1].replace(/^\s+|\s+$/g,""));}return cookieValue;break;}}if(!_f00){return null;}}$POST=function(url,_f04,_f05,_f06,_f07){var _f08=undefined;if(!_f05){_f05=function(){};}if(!_f04){_f04=undefined;}else{_f08=new Array("Content-length",_f04.length);var time=(new Date()).getTime();if(_f04.length>0){_f04+="&";}_f04+=("DATE="+time+"&"+csrfParamName+"="+getCookie(csrfCookieName));}if(!_f06){_f06={method:$Fail,msg:{type:"alert"}};}var fail=function(resp){var _f0c=eval("["+resp.responseText+"]");if(_f0c[0]){if(_f0c[0].response&&_f0c[0].response.error){if(_f06.msg){if(_f06.msg.type=="inlinemsg"){Utils.showErrorMessage(_f06.msg.id,_f0c[0].response.error.message,3000);}else{if(_f06.msg.type=="alert"){alert(_f0c[0].response.error.message);}else{if(_f06.msg.type=="popup"){var _f0d=js_LangObj.AlertMessage;var _f0e=_f0c[0].response.error.message;var text=js_LangObj.OK;Utils.showAlertDialog(_f0d,_f0e,text,undefined,true);}}}}}}_f06.method(resp);};var obj={requestHeaders:_f08,postBody:_f04,onSuccess:_f05,onFailure:fail,asynchronous:(Ajax.forceSynchronusMode)?!Ajax.forceSynchronusMode:!_f07};new Ajax.Request(url,obj);};var $Fail=function(resp){};$MULTIPARTPOST=function(url,_f13,_f14,_f15,_f16){var _f17="zohoshow";var _f18="---------------"+_f17+Math.random();var req=Ajax.getTransport();req.onreadystatechange=function(){if(req.readyState==4){var m=(req.status==200)?_f15.success:_f15.fail;if(m){m(req.responseText);}}};if(_f15.onprogress){req.addEventListener("progress",_f15.onprogress,false);req.upload.addEventListener("progress",_f15.onprogress,false);}if(_f15.oncomplete){req.addEventListener("load",_f15.oncomplete,false);req.upload.addEventListener("load",_f15.oncomplete,false);}var _f1b="";_f1b+="\r\n--"+_f18;var _f1c="\r\n";if(!_f13){_f13=[];}_f13[_f13.length]=Ajax.getMultiPartParamObject(csrfParamName,getCookie(csrfCookieName));for(var i=0;i<_f13.length;i++){var _f1e=_f13[i];_f1c+=Ajax.getMultiPartParamStr(_f1e.name,encodeURIComponent(_f1e.value))+"\r\n--"+_f18+"\r\n";}_f1b+=_f1c;for(var i=0;i<_f14.length;i++){var file=_f14[i];_f1b+=Ajax.getMultiPartFileParamStr(file.pname,file);}_f1b+="\r\n--"+_f18+"--";req.open("POST",url,true);req.setRequestHeader("Content-Length",_f1b.length);req.setRequestHeader("Content-Type","multipart/form-data; charset: UTF-8; accept-charset: UTF-8; boundary="+_f18);req.setRequestHeader("Connection","close");req.sendAsBinary(_f1b);return req;};Ajax.getMultiPartFileParamStr=function(_f20,file){return "Content-Disposition: form-data; name=\""+_f20+"\"; filename=\""+file.fileName+"\""+"\r\n"+"Content-Type: application/octet-stream"+"\r\n"+"\r\n"+file.getAsBinary();};Ajax.getMultiPartParamStr=function(_f22,_f23){return "Content-Disposition: form-data; name=\""+_f22+"\"\r\n\r\n"+_f23;};Ajax.getMultiPartParamObject=function(_f24,_f25){return {"name":_f24,"value":_f25};};function FooterProps(){}FooterProps.init=function(){FooterProps.FOOTER_TEXTHTML="";FooterProps.FOOTER_TEXT="";FooterProps.FOOTER_SLIDE_NO="";FooterProps.FOOTER_DATE="";FooterProps.DATE_FORMAT="";FooterProps.FIXED=false;FooterProps.SEL_VALUE="";FooterProps.DATE_TEXT="";FooterProps.DATE_MODIFIED=false;FooterProps.FOOTER_SHOWON_FIRST_SLIDE=false;FooterProps.updateFooterProps(true,false);};FooterProps.updateFooter=function(){FooterProps.addFooter();Utils.closeDiv();var _f26="FOOTER_SLIDE_NO:"+FooterProps.FOOTER_SLIDE_NO+":FOOTER_SHOWON_FIRST_SLIDE:"+FooterProps.FOOTER_SHOWON_FIRST_SLIDE+":FOOTER_DATE:"+FooterProps.FOOTER_DATE+":FOOTER_TEXT:"+FooterProps.FOOTER_TEXT+":FOOTER_TEXTHTML:"+FooterProps.FOOTER_TEXTHTML+":DATE_FORMAT:"+FooterProps.DATE_FORMAT+":FIXED:"+ShowUtils.fixedDate+":DATE_TEXT:"+FooterProps.DATE_TEXT;ShareCollaboration.sendShareMessage("dateformat",undefined,_f26);};FooterProps.addFooter=function(){if(FooterProps.FOOTER_TEXTHTML!=""){FooterProps.addFooterObject("footerbox",false);if(FooterProps.FOOTER_SHOWON_FIRST_SLIDE){FooterProps.addFooterObject("footerbox",true);}else{FooterProps.removeFooterObject("footerbox",true);}}else{FooterProps.removeFooterObject("footerbox",false);FooterProps.removeFooterObject("footerbox",true);FooterProps.FOOTER_TEXTHTML="";FooterProps.FOOTER_TEXT="";}if(FooterProps.FOOTER_DATE!=""){FooterProps.addFooterObject("datebox",false);if(FooterProps.FOOTER_SHOWON_FIRST_SLIDE){FooterProps.addFooterObject("datebox",true);}else{FooterProps.removeFooterObject("datebox",true);}}else{FooterProps.removeFooterObject("datebox",false);FooterProps.removeFooterObject("datebox",true);FooterProps.FOOTER_DATE="";FooterProps.DATE_FORMAT="";}if(FooterProps.FOOTER_SLIDE_NO!=""){FooterProps.addFooterObject("slidenobox",false);if(FooterProps.FOOTER_SHOWON_FIRST_SLIDE){FooterProps.addFooterObject("slidenobox",true);}else{FooterProps.removeFooterObject("slidenobox",true);}}else{FooterProps.removeFooterObject("slidenobox",false);FooterProps.removeFooterObject("slidenobox",true);FooterProps.FOOTER_SLIDE_NO="";}presenter.documentModified();presenter.layoutModified=true;if(presenter.sortSlides){presenter.applyLayoutsToThumbNailDivs();}else{if(!presenter.slideBackGroundMode){presenter.constructSlideDiv(presenter.currentSlide);presenter.applyLayoutsToThumbNailDivs();}else{Presenter.THUMBNAIL_DIV.innerHTML="";presenter.showLayoutBackground("title");presenter.showLayoutBackground("slide");var _f27=$("slidediv");var _f28=_f27.LAYOUT_TYPE;if(_f28=="title"){presenter.constructLayoutDiv("title");}else{presenter.constructLayoutDiv("slide");}presenter.syncThumbNailView();}}};FooterProps.removeFooterBoxes=function(_f29,_f2a){if(FooterProps.FOOTER_TEXTHTML!=""){FooterProps.removeFooterBox("footerbox",_f29,_f2a);}if(FooterProps.FOOTER_DATE!=""){FooterProps.removeFooterBox("datebox",_f29,_f2a);}if(FooterProps.FOOTER_SLIDE_NO!=""){FooterProps.removeFooterBox("slidenobox",_f29,_f2a);}};FooterProps.removeFooterBox=function(_f2b,_f2c,_f2d){if(_f2d){var div=document.createElement("div");if(_f2c=="titlelayout"&&FooterProps.FOOTER_SHOWON_FIRST_SLIDE){div.innerHTML=presenter.titleLayout;}else{if(_f2c=="slidelayout"){div.innerHTML=presenter.slideLayout;}}var tmp=document.getElementsByClassName(_f2b,div);if(tmp.length>0){for(i=0;i<tmp.length;i++){node=tmp[i];var _f30=tmp[i].parentNode;_f30.removeChild(tmp[i]);break;}}if(_f2c=="titlelayout"&&FooterProps.FOOTER_SHOWON_FIRST_SLIDE){presenter.titleLayout=div.innerHTML;}else{if(_f2c=="slidelayout"){presenter.slideLayout=div.innerHTML;}}}else{var _f31=document.getElementsByClassName(_f2b,_f2c);if(_f31.length>0){for(i=0;i<_f31.length;i++){var _f32=_f31[i];_f32.parentNode.removeChild(_f32);}}}};FooterProps.getFooterBoxes=function(_f33){if(FooterProps.FOOTER_TEXTHTML!=""){_f33[_f33.length]=SlideObject.getFooterObject("footerbox",FooterProps.FOOTER_TEXTHTML);}if(FooterProps.FOOTER_DATE!=""){var _f34=FooterProps.getFooterObject("datebox",false);_f33[_f33.length]=SlideObject.getFooterObject("datebox",_f34);}if(FooterProps.FOOTER_SLIDE_NO!=""){_f33[_f33.length]=SlideObject.getFooterObject("slidenobox",FooterProps.FOOTER_SLIDE_NO);}return _f33;};FooterProps.getFooterBoxesClassName=function(){var _f35=[];if(FooterProps.FOOTER_TEXTHTML!=""){_f35[_f35.length]="footerbox";}if(FooterProps.FOOTER_DATE!=""){_f35[_f35.length]="datebox";}if(FooterProps.FOOTER_SLIDE_NO!=""){_f35[_f35.length]="slidenobox";}return _f35;};FooterProps.addFooterObject=function(_f36,_f37){var _f38=Utils.createElement("div");if(!_f37){_f38.innerHTML=presenter.slideLayout;}else{_f38.innerHTML=presenter.titleLayout;}var _f39=document.getElementsByClassName(_f36,_f38);if(_f36=="footerbox"&&_f39.length>0){var _f3a=FooterProps.getFooterObject(_f36,_f37);FooterProps.FOOTER_TEXT=FooterProps.FOOTER_TEXTHTML;if(_f3a!=""&&_f3a!=FooterProps.FOOTER_TEXTHTML){FooterProps.removeFooterObject(_f36,_f37);FooterProps.addFooterObject(_f36,_f37);}}if(_f36=="datebox"&&_f39.length>0){var _f3a=FooterProps.getFooterObject(_f36,_f37);FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;if(_f3a!=""&&_f3a!=FooterProps.DATE_FORMAT){FooterProps.removeFooterObject(_f36,_f37);FooterProps.addFooterObject(_f36,_f37);}}if(_f39.length<=0){var _f3b;if(_f36=="footerbox"){_f3b=SlideObject.getFooterObject("footerbox",FooterProps.FOOTER_TEXTHTML);}else{if(_f36=="slidenobox"){_f3b=SlideObject.getFooterObject("slidenobox",FooterProps.FOOTER_SLIDE_NO);}else{if(_f36=="datebox"){_f3b=SlideObject.getFooterObject("datebox",FooterProps.FOOTER_DATE);}}}var _f3c=_f38.getElementsByTagName("div");for(i=0;i<_f3c.length;i++){if(_f3c[i].className.indexOf("layout")!=-1){layoutNode=_f3c[i];break;}}_f3b.style.zIndex=101;layoutNode.appendChild(_f3b);var sObj=new SlideObject(_f3b);if(presenter.slideBackGroundMode){sObj.init({BOX_ELEMENT:_f3b});}else{sObj.init({BOX_ELEMENT:_f3b});}presenter.slideObjects[presenter.slideObjects.length]=sObj;if(!_f37){presenter.slideLayout=_f38.innerHTML;}else{presenter.titleLayout=_f38.innerHTML;}}};FooterProps.removeFooterObject=function(_f3e,_f3f){var _f40=Utils.createElement("div");if(!_f3f){_f40.innerHTML=presenter.slideLayout;}else{_f40.innerHTML=presenter.titleLayout;}var tmp=document.getElementsByClassName(_f3e,_f40);if(tmp.length>0){for(i=0;i<tmp.length;i++){var _f42=tmp[i].parentNode;_f42.removeChild(tmp[i]);break;}}if(!_f3f){presenter.slideLayout=_f40.innerHTML;}else{presenter.titleLayout=_f40.innerHTML;}};FooterProps.updateFooterProps=function(_f43,_f44){FooterProps.FOOTER_TEXTHTML=FooterProps.getFooterObject("footerbox",_f44);FooterProps.FOOTER_SLIDE_NO=FooterProps.getFooterObject("slidenobox",_f44);FooterProps.FOOTER_DATE=FooterProps.getFooterObject("datebox",_f44);if(_f43){var div=document.createElement("div");div.innerHTML=presenter.titleLayout;if(FooterProps.FOOTER_TEXTHTML!=""){var _f46=document.getElementsByClassName("footerbox",div);if(_f46.length>0){FooterProps.FOOTER_SHOWON_FIRST_SLIDE=true;}}else{if(FooterProps.FOOTER_SLIDE_NO!=""&&!FooterProps.FOOTER_SHOWON_FIRST_SLIDE){var _f47=document.getElementsByClassName("slidenobox",div);if(_f47.length>0){FooterProps.FOOTER_SHOWON_FIRST_SLIDE=true;}}else{if(FooterProps.FOOTER_DATE!=""&&!FooterProps.FOOTER_SHOWON_FIRST_SLIDE){var _f48=document.getElementsByClassName("datebox",div);if(_f48.length>0){FooterProps.FOOTER_SHOWON_FIRST_SLIDE=true;}}}}}};FooterProps.getFooterObject=function(_f49,_f4a){var _f4b;var div=document.createElement("div");if(_f4a){div.innerHTML=presenter.titleLayout;}else{div.innerHTML=presenter.slideLayout;}_f4b=document.getElementsByClassName(_f49,div);if(_f4b.length>0){var d=_f4b[0];var _f4e=d.getAttribute("format");var eles=d.getElementsByTagName("*");for(var k=0;k<eles.length;k++){var _f51=eles[k];if(_f51.id==="editable"){if(_f49=="footerbox"){FooterProps.FOOTER_TEXT=Utils.getText(_f51);}if(_f49=="datebox"){if(_f4e!=null){FooterProps.FOOTER_DATE=_f4e;}else{FooterProps.FOOTER_DATE=Utils.getText(_f51);}return (FooterProps.FOOTER_DATE);}return _f51.innerHTML;}}}else{return "";}};FooterProps.updateFooterText=function(){if(Utils.trim($F("footerText")).length>0){FooterProps.FOOTER_TEXT=FooterProps.FOOTER_TEXTHTML=Utils.trim($F("footerText"));}else{FooterProps.FOOTER_TEXTHTML="";FooterProps.FOOTER_TEXT="";}};FooterProps.updateFooterDate=function(){if(($("footerdate").checked)){if($("variable").checked==true&&$("footerdate").checked==true){$("fixed").checked=false;FooterProps.DATE_MODIFIED=true;ShowUtils.fixedDate=false;FooterProps.FIXED=false;ShowUtils.selectedIndex=$("sel").selectedIndex;FooterProps.SEL_VALUE=$("sel").options[$("sel").selectedIndex].text;FooterProps.DATE_FORMAT=$("sel").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;}else{if($("fixed").checked==true&&$("footerdate").checked==true){$("variable").checked=false;FooterProps.DATE_MODIFIED=true;ShowUtils.fixedDate=true;FooterProps.FIXED=true;FooterProps.DATE_TEXT=$("txt").value;FooterProps.DATE_FORMAT=$("txt").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;}}}else{FooterProps.DATE_FORMAT="";FooterProps.FOOTER_DATE="";}};FooterProps.updateFooterSlideNo=function(){if($("slideNum").checked){FooterProps.FOOTER_SLIDE_NO="#slide#";}else{FooterProps.FOOTER_SLIDE_NO="";}};FooterProps.updateShowOnFirstSlide=function(){if($("titleSlideFooter").checked){FooterProps.FOOTER_SHOWON_FIRST_SLIDE=true;}else{FooterProps.FOOTER_SHOWON_FIRST_SLIDE=false;}};FooterProps.updateFooterTextStatus=function(){if(!($("footerTextStatus").checked)){FooterProps.FOOTER_TEXTHTML="";FooterProps.FOOTER_TEXT="";}};FooterProps.updateFooterDateStatus=function(){if(!($("footerdate").checked)){$("variable").checked=false;$("variable").disabled=true;$("fixed").checked=false;$("fixed").disabled=true;$("sel").disabled="disabled";$("txt").disabled="disabled";FooterProps.FOOTER_DATE="";FooterProps.DATE_FORMAT="";}else{$("variable").disabled=false;$("fixed").disabled=false;$("sel").disabled="";FooterProps.DATE_FORMAT=$("sel").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;$("variable").checked=true;ShowUtils.fixedDate=false;}};FooterProps.CheckDate=function(id){if($("footerdate").checked){var ele=document.getElementsByTagName("input");for(i=0;i<ele.length;i++){if(ele[i].type=="radio"){if(id==ele[i].id){ele[i].checked=true;if(id=="fixed"){FooterProps.DATE_FORMAT=$F("txt");FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;ShowUtils.fixedDate=true;document.getElementById("txt").disabled="";document.getElementById("sel").disabled="disabled";}else{FooterProps.DATE_FORMAT=$("sel").value;FooterProps.FOOTER_DATE=FooterProps.DATE_FORMAT;ShowUtils.fixedDate=false;document.getElementById("sel").disabled="";document.getElementById("txt").disabled="disabled";}}else{ele[i].checked=false;FooterProps.FOOTER_DATE="";FooterProps.DATE_FORMAT="";}}}}};function FormatDate(){}FormatDate.MONTH_DATE_YEAR=1;FormatDate.DAY_ALPHABETMONTH_DATE_FULLYEAR=2;FormatDate.ALPHABETMONTH_DATE_FULLYEAR=3;FormatDate.ALPHAMONTH_DATE_YEAR=4;FormatDate.ALPHAMONTH_YEAR=5;FormatDate.DATE_ALPHAMONTH_YEAR=6;FormatDate.DATE_ALPHABETMONTH_FULLYEAR=7;FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_AMPM=8;FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_SECOND_AMPM=9;FormatDate.HOUR_MINUTE=10;FormatDate.HOUR_MINUTE_AMPM=11;FormatDate.HOUR_MINUTE_SECOND=12;FormatDate.HOUR_MINUTE_SECOND_AMPM=13;FormatDate.FULLYEAR_MONTH_DATE=14;FormatDate.JPFULLYEAR_JPMONTH_JPDATE=15;FormatDate.MONTH_DATE_YEAR_PATTERN="#dd/mm/yy#";FormatDate.DAY_ALPHABETMONTH_DATE_FULLYEAR_PATTERN="#EEEE, mmmm dd, yyyy#";FormatDate.ALPHABETMONTH_DATE_FULLYEAR_PATTERN="#mmmm dd, yyyy#";FormatDate.ALPHAMONTH_DATE_YEAR_PATTERN="#mmm dd, yyyy#";FormatDate.DATE_ALPHABETMONTH_FULLYEAR_PATTERN="#dd mmmm yyyy#";FormatDate.DATE_ALPHAMONTH_YEAR_PATTERN="#dd-mmm-yy#";FormatDate.ALPHAMONTH_YEAR_PATTERN="#mmm yy#";FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_AMPM_PATTERN="#mm/dd/yy hh:MM AP#";FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_SECOND_AMPM_PATTERN="#mm/dd/yy hh:MM:ss AP#";FormatDate.HOUR_MINUTE_PATTERN="#hh:MM#";FormatDate.HOUR_MINUTE_AMPM_PATTERN="#hh:MM AP#";FormatDate.HOUR_MINUTE_SECOND_PATTERN="#hh:MM:ss#";FormatDate.HOUR_MINUTE_SECOND_AMPM_PATTERN="#hh:MM:ss AP#";FormatDate.FULLYEAR_MONTH_DATE_PATTERN="#yyyy/mm/dd#";FormatDate.JPFULLYEAR_JPMONTH_JPDATE_PATTERN="#yyyy"+js_LangObj.year+"mm"+js_LangObj.month+"dd"+js_LangObj.date+"#";FormatDate.checkampm=function(_f54){if(_f54<12){ampm=js_LangObj.AM;}else{ampm=js_LangObj.PM;}return ampm;};FormatDate.checkTime=function(t){if(t<10){t="0"+t;}return t;};FormatDate.getPattern=function(_f56){switch(_f56){case FormatDate.MONTH_DATE_YEAR:return FormatDate.MONTH_DATE_YEAR_PATTERN;case FormatDate.DAY_ALPHABETMONTH_DATE_FULLYEAR:return FormatDate.DAY_ALPHABETMONTH_DATE_FULLYEAR_PATTERN;case FormatDate.ALPHABETMONTH_DATE_FULLYEAR:return FormatDate.ALPHABETMONTH_DATE_FULLYEAR_PATTERN;case FormatDate.ALPHAMONTH_DATE_YEAR:return FormatDate.ALPHAMONTH_DATE_YEAR_PATTERN;case FormatDate.DATE_ALPHABETMONTH_FULLYEAR:return FormatDate.DATE_ALPHABETMONTH_FULLYEAR_PATTERN;case FormatDate.DATE_ALPHAMONTH_YEAR:return FormatDate.DATE_ALPHAMONTH_YEAR_PATTERN;case FormatDate.ALPHAMONTH_YEAR:return FormatDate.ALPHAMONTH_YEAR_PATTERN;case FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_AMPM:return FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_AMPM_PATTERN;case FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_SECOND_AMPM:return FormatDate.MONTH_DATE_YEAR_HOUR_MINUTE_SECOND_AMPM_PATTERN;case FormatDate.HOUR_MINUTE:return FormatDate.HOUR_MINUTE_PATTERN;case FormatDate.HOUR_MINUTE_AMPM:return FormatDate.HOUR_MINUTE_AMPM_PATTERN;case FormatDate.HOUR_MINUTE_SECOND:return FormatDate.HOUR_MINUTE_SECOND_PATTERN;case FormatDate.HOUR_MINUTE_SECOND_AMPM:return FormatDate.HOUR_MINUTE_SECOND_AMPM_PATTERN;case FormatDate.FULLYEAR_MONTH_DATE:return FormatDate.FULLYEAR_MONTH_DATE_PATTERN;case FormatDate.JPFULLYEAR_JPMONTH_JPDATE:return FormatDate.JPFULLYEAR_JPMONTH_JPDATE_PATTERN;}};FormatDate.formatDate=function(ft){if(!ft){ft=FormatDate.MONTH_DATE_YEAR_PATTERN;}var dt,dte,_f5a,_f5b,_f5c,_f5d,_f5e,_f5f,_f60,_f61,hour,_f63,_f64,ampm;dt=new Date();day=new Array(js_LangObj.Sunday,js_LangObj.Monday,js_LangObj.Tuesday,js_LangObj.Wednesday,js_LangObj.Thursday,js_LangObj.Friday,js_LangObj.Saturday);mon=new Array(js_LangObj.January,js_LangObj.February,js_LangObj.March,js_LangObj.April,js_LangObj.May,js_LangObj.June,js_LangObj.July,js_LangObj.August,js_LangObj.September,js_LangObj.October,js_LangObj.November,js_LangObj.December);halfmon=new Array(js_LangObj.Jan,js_LangObj.Feb,js_LangObj.Mar,js_LangObj.Apr,js_LangObj.May,js_LangObj.Jun,js_LangObj.Jul,js_LangObj.Aug,js_LangObj.Sep,js_LangObj.Oct,js_LangObj.Nov,js_LangObj.Dec);dte=dt.getDate();_f5a=(dt.getMonth()+1);_f5b=halfmon[dt.getMonth()];_f5c=mon[dt.getMonth()];_f5d="";if(isIE){_f5d="0"+(dt.getYear()-2000);}else{_f5d="0"+(dt.getYear()-100);}_f5e=dt.getFullYear();_f5f=day[dt.getDay()].substring(0,3);_f60=day[dt.getDay()];fullhour=dt.getHours();hour=((fullhour)%12);if(hour==0){hour=12;}_f63=(dt.getMinutes())%60;_f64=dt.getSeconds();ampm=FormatDate.checkampm(fullhour);hour=FormatDate.checkTime(hour);_f63=FormatDate.checkTime(_f63);_f64=FormatDate.checkTime(_f64);dte=FormatDate.checkTime(dte);_f5a=FormatDate.checkTime(_f5a);var _f66=new Array("/",";",":",","," ","-",js_LangObj.year,js_LangObj.month,js_LangObj.date);var _f67=new Array();var _f68="";var _f69=" ";var _f6a=0;var out="";var add="";var temp="";var pos=0;var _f6f=new Array("dd","mm","mmm","mmmm","yy","yyyy","EEE","EEEE","hh","MM","ss","AP","");var time=new Array(dte,_f5a,_f5b,_f5c,_f5d,_f5e,_f5f,_f60,hour,_f63,_f64,ampm,_f69);ft=ft.replace("#","");var _f71=ft.replace("#","");for(i=0;i<=_f71.length;i++){for(j=0;j<_f66.length;j++){if(_f71.charAt(i)==_f66[j]){_f67[_f6a]=_f66[j];ans=_f71.replace(_f71.charAt(_f71.indexOf(_f66[j])),"/");_f71=ans;_f6a++;}}}splitted=_f71.split("/");for(i=0;i<splitted.length;i++){for(j=0;j<_f6f.length;j++){if(splitted[i]==_f6f[j]){if(i!=splitted.length-1){_f68=_f68+time[j]+_f67[i];}else{_f68=_f68+time[j];}}}}return _f68;};