﻿function LoadSld(){var a=GetObj("SlideObj");if(!g_supportsPPTHTML){a.style.visibility="visible";return}if(MakeNotesVis())return;runAnimations=_InitAnimations();if(IsWin("PPTSld"))parent.SldUpdated(GetSldId());g_origSz=parseInt(SlideObj.style.fontSize);g_origH=a.style.posHeight;g_origW=a.style.posWidth;g_scaleHyperlinks=document.all.tags("AREA").length>0;if(g_scaleHyperlinks)InitHLinkArray();if(g_scaleInFrame||IsWin("PPTSld")&&parent.IsFullScrMode())document.body.scroll="no";_RSW();if(IsWin("PPTSld")&&parent.IsFullScrMode())FullScrInit();MakeSldVis();ChkAutoAdv();if(runAnimations){if(document.all("NSPlay"))document.all("NSPlay").autoStart=false;if(a.filters&&a.filters.revealtrans)setTimeout("document.body.start()",a.filters.revealtrans.duration*1e3);else document.body.start()}}function MakeSldVis(){var a=g_showAnimation&&SldHasTrans();if(a){if(g_bgSound){idx=g_bgSound.indexOf(",");pptSound.src=g_bgSound.substr(0,idx);pptSound.loop=-parseInt(g_bgSound.substr(idx+1))}SlideObj.filters.revealtrans.Apply()}SlideObj.style.visibility="visible";if(a)SlideObj.filters.revealtrans.Play()}function MakeNotesVis(){if(!IsNts())return false;SlideObj.style.display="none";nObj=document.all.item("NotesObj");parent.SetHasNts(0);if(nObj){nObj.style.display="";parent.SetHasNts(1)}return 1}function ChkAutoAdv(){if(SldHasTrans())SlideObj.onfilterchange=AutoAdv;else AutoAdv()}function AutoAdv(){if(!IsWin("PPTSld")||!gUseSldTimings)return;var a=GetCurSld();if(a.mAdvDelay>0&&!parent.IsFramesMode())setTimeout("parent.GoToNextSld()",a.mAdvDelay)}function GetObj(a){if(g_supportsPPTHTML)return document.all(a);else return document.getElementById(a)}function SldHasTrans(){return SlideObj.style.filter!=""}function GetSldId(){return sId=location.href.substring(location.href.lastIndexOf("/")+1)}function HideMenu(){if(frames["PPTSld"]&&PPTSld.document.all.item("ctxtmenu")&&PPTSld.ctxtmenu.style.display!="none"){PPTSld.ctxtmenu.style.display="none";return true}return false}function IsWin(a){return window.name==a}function IsNts(){return IsWin("PPTNts")}function IsSldOrNts(){return IsWin("PPTSld")||IsWin("PPTNts")}function SupportsPPTAnimation(){return navigator.platform=="Win32"&&navigator.appVersion.indexOf("Windows")>0}function SupportsPPTHTML(){var a=navigator.appVersion,b=a.indexOf("MSIE "),c=0;if(b>=0)c=parseFloat(a.substring(b+5,a.indexOf(";",b)));else c=parseInt(a);return c>=4&&b>=0}function _RSW(){if(!g_supportsPPTHTML||IsNts()||!g_scaleInFrame&&(!IsWin("PPTSld")||!parent.IsFullScrMode()))return;var a=0;if(IsWin("PPTSld")&&parent.IsFramesMode())a=6;cltWidth=document.body.clientWidth-a;cltHeight=document.body.clientHeight-a;factor=1*cltWidth/g_origW;if(cltHeight<g_origH*factor)factor=1*cltHeight/g_origH;newSize=g_origSz*factor;if(newSize<1)newSize=1;s=SlideObj.style;s.fontSize=newSize+"px";s.posWidth=g_origW*factor;s.posHeight=g_origH*factor;s.posLeft=(cltWidth-s.posWidth+a)/2;s.posTop=(cltHeight-s.posHeight+a)/2;if(g_scaleHyperlinks)ScaleHyperlinks(factor)}function _InitAnimations(){animRuntimeInstalled=""+document.body.localTime!="undefined";isFullScreen=window.name=="PPTSld"&&!parent.IsFramesMode();g_animUseRuntime=g_showAnimation&&animRuntimeInstalled&&!(isFullScreen&&parent.IsSldVisited());if(g_animUseRuntime){collSeq=document.all.tags("seq");if(collSeq!=null)for(ii=0;ii<collSeq.length;ii++)if(collSeq[ii].getAttribute("p:nodeType")=="mainSeq"){g_animMainSequence=collSeq[ii];break}if(g_animItemsToHide&&document.body.playAnimations!=false)for(jj=0;jj<g_animItemsToHide.length;jj++)if(hideObj=GetObj(g_animItemsToHide[jj]))hideObj.runtimeStyle.visibility="hidden";if(g_animInteractiveItems)for(jj=0;jj<g_animInteractiveItems.length;jj++)if(triggerObj=GetObj(g_animInteractiveItems[jj]))triggerObj.runtimeStyle.cursor="hand";if(gUseSldTimings&&""+g_animSlideTime!="undefined"){adjustedTime=document.body.calculateAutoAdvanceTimes(g_animSlideTime,g_animEffectTimings);if(IsWin("PPTSld")&&adjustedTime!=g_animSlideTime){var a=GetCurSld();a.mAdvDelay=adjustedTime*1e3}}}return g_animUseRuntime}gSldJump=0,gSldJumpTrack=0,gSldJumpIdx="";function _KPH(){if(IsNts())return;if(!parent.IsFramesMode()&&event.keyCode==27&&!HideMenu())parent.window.close(self);else if(event.keyCode==32)if(window.name=="PPTSld")parent.PPTSld.DocumentOnClick();else parent.GoToNextSld();CatchNumKeys(parent,event)}function CatchNumKeys(b,a){if(b.IsFullScrMode()&&48<=a.keyCode&&a.keyCode<=57){gSldJump=1;gSldJumpIdx+=(a.keyCode-48).toString()}if(b.IsFullScrMode()&&gSldJump&&a.keyCode==13){var c=parent.GetSldList().mList.length;if(gSldJumpIdx>c)gSldJumpIdx=c;if(gSldJumpIdx>=0){if(gSldJumpIdx==0)gSldJumpIdx=1;var d=parseInt(gSldJumpIdx);gSldJump=0;gSldJumpIdx="";b.GoToSld(parent.GetSldList().mList[d-1].mSldHref)}}}function _KDH(){if(event.keyCode==8){event.returnValue=0;parent.GoToPrevSld()}}function DocumentOnClick(){if(IsNts()||parent.HideMenu())return;if(g_allowAdvOnClick&&!parent.IsFramesMode()||event&&event.keyCode==32)parent.GoToNextSld()}var g_supportsPPTHTML=SupportsPPTHTML(),g_scaleInFrame=1,gId="",g_bgSound="",g_scaleHyperlinks=false,g_allowAdvOnClick=1,g_showInBrowser=0,gLoopCont=0,gUseSldTimings=1,g_showAnimation=g_supportsPPTHTML&&SupportsPPTAnimation()&&(window.name=="PPTSld"&&!parent.IsFramesMode()||g_showInBrowser),g_animManager=null,g_animUseRuntime=false,g_animItemsToHide,g_animInteractiveItems,g_animSlideTime,g_animMainSequence=null,ENDSHOW_MESG="End of slide show, click to exit.",SCREEN_MODE="Frames",gIsEndShow=0,NUM_VIS_SLDS=12,SCRIPT_HREF="script.js",FULLSCR_HREF="fullscreen.htm",gCurSld=gPrevSld=1,g_offset=0,gNtsOpen=gHasNts=gOtlTxtExp=0,gHasNarration=0,gOtlOpen=true;window.gPPTHTML=SupportsPPTHTML();var gMainDoc=[new hrefList("slide0001.htm",1,-1,1),new hrefList("slide0013.htm",1,-1,1),new hrefList("slide0011.htm",1,-1,1),new hrefList("slide0012.htm",1,-1,1),new hrefList("slide0003.htm",1,-1,1),new hrefList("slide0004.htm",1,-1,1),new hrefList("slide0008.htm",1,-1,1),new hrefList("slide0005.htm",1,-1,1),new hrefList("slide0006.htm",1,-1,1),new hrefList("slide0007.htm",1,-1,1),new hrefList("slide0010.htm",1,-1,1),new hrefList("slide0014.htm",1,-1,1)];function FullScrInit(){g_allowAdvOnClick=GetCurSld().mAdvOnClk;document.body.style.backgroundColor="black";document.oncontextmenu=parent._CM;document.onkeydown=_KDH;document.ondragstart=Cancel;document.onselectstart=Cancel;self.focus()}function Redirect(c){var a=document.location.hash,d=a.indexOf("#"),b=GetSldId();if(d>=0)a=a.substr(1);if(window.name!=c&&b!=a){obj=GetObj("Main-File");window.location.href=obj.href+"#"+b;return 1}return 0}var MHTMLPrefix=CalculateMHTMLPrefix();function CalculateMHTMLPrefix(){if(document.location.protocol=="mhtml:"){href=new String(document.location.href);Start=href.indexOf("!")+1;End=href.lastIndexOf("/")+1;if(End<Start)return href.substring(0,Start);else return href.substring(0,End)}return ""}function GetTags(a,b){if(g_supportsPPTHTML)return a.all.tags(b);else return a.getElementsByTagName(b)}function UpdNtsPane(){if(frames["PPTNts"])PPTNts.location.replace(MHTMLPrefix+GetHrefObj(gCurSld).mNtsHref)}function UpdNavPane(){if(gNavLoaded)PPTNav.UpdNav()}function UpdOtNavPane(){if(gOtlNavLoaded)PPTOtlNav.UpdOtlNav()}function UpdOtlPane(){if(gOtlLoaded)PPTOtl.UpdOtl()}function SetHasNts(a){if(gHasNts!=a){gHasNts=a;UpdNavPane()}}function ToggleOtlText(){gOtlTxtExp=!gOtlTxtExp;UpdOtlPane()}function ClearMedia(){if(PPTSld.pptSound)PPTSld.pptSound.loop=0}function FullScreen(){if(PPTSld.g_animUseRuntime)PPTSld.document.body.pause();ClearMedia();var a=document.location.protocol=="mhtml:"?FULLSCR_HREF:FULLSCR_HREF+"#"+GetHrefObj(gCurSld).mSldHref;if(PPTNav.event.ctrlKey){var b=window.screen.availWidth*1/2,c=b*(PPTSld.g_origH*1)/PPTSld.g_origW;win=window.open(MHTMLPrefix+a,null,"toolbar=0,resizable=1,top=0,left=0,width="+b+",height="+c);if(win.document.body&&PPTSld.g_animUseRuntime)win.document.body.PPTSldFrameset=window}else{win=window.open(MHTMLPrefix+a,null,"fullscreen=yes");if(win.document.body&&PPTSld.g_animUseRuntime)win.document.body.PPTSldFrameset=window}}function ToggleVNarration(){rObj=PPTSld.document.all("NSPlay");if(rObj&&!PPTSld.g_animUseRuntime)if(rObj.playState==1||rObj.playState==0)rObj.Play();else if(rObj.playState==2)rObj.Pause();else return;else if(PPTSld.g_animUseRuntime){narObj=PPTSld.document.all("narrationID");if(narObj)narObj.togglePause()}}function GetCurSldNum(){obj=GetHrefObj(gCurSld);if(obj.mOrigVis==1)return obj.mSldIdx;else return gCurSld}function GetNumSlds(){if(GetHrefObj(gCurSld).mOrigVis==1)return GetSldList().mNumVisSlds;else return GetSldList().mList.length}function GetSldNum(a){for(ii=0;ii<GetSldList().mList.length;ii++)if(GetSldList().mList[ii].mSldHref==a)return ii+1;return 1}function GetHrefObj(a){return GetSldList().mList[a-1]}function IsFramesMode(){return SCREEN_MODE=="Frames"}function IsFullScrMode(){return SCREEN_MODE=="FullScreen"}function GoToNextSld(){ii=gCurSld+1;if(GetHrefObj(ii-1).mOrigVis==0){if(ii<=GetSldList().mList.length){obj=GetHrefObj(ii);obj.mVis=1;GoToSldNum(ii);return}}else{obj=GetHrefObj(ii);while(obj&&obj.mOrigVis==0)obj=GetHrefObj(++ii);if(obj&&obj.mOrigVis){GoToSldNum(ii);return}}if(gSldStack.length>1)PopSldList();else if(!IsFramesMode())if(gLoopCont)GoToFirst();else EndShow()}function GoToPrevSld(){ii=gCurSld-1;if(ii>0){obj=GetHrefObj(ii);while(obj&&obj.mVis==0&&ii>0)obj=GetHrefObj(--ii);if(ii==0)ii=1;GoToSldNum(ii)}}function GoToFirst(){GoToSld(GetHrefObj(1).mSldHref)}function GoToLast(){ii=GetSldList().mList.length;if(ii!=gCurSld)GoToSld(GetHrefObj(ii).mSldHref)}function GoToSldNum(a){if(PPTSld.event)PPTSld.event.cancelBubble=true;obj=GetHrefObj(a);obj.mVis=1;gPrevSld=gCurSld;gCurSld=a;PPTSld.location.replace(MHTMLPrefix+obj.mSldHref);if(IsFramesMode()){UpdNavPane();UpdOtlPane();UpdNtsPane()}}function GoToSld(a){if(PPTSld.event)PPTSld.event.cancelBubble=true;GetHrefObj(GetSldNum(a)).mVis=1;PPTSld.location.replace(MHTMLPrefix+a)}function SldUpdated(a){if(a==GetHrefObj(gCurSld).mSldHref)return;gPrevSld=gCurSld;gCurSld=GetSldNum(a);if(IsFramesMode()){UpdNavPane();UpdOtlPane();UpdNtsPane()}}function PrevSldViewed(){GoToSld(GetHrefObj(gPrevSld).mSldHref)}function HasPrevSld(){return gIsEndShow||gCurSld!=1&&GetHrefObj(gCurSld-1).mVis==1||GetCurSldNum()>1}function HasNextSld(){return GetCurSldNum()!=GetNumSlds()}function CloseWindow(){if(HideMenu())return;var a=PPTSld.event;if(!IsFramesMode()&&a&&(a.keyCode==27||a.keyCode==32||a.type=="click"))window.close(self);CatchNumKeys(self,a)}function Unload(){gIsEndShow=0}function SetupEndShow(){gIsEndShow=1;PPTSld.document.body.scroll="no";PPTSld.document.onkeypress=CloseWindow;PPTSld.document.onclick=CloseWindow;PPTSld.document.oncontextmenu=_CM}function EndShow(){if(IsFramesMode())return;if(PPTSld.event)PPTSld.event.cancelBubble=true;doc=PPTSld.document;var a=doc.body.dir;if(a!="rtl")a="ltr";doc.open();doc.writeln("<html><body dir="+a+" bgcolor=black onload=parent.SetupEndShow() onunload=parent.Unload()><center><p><font face=Tahoma color=white size=2><br><b>"+ENDSHOW_MESG+"</b></font></p></center></body></html>");doc.close()}function SetSldVisited(){GetSldList().mList[gCurSld-1].mVisited=true}function IsSldVisited(){return GetSldList().mList[gCurSld-1].mVisited}function hrefList(b,c,a,d){this.mSldHref=this.mNtsHref=b;this.mOrigVis=this.mVis=c;this.mVisited=false;this.mAdvDelay=a;this.mAdvOnClk=d}function SldList(a,c,d){this.mCurSld=c;this.mList=[];var b=1;for(ii=0;ii<a.length;ii++){this.mList[ii]=new hrefList(a[ii].mSldHref,a[ii].mOrigVis,a[ii].mAdvDelay,a[ii].mAdvOnClk);if(a[ii].mOrigVis)this.mList[ii].mSldIdx=b++}this.mNumVisSlds=b-1;this.fEndShow=d}function GetSldList(){return gSldStack[gSldStack.length-1]}function GetCurSld(){return parent.GetSldList().mList[parent.gCurSld-1]}gSldStack=[];gSldStack[0]=new SldList(gMainDoc,gCurSld,1);function ToggleOtlPane(){frmset=document.all("PPTHorizAdjust");frm=document.all("PPTOtl");if(gOtlOpen)frmset.cols="*,100%";else frmset.cols="25%,*";gOtlOpen=!gOtlOpen;frm.noResize=!frm.noResize;UpdOtNavPane()}function ToggleNtsPane(){frmset=document.all("PPTVertAdjust");frm=document.all("PPTNts");if(gNtsOpen)frmset.rows="100%,*";else frmset.rows="*,20%";gNtsOpen=!gNtsOpen;UpdNtsPane()}function ViewCustomShow(d,c){if(!IsFullScrMode())return;var b=[],a=custShowList[d-1],e=0;for(ii=0;ii<a.length;ii++)if(a[ii]<=gMainDoc.length)b[e++]=gMainDoc[a[ii]-1];if(b.length>0){PushSldList(b,c);gCurSld=1}else if(PPTSld.event)PPTSld.event.cancelBubble=true}function PushSldList(c,b){var a=gSldStack.length;gSldStack[a]=new SldList(c,gCurSld,b);GoToSld(gSldStack[a].mList[0].mSldHref)}function PopSldList(){if(gSldStack[gSldStack.length-1].fEndShow)EndShow();else{gCurSld=gSldStack[gSldStack.length-1].mCurSld;gSldStack[gSldStack.length-1]=null;gSldStack.length--;var a=gSldStack[gSldStack.length-1];GoToSld(a.mList[gCurSld-1].mSldHref)}}var custShowList=[];function ImgBtn(d,c,e,b){var a=this;a.Perform=_IBP;a.SetActive=_IBSetA;a.SetInactive=_IBSetI;a.SetPressed=_IBSetP;a.SetDisabled=_IBSetD;a.Enabled=_IBSetE;a.ChangeIcon=null;a.UserAction=b;a.ChgState=_IBUI;a.mObjId=d;a.mBorderId=c;a.mWidth=e;a.mIsOn=a.mCurState=0}function _IBSetA(){if(this.mIsOn){obj=this.ChgState(gHiliteClr,gShadowClr,2);obj.style.posTop=0}}function _IBSetI(){if(this.mIsOn){obj=this.ChgState(gFaceClr,gFaceClr,1);obj.style.posTop=0}}function _IBSetP(){if(this.mIsOn){obj=this.ChgState(gShadowClr,gHiliteClr,2);obj.style.posLeft+=1;obj.style.posTop+=1}}function _IBSetD(){obj=this.ChgState(gFaceClr,gFaceClr,0);obj.style.posTop=0}function _IBSetE(b){var a=this;GetObj(a.mBorderId).style.visibility="visible";if(b!=a.mIsOn){a.mIsOn=b;if(b)a.SetInactive();else a.SetDisabled()}}function _IBP(){var a=this;if(a.mIsOn){if(a.UserAction!=null)a.UserAction();if(a.ChangeIcon){obj=GetObj(a.mObjId);if(a.ChangeIcon())obj.style.posLeft=obj.style.posLeft+(a.mCurState-4)*a.mWidth;else obj.style.posLeft=obj.style.posLeft+(a.mCurState-0)*a.mWidth}a.SetActive()}}function _IBUI(c,d,b){var a=this;SetBorder(GetObj(a.mBorderId),c,d);obj=GetObj(a.mObjId);obj.style.posLeft=obj.style.posLeft+(a.mCurState-b)*a.mWidth-obj.style.posTop;a.mCurState=b;return obj}function TxtBtn(e,d,c,b){var a=this;a.Perform=_TBP;a.SetActive=_TBSetA;a.SetInactive=_TBSetI;a.SetPressed=_TBSetP;a.SetDisabled=_TBSetD;a.SetEnabled=_TBSetE;a.GetState=b;a.UserAction=c;a.ChgState=_TBUI;a.mObjId=e;a.m_elementsId=d;a.mIsOn=1}function _TBSetA(){var a=this;if(a.mIsOn&&!a.GetState())a.ChgState(gHiliteClr,gShadowClr,0,0)}function _TBSetI(){var a=this;if(a.mIsOn&&!a.GetState())a.ChgState(gFaceClr,gFaceClr,0,0)}function _TBSetP(){if(this.mIsOn)this.ChgState(gShadowClr,gHiliteClr,1,1)}function _TBSetD(){this.ChgState(gFaceClr,gFaceClr,0,0);this.mIsOn=0}function _TBSetE(){var a=this;if(!a.GetState())a.ChgState(gFaceClr,gFaceClr,0,0);else a.ChgState(gShadowClr,gHiliteClr,1,1);a.mIsOn=1}function _TBP(){var a=this;if(a.mIsOn){if(a.UserAction!=null)a.UserAction();if(!a.GetState)return;if(a.GetState())a.SetPressed();else a.SetActive()}}function _TBUI(c,d,a,b){SetBorder(GetObj(this.mObjId),c,d);Offset(GetObj(this.m_elementsId),a,b)}function Offset(a,c,b){a.style.top=c;a.style.left=b}function SetBorder(c,b,a){s=c.style;s.borderStyle="solid";s.borderWidth=1;s.borderLeftColor=s.borderTopColor=b;s.borderBottomColor=s.borderRightColor=a}function GetBtnObj(){return gBtnArr[window.event.srcElement.id]}function BtnOnOver(){b=GetBtnObj();if(b!=null)b.SetActive()}function BtnOnDown(){b=GetBtnObj();if(b!=null)b.SetPressed()}function BtnOnOut(){b=GetBtnObj();if(b!=null)b.SetInactive()}function BtnOnUp(){b=GetBtnObj();if(b!=null)b.Perform();else Upd()}function GetNtsState(){return parent.gNtsOpen}function GetOtlState(){return parent.gOtlOpen}function GetOtlTxtState(){return parent.gOtlTxtExp}function NtsBtnSetFlag(a){s=document.all.item(this.m_flagId).style;s.display="none";if(a)s.display="";else s.display="none"}function _BSetA_Border(){b=gBtnArr[this.mObjId];if(b!=null)b.SetActive()}function _BSetI_Border(){b=gBtnArr[this.mObjId];if(b!=null)b.SetInactive()}function _BSetP_Border(){b=gBtnArr[this.mObjId];if(b!=null)b.SetPressed()}function _BSetA_BorderImg(){b=gBtnArr[this.mBorderId];if(b!=null&&this.mIsOn&&!b.GetState()){obj=this.ChgState(gHiliteClr,gShadowClr,2);obj.style.posTop=0}}function _BSetI_BorderImg(){b=gBtnArr[this.mBorderId];if(b!=null&&this.mIsOn&&!b.GetState()){obj=this.ChgState(gFaceClr,gFaceClr,1);obj.style.posTop=0}}var gHiliteClr="THREEDHIGHLIGHT",gShadowClr="THREEDSHADOW",gFaceClr="THREEDFACE",gBtnArr=[];gBtnArr["nb_otl"]=new TxtBtn("nb_otl","nb_otlElem",parent.ToggleOtlPane,GetOtlState);gBtnArr["nb_otlElem"]=new TxtBtn("nb_otl","nb_otlElem",parent.ToggleOtlPane,GetOtlState);gBtnArr["nb_nts"]=new ImgBtn("nb_nts","nb_ntsBorder",10,parent.ToggleNtsPane);gBtnArr["nb_nts"].SetActive=_BSetA_BorderImg;gBtnArr["nb_nts"].SetInactive=_BSetI_BorderImg;gBtnArr["nb_ntsBorder"]=new TxtBtn("nb_ntsBorder","nb_ntsElem",parent.ToggleNtsPane,GetNtsState);gBtnArr["nb_ntsElem"]=new TxtBtn("nb_ntsBorder","nb_ntsElem",parent.ToggleNtsPane,GetNtsState);gBtnArr["nb_prevBorder"]=gBtnArr["nb_prev"]=new ImgBtn("nb_prev","nb_prevBorder",30,parent.GoToPrevSld);gBtnArr["nb_nextBorder"]=gBtnArr["nb_next"]=new ImgBtn("nb_next","nb_nextBorder",30,parent.GoToNextSld);gBtnArr["nb_sldshw"]=new ImgBtn("nb_sldshw","nb_sldshwBorder",18,parent.FullScreen);gBtnArr["nb_sldshwBorder"]=new TxtBtn("nb_sldshw","nb_sldshwBorder",parent.FullScreen,null);gBtnArr["nb_sldshwBorder"].SetActive=_BSetA_Border;gBtnArr["nb_sldshwBorder"].SetInactive=_BSetI_Border;gBtnArr["nb_sldshwText"]=new TxtBtn("nb_sldshw","nb_sldshwText",parent.FullScreen,null);gBtnArr["nb_sldshwText"].SetActive=_BSetA_Border;gBtnArr["nb_sldshwText"].SetInactive=_BSetI_Border;gBtnArr["nb_voice"]=gBtnArr["nb_voiceBorder"]=new ImgBtn("nb_voice","nb_voiceBorder",18,parent.ToggleVNarration);gBtnArr["nb_otlTxtBorder"]=gBtnArr["nb_otlTxt"]=new ImgBtn("nb_otlTxt","nb_otlTxtBorder",23,parent.ToggleOtlText);gBtnArr["nb_ntsBorder"].m_flagId="nb_nts";gBtnArr["nb_ntsBorder"].SetFlag=NtsBtnSetFlag;gBtnArr["nb_otlTxt"].ChangeIcon=GetOtlTxtState;var sNext="Next",sPrev="Previous",sEnd="End Show",sFont="Arial",sArrow="Arrow",sFreeform="Freeform",sRect="Rectangle",sOval="Oval";function ShowMenu(){BuildMenu();var a=PPTSld.document.body,b=PPTSld.event.clientX+a.scrollLeft,c=PPTSld.event.clientY+a.scrollTop;m=PPTSld.document.all.item("ctxtmenu");m.style.pixelLeft=b;if(b+m.scrollWidth>a.clientWidth&&b-m.scrollWidth>0)m.style.pixelLeft=b-m.scrollWidth;m.style.pixelTop=c;if(c+m.scrollHeight>a.clientHeight&&c-m.scrollHeight>0)m.style.pixelTop=c-m.scrollHeight;m.style.display=""}function _CM(){if(!parent.IsFullScrMode())return;if(!PPTSld.event.ctrlKey){ShowMenu();return false}else HideMenu()}function BuildMenu(){if(PPTSld.document.all.item("ctxtmenu"))return;var b=CreateItem(PPTSld.document.body);b.id="ctxtmenu";b.style.visibility="hidden";var c=b.style;c.position="absolute";c.cursor="default";c.width="120px";SetCMBorder(b,"menu","black");var a=CreateItem(b);SetCMBorder(a,"threedhighlight","threedshadow");a.style.padding=2;CreateMenuItem(a,sNext,M_GoNextSld,M_True);CreateMenuItem(a,sPrev,M_GoPrevSld,M_HasPrevSld);CreateSeparator(a);CreateMenuItem(a,sEnd,M_End,M_True);b.style.visibility="visible"}function Cancel(){window.event.cancelBubble=true;window.event.returnValue=false}function Highlight(){ChangeClr("activecaption","threedhighlight")}function Deselect(){ChangeClr("threedface","menutext")}function Perform(){e=PPTSld.event.srcElement;if(e.type=="menuitem"&&e.IsActive())e.Action();else PPTSld.event.cancelBubble=true}function ChangeClr(b,a){e=PPTSld.event.srcElement;if(e.type=="menuitem"&&e.IsActive()){e.style.backgroundColor=b;e.style.color=a}}function M_HasPrevSld(){return parent.HasPrevSld()}function M_GoNextSld(){if(gIsEndShow)M_End();else GoToNextSld()}function M_GoPrevSld(){if(gIsEndShow){gIsEndShow=0;history.back();PPTSld.event.cancelBubble=true}else GoToPrevSld()}function M_True(){return true}function M_End(){window.close(self)}function CreateMenuItem(d,e,b,c){var a=CreateItem(d);a.type="menuitem";a.Action=b;a.IsActive=c;a.innerHTML=e;if(!a.IsActive())a.style.color="threedshadow";a.onclick=Perform;a.onmouseover=Highlight;a.onmouseout=Deselect;s=a.style;s.fontFamily=sFont;s.fontSize="9pt";s.paddingLeft=2}function CreateSeparator(c){var b=CreateItem(c);SetCMBorder(b,"menu","menu");var a=b.style;a.borderTopColor="threedshadow";a.borderBottomColor="threedhighlight";a.height=1;a.fontSize="0px"}function CreateItem(b){var a=PPTSld.document.createElement("DIV");b.insertBefore(a);return a}function SetCMBorder(d,b,c){var a=d.style;a.backgroundColor="menu";a.borderStyle="solid";a.borderWidth=1;a.borderColor=b+" "+c+" "+c+" "+b}