1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
|
var CtxAlwaysOn = false;
function LoadSld( slideId )
{
if( !g_supportsPPTHTML ) return
if( slideId )
parent.base.SldUpdated(slideId)
g_origSz=parseInt(SlideObj.style.fontSize)
g_origH=SlideObj.style.posHeight
g_origW=SlideObj.style.posWidth
g_scaleHyperlinks=(document.all.tags("AREA").length>0)
if ( IsWin("PPTSld") && !parent.IsFullScrMode() )
parent.base.highlite();
if( g_scaleHyperlinks )
InitHLinkArray()
if( g_scaleInFrame||(IsWin("PPTSld") && parent.IsFullScrMode() ) )
document.body.scroll="no"
_RSW()
if( IsWin("PPTSld") && (parent.IsFullScrMode() || CtxAlwaysOn ) ) {
document.oncontextmenu=parent._CM;
self.focus();
}
}
function MakeSldVis( fTrans )
{
fTrans=fTrans && g_showAnimation
if( fTrans )
{
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( fTrans )
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 Redirect( frmId,sId )
{
var str=document.location.hash,idx=str.indexOf('#')
if(idx>=0) str=str.substr(1);
if( window.name != frmId && ( sId != str) ) {
obj = document.all.item("Main-File")
window.location.href=obj.href+"#"+sId
return 1
}
return 0
}
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( name ) { return window.name == name }
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 appVer=navigator.appVersion, msie=appVer.indexOf( "MSIE " ), inex = appVer.indexOf( "Internet Explorer " ), ver=0
if( msie >= 0 )
ver=parseFloat( appVer.substring( msie+5, appVer.indexOf(";",msie) ) )
else if( inex >= 0 )
ver=parseFloat( appVer.substring( inex+18, appVer.indexOf(";",inex) ) )
else
ver=parseInt(appVer)
return( ver >= 4 )
}
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 LoadNavSld(slideId) {
playList();
parent.createCM();
if( !g_supportsPPTHTML ) return
if( IsWin("PPTSld") && slideId )
parent.base.SldUpdated(slideId)
self.focus();
}
var hasNarration = false;
function _RSW()
{
if( !g_supportsPPTHTML || IsNts() ||
( !g_scaleInFrame && (( window.name != "PPTSld" ) ) ) )
return
cltWidth=document.body.clientWidth
cltHeight=document.body.clientHeight
factor=(1.0*cltWidth)/g_origW
if( cltHeight < g_origH*factor )
factor=(1.0*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)/2
s.posTop=(cltHeight-s.posHeight)/2
if ( hasNarration ) {
obj = document.all.NSPlay.style;
mySld = document.all.SlideObj.style;
obj.position = 'absolute';
obj.posTop = mySld.posTop + mySld.posHeight - 20;
obj.posLeft = mySld.posLeft + mySld.posWidth - 20;
}
if( g_scaleHyperlinks )
ScaleHyperlinks( factor );
}
function IsMac() {
return (window.navigator.platform.indexOf("Mac") >= 0 );
}
function HitOK( evt ) {
//Nav Only function
return (evt.which == 1 || (IsMac() && evt.which == 3) );
}
function _KPH(event)
{
if ( parent.base.msie < 0 ) {
if ( ( (event.target.name && event.target.name == "hasMap" ) || (event.target.href && event.target.href != "") ) && parent.g_docTable[0].type != "jpeg" && HitOK( event ) ) {
return; /* to make hyperlinks in fullscreen mode traversable */
}
if( IsContextMenu() )
return parent.KPH(event);
if ( parent.IsFullScrMode() && event.which == 27 )
parent.base.CloseFullScreen();
else if ( parent.base.IsFullScrMode() && ( (!IsMac() && event.which == 3) || ( IsMac() && (event.modifiers & Event.CONTROL_MASK) && event.which == 1 ) ) )
return parent.KPH(event);
else if( (event.which == 32) || (event.which == 13) || HitOK( event ) ) {
if( window.name == "PPTSld" )
parent.PPTSld.DocumentOnClick();
else
parent.M_GoNextSld();
}
else if ( parent.IsFullScrMode() && ((event.which == 78) || (event.which == 110) || (event.which == 29) || (event.which == 31) || (event.which == 12)) )
parent.M_GoNextSld();
else if ( parent.IsFullScrMode() && ( (event.which == 80) || (event.which == 112) || (event.which == 30) || (event.which == 28) || (event.which == 11) || (event.which == 8)) )
parent.M_GoPrevSld();
return;
}
if( IsNts() ) return;
if(parent.IsFullScrMode() && event.keyCode == 27 && !parent.HideMenu() )
parent.base.CloseFullScreen();
else if( (event.keyCode == 32) || (event.keyCode == 13) )
{
if( window.name == "PPTSld" )
parent.PPTSld.DocumentOnClick();
else
parent.M_GoNextSld();
}
else if ( parent.IsFullScrMode() && ((event.keyCode == 78) || (event.keyCode == 110)) )
parent.M_GoNextSld();
else if ( parent.IsFullScrMode() && ((event.keyCode == 80) || (event.keyCode == 112)) )
parent.M_GoPrevSld();
}
function DocumentOnClick(event)
{
if ( g_doAdvOnClick && !parent.IsFullScrMode() ) {
parent.base.TP_GoToNextSld();
return;
}
if ( parent.base.msie < 0 )
{
if( ( g_allowAdvOnClick && parent.IsFullScrMode() ) || g_doAdvOnClick ||
(event && ( (event.which == 32) || (event.which == 13) ) ) )
parent.M_GoNextSld();
return;
}
if( IsNts() || (parent.IsFullScrMode() && parent.HideMenu() ) ) return;
if( ( g_allowAdvOnClick && parent.IsFullScrMode() ) || g_doAdvOnClick ||
(event && ( (event.keyCode==32) || (event.keyCode == 13) ) ) )
parent.M_GoNextSld();
}
var g_supportsPPTHTML = SupportsPPTHTML(), g_scaleInFrame = true, gId="", g_bgSound="",
g_scaleHyperlinks = false, g_allowAdvOnClick = true, g_showInBrowser = false, g_doAdvOnClick = false;
var g_showAnimation = 0;
var g_hasTrans = false, g_autoTrans = false, g_transSecs = 0;
var g_animManager = null;
var ENDSHOW_MESG="End of slide show, click to exit.", SCREEN_MODE="Frames", gIsEndShow=0, NUM_VIS_SLDS=32, SCRIPT_HREF="script.js", FULLSCR_HREF="fullscreen.htm";
var gCurSld = gPrevSld = 1, g_offset = 0, gNtsOpen = gHasNts = gOtlTxtExp = gNarrationPaused = false, gOtlOpen = true
window.gPPTHTML=SupportsPPTHTML()
var g_hideNav = 0;
function UpdNtsPane(){ PPTNts.location.replace( MHTMLPrefix+GetHrefObj( gCurSld ).mNtsHref ) }
function UpdNavPane( sldIndex ){ if(gNavLoaded) PPTNav.UpdNav() }
function UpdOtNavPane(){ if(gOtlNavLoaded) PPTOtlNav.UpdOtlNav() }
function UpdOtlPane(){ if(gOtlLoaded) PPTOtl.UpdOtl() }
function SetHasNts( fVal )
{
if( gHasNts != fVal ) {
gHasNts=fVal
UpdNavPane()
}
}
function ToggleVNarration()
{
if ( base.msie < 0 ) {
PPTSld.ToggleSound( false, PPTSld.document.NSPlay );
return;
}
rObj=PPTSld.document.all("NSPlay")
if( rObj ) {
if( gNarrationPaused )
rObj.Play()
else
rObj.Pause()
gNarrationPaused=!gNarrationPaused
}
}
function PrevSldViewed(){ GoToSld( GetHrefObj(gPrevSld).mSldHref ) }
function HasPrevSld() { return ( gIsEndShow || ( g_currentSlide != 1 && GetHrefObj( g_currentSlide-1 ).mVis == 1 )||( GetCurrentSlideNum() > 1 ) ) }
function HasNextSld() { return (GetCurrentSlideNum() != GetNumSlides()) }
function StartEndShow()
{
// g_hideNav = 1;
// PPTNav.location.reload();
if( PPTSld.event ) PPTSld.event.cancelBubble=true
doc=PPTSld.document
doc.open()
doc.writeln('<html><head><script > /*defer>*/ g_ctxmenu = 0; ' +
'if( parent.base.msie < 0 ) { document.captureEvents(Event.KEYPRESS); document.captureEvents(Event.MOUSEDOWN); document.onkeypress = _KPH; document.onmousedown = _KPH; } ' +
'function DocumentOnClick(event) { return _KPH(event); } function IsContextMenu() { return (g_ctxmenu ==1); } ' +
'function _KPH(event)' +
'{ ' +
'if ( parent.base.msie < 0 && (parent.IsFullScrMode() ) && event ) { if ( (!parent.IsMac() && event.which == 3) || ( parent.IsMac() && (event.modifiers & Event.CONTROL_MASK) && event.which == 1 ) ) { return parent.KPH(event); } ' +
' else if (event.which == 27 || event.which == 32 || event.which == 13 || parent.HitOK( event ) || (event.which == 78) || (event.which == 110) || (event.which == 29) || (event.which == 31) || (event.which == 12) ) { if ( IsContextMenu() ) { return parent.KPH(event); } parent.base.CloseFullScreen(); return; } ' +
' else if ( (event.which == 80) || (event.which == 112) || (event.which == 30) || (event.which == 28) || (event.which == 11) || (event.which == 8) ) { parent.M_GoPrevSld(); } } ' +
'if( parent.HideMenu() ) return; if( (parent.IsFullScrMode() ) && event) { if ( (event.keyCode==27 || event.keyCode == 13 || event.keyCode==32 || event.type=="click" ) || (event.keyCode == 78) || (event.keyCode == 110) ) { parent.base.CloseFullScreen(); }' +
' else if ( (event.keyCode == 80) || (event.keyCode == 112) ) { parent.M_GoPrevSld(); } } } function Unload() { parent.gIsEndShow=0; } function SetupEndShow() { if ( !parent.IsFullScrMode() ) { return; } else { parent.PPTNav.location.reload(); } parent.gIsEndShow=1; if ( parent.g_docTable[0].type != "jpeg" ) { if ( parent.base.msie < 0 ) {parent.createCM(); } document.oncontextmenu=parent._CM; } }</script></head><body scroll=\"no\" onclick=\"DocumentOnClick(event)\" onkeypress=\"_KPH(event)\" bgcolor=\"black\" onload=\"SetupEndShow()\" onunload=\"Unload()\"><center><p><font face=Tahoma color=white size=2><br><b>' + ENDSHOW_MESG + '</b></font></p></center></body></html>')
doc.close()
}
function SetSldVisited(){ gDocTable[gCurSld-1].mVisited=true }
function IsSldVisited(){ return gDocTable[gCurSld-1].mVisited }
function hrefList( sldHref, visible, sldIdx )
{
this.mSldHref= this.mNtsHref = sldHref
this.mSldIdx = sldIdx
this.mOrigVis= this.mVis = visible
this.mVisited= false
}
var gDocTable = new Array(
new hrefList("slide0001.htm", 1, 1),
new hrefList("slide0002.htm", 1, 2),
new hrefList("slide0003.htm", 1, 3),
new hrefList("slide0004.htm", 1, 4),
new hrefList("slide0005.htm", 1, 5),
new hrefList("slide0006.htm", 1, 6),
new hrefList("slide0007.htm", 1, 7),
new hrefList("slide0008.htm", 1, 8),
new hrefList("slide0009.htm", 1, 9),
new hrefList("slide0010.htm", 1, 10),
new hrefList("slide0011.htm", 1, 11),
new hrefList("slide0012.htm", 1, 12),
new hrefList("slide0013.htm", 1, 13),
new hrefList("slide0014.htm", 1, 14),
new hrefList("slide0015.htm", 1, 15),
new hrefList("slide0016.htm", 1, 16),
new hrefList("slide0017.htm", 1, 17),
new hrefList("slide0018.htm", 1, 18),
new hrefList("slide0019.htm", 1, 19),
new hrefList("slide0020.htm", 1, 20),
new hrefList("slide0021.htm", 1, 21),
new hrefList("slide0022.htm", 1, 22),
new hrefList("slide0023.htm", 1, 23),
new hrefList("slide0024.htm", 1, 24),
new hrefList("slide0025.htm", 1, 25),
new hrefList("slide0026.htm", 1, 26),
new hrefList("slide0027.htm", 1, 27),
new hrefList("slide0028.htm", 1, 28),
new hrefList("slide0029.htm", 1, 29),
new hrefList("slide0030.htm", 1, 30),
new hrefList("slide0031.htm", 1, 31),
new hrefList("slide0032.htm", 1, 32)
);
function ImgBtn( oId,bId,w,action )
{
var t=this
t.Perform = _IBP
t.SetActive = _IBSetA
t.SetInactive= _IBSetI
t.SetPressed = _IBSetP
t.SetDisabled= _IBSetD
t.Enabled = _IBSetE
t.ChangeIcon = null
t.UserAction = action
t.ChgState = _IBUI
t.mObjId = oId
t.mBorderId= bId
t.mWidth = w
t.mIsOn = t.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( state )
{
var t=this
GetObj( t.mBorderId ).style.visibility="visible"
if( state != t.mIsOn ) {
t.mIsOn=state
if( state )
t.SetInactive()
else
t.SetDisabled()
}
}
function _IBP()
{
var t=this
if( t.mIsOn ) {
if( t.UserAction != null )
t.UserAction()
if( t.ChangeIcon ) {
obj=GetObj(t.mObjId)
if( t.ChangeIcon() )
obj.style.posLeft=obj.style.posLeft+(t.mCurState-4)*t.mWidth
else
obj.style.posLeft=obj.style.posLeft+(t.mCurState-0)*t.mWidth
}
t.SetActive()
}
}
function _IBUI( clr1,clr2,nextState )
{
var t=this
SetBorder( GetObj( t.mBorderId ),clr1,clr2 )
obj=GetObj( t.mObjId )
obj.style.posLeft=obj.style.posLeft+(t.mCurState-nextState)*t.mWidth-obj.style.posTop
t.mCurState=nextState
return obj
}
function TxtBtn( oId,oeId,action,chkState )
{
var t=this
t.Perform = _TBP
t.SetActive = _TBSetA
t.SetInactive= _TBSetI
t.SetPressed = _TBSetP
t.SetDisabled= _TBSetD
t.SetEnabled = _TBSetE
t.GetState = chkState
t.UserAction = action
t.ChgState = _TBUI
t.mObjId = oId
t.m_elementsId= oeId
t.mIsOn = 1
}
function _TBSetA()
{
var t=this
if( t.mIsOn && !t.GetState() )
t.ChgState( gHiliteClr,gShadowClr,0,0 )
}
function _TBSetI()
{
var t=this
if( t.mIsOn && !t.GetState() )
t.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 t=this
if( !t.GetState() )
t.ChgState( gFaceClr,gFaceClr,0,0 )
else
t.ChgState( gShadowClr,gHiliteClr,1,1 )
t.mIsOn = 1
}
function _TBP()
{
var t=this
if( t.mIsOn ) {
if( t.UserAction != null )
t.UserAction()
if( t.GetState() )
t.SetPressed()
else
t.SetActive()
}
}
function _TBUI( clr1,clr2,lOffset,tOffset )
{
SetBorder( GetObj( this.mObjId ),clr1,clr2 )
Offset( GetObj( this.m_elementsId ),lOffset,tOffset )
}
function GetObj( objId ){ return document.all.item( objId ) }
function Offset( obj, top, left ){ obj.style.top=top; obj.style.left=left }
function SetBorder( obj, upperLeft, lowerRight )
{
s=obj.style;
s.borderStyle = "solid"
s.borderWidth = 1
s.borderLeftColor = s.borderTopColor = upperLeft
s.borderBottomColor= s.borderRightColor = lowerRight
}
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( fVal )
{
s=document.all.item( this.m_flagId ).style
s.display="none"
if( fVal )
s.display=""
else
s.display="none"
}
var gHiliteClr="THREEDHIGHLIGHT",gShadowClr="THREEDSHADOW",gFaceClr="THREEDFACE"
var gBtnArr = new Array()
gBtnArr["nb_otl"] = new TxtBtn( "nb_otl","nb_otlElem",parent.ToggleOtlPane,GetOtlState )
gBtnArr["nb_nts"] = new TxtBtn( "nb_nts","nb_ntsElem",parent.ToggleNtsPane,GetNtsState )
gBtnArr["nb_prev"]= new ImgBtn( "nb_prev","nb_prevBorder",30,parent.GoToPrevSld )
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_voice"] = new ImgBtn( "nb_voice","nb_voiceBorder",18,parent.ToggleVNarration )
gBtnArr["nb_otlTxt"]= new ImgBtn( "nb_otlTxt","nb_otlTxtBorder",23,parent.ToggleOtlText )
gBtnArr["nb_nts"].m_flagId= "notes_flag"
gBtnArr["nb_nts"].SetFlag = NtsBtnSetFlag
gBtnArr["nb_otlTxt"].ChangeIcon= GetOtlTxtState
var sNext="Next",sPrev="Previous",sEnd="End Show",sFont="Arial", alwaysOn = false
function ShowMenu()
{
BuildMenu();
var doc=PPTSld.document.body,x=PPTSld.event.clientX+doc.scrollLeft,y=PPTSld.event.clientY+doc.scrollTop
m = PPTSld.document.all.item("ctxtmenu")
m.style.pixelLeft=x
if( (x+m.scrollWidth > doc.clientWidth)&&(x-m.scrollWidth > 0) )
m.style.pixelLeft=x-m.scrollWidth
m.style.pixelTop=y
if( (y+m.scrollHeight > doc.clientHeight)&&(y-m.scrollHeight > 0) )
m.style.pixelTop=y-m.scrollHeight
m.style.display=""
}
function _CM()
{
if( !parent.IsFullScrMode() && !alwaysOn) return;
if(!PPTSld.event.ctrlKey) {
ShowMenu()
return false
} else
HideMenu()
}
function processNavKPH(event) {
if ( PPTSld && (event.keyCode != 13 || !event.srcElement.href || event.srcElement.href == "" ) )
return PPTSld._KPH(event);
}
function processNavClick() {
HideMenu();
return true;
}
function BuildMenu()
{
if( PPTSld.document.all.item("ctxtmenu") ) return
var mObj=CreateItem( PPTSld.document.body )
mObj.id="ctxtmenu"
var s=mObj.style
s.position="absolute"
s.cursor="default"
s.width="100px"
SetCMBorder(mObj,"menu","black")
var iObj=CreateItem( mObj )
SetCMBorder( iObj, "threedhighlight","threedshadow" )
iObj.style.padding=2
if ( self.IsFullScrMode() ) {
CreateMenuItem( iObj,sNext,M_GoNextSld,M_True )
CreateMenuItem( iObj,sPrev,M_GoPrevSld,M_HasPrevSld )
}
else {
CreateMenuItem( iObj,sNext, base.TP_GoToNextSld, base.HasNextSld )
CreateMenuItem( iObj,sPrev,base.GoToPrevSld, base.HasPrevSld )
}
var sObj=CreateItem( iObj )
SetCMBorder(sObj,"menu","menu")
var s=sObj.style
s.borderTopColor="threedshadow"
s.borderBottomColor="threedhighlight"
s.height=1
s.fontSize="0px"
if ( self.IsFullScrMode() )
CreateMenuItem( iObj,sEnd,M_End,M_True )
else
CreateMenuItem( iObj,sEnd,M_End,M_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( bg,clr )
{
e=PPTSld.event.srcElement
if( e.type=="menuitem" && e.IsActive() ) {
e.style.backgroundColor=bg
e.style.color=clr
}
}
function M_HasPrevSld() { return( base.HasPrevSld() ) }
function M_GoNextSld() {
base.SetFSMode(1);
if( gIsEndShow )
M_End();
else {
if ( base.HasNextSld() )
base.GoToNextSld();
else if ( base.EndSlideShow ) {
StartEndShow();
gIsEndShow = 1;
PPTNav.location.reload();
}
else
base.CloseFullScreen();
}
}
function M_GoPrevSld() {
base.SetFSMode(1);
g_hideNav = 0;
if( gIsEndShow ) {
gIsEndShow = 0;
if ( base.msie > 0 && IsMac() )
ChangeFrame( SLIDE_FRAME, GetHrefObj( g_currentSlide ).m_slideHref );
else
PPTSld.history.back();
PPTNav.location.reload();
if( PPTSld.event )
PPTSld.event.cancelBubble=true;
}
else
base.GoToPrevSld();
}
function M_True() { return true }
function M_False() { return false }
function M_End() {
base.CloseFullScreen();
/*PPTSld.event.cancelBubble=true;
window.close( self )*/
}
function CreateMenuItem( node,text,action,eval )
{
var e=CreateItem( node )
e.type="menuitem"
e.Action=action
e.IsActive=eval
e.innerHTML=text
if( !e.IsActive() )
e.style.color="threedshadow"
e.onclick=Perform
e.onmouseover=Highlight
e.onmouseout=Deselect
s=e.style;
s.fontFamily=sFont
s.fontSize="8pt"
s.paddingLeft=2
}
function CreateItem( node )
{
var elem=PPTSld.document.createElement("DIV")
node.insertBefore( elem )
return elem
}
function SetCMBorder( o,ltClr,rbClr )
{
var s=o.style
s.backgroundColor="menu"
s.borderStyle="solid"
s.borderWidth=1
s.borderColor=ltClr+" "+rbClr+" "+rbClr+" "+ltClr
}
/* netscape context menu */
g_ctxmenu = 0;
function setRect( obj, X, Y, W, H ) {
obj.top = Y;
obj.left = X;
obj.clip.top = 0;
obj.clip.left = 0;
obj.clip.bottom = H;
obj.clip.right = W;
}
function KPH(event) {
if ( ! base.IsFullScrMode() && !alwaysOn )
return true;
if ( (!IsMac() &&event.which == 3) || ( IsMac() && (event.modifiers & Event.CONTROL_MASK) && event.which == 1 ) ) {
PPTSld.g_ctxmenu = 1;
PPTSld.stripUobj.visibility = "show";
PPTSld.stripDobj.visibility = "show";
PPTSld.shadeUobj.visibility = "show";
PPTSld.shadeDobj.visibility = "show";
PPTSld.panelobj.visibility = "show";
PPTSld.Fobj.visibility = "show";
PPTSld.Bobj.visibility = "show";
PPTSld.Eobj.visibility = "show";
setRect(PPTSld.shadeUobj, event.pageX-2, event.pageY-2, 82, 67 );
setRect(PPTSld.shadeDobj, event.pageX, event.pageY, 82, 67 );
setRect(PPTSld.panelobj, event.pageX, event.pageY, 80, 65 );
setRect(PPTSld.Fobj, event.pageX, event.pageY, 80, 20 );
setRect(PPTSld.Bobj, event.pageX, event.pageY+20, 80, 20 );
setRect(PPTSld.stripUobj, event.pageX, event.pageY+41, 80, 1 );
setRect(PPTSld.stripDobj, event.pageX, event.pageY+43, 80, 1 );
setRect(PPTSld.Eobj, event.pageX, event.pageY+45, 80, 20 );
return false;
}
if ( HitOK( event ) ) {
PPTSld.g_ctxmenu = 0;
PPTSld.stripUobj.visibility = "hide";
PPTSld.stripDobj.visibility = "hide";
PPTSld.shadeUobj.visibility = "hide";
PPTSld.shadeDobj.visibility = "hide";
PPTSld.panelobj.visibility = "hide";
PPTSld.Fobj.visibility = "hide";
PPTSld.Bobj.visibility = "hide";
PPTSld.Eobj.visibility = "hide";
}
return true;
}
function overMe() {
this.bgColor = "blue";
}
function outMe() {
this.bgColor = "#AAAAAA";
}
function makeElement( whichEl, whichContainer ) {
if ( arguments.length == 1 ) {
whichContainer = PPTSld;
}
tmp = new Layer(100,whichContainer);
eval( whichEl + " = tmp" );
return eval(whichEl);
}
function initMe( obj, clr, text ) {
obj.bgColor = clr;
// obj.document.write("<a href='javascript:return false'>" + text + "</a>");
obj.document.write( "<font size=2 face=Arial " );
if ( !M_HasPrevSld() && (obj == PPTSld.Bobj ) ) {
obj.document.write( " color='#808080' " );
}
else {
obj.onmouseover = overMe;
obj.onmouseout = outMe;
}
obj.document.write( " >   " + text +"</font> <layer top=0 left=0 width=100 height=40 ></layer>");
obj.document.close();
obj.captureEvents(Event.CLICK);
obj.color = "black";
}
function createCM() {
if ( base.IsFullScrMode() ) {
var clr = "#AAAAAA";
PPTSld.shadeUobj = makeElement("SHADEU");
PPTSld.shadeDobj = makeElement("SHADED");
PPTSld.panelobj = makeElement("PANEL");
PPTSld.stripUobj = makeElement("STRIPU");
PPTSld.stripDobj = makeElement("STRIPD");
PPTSld.shadeUobj.bgColor = "#BBBBBB";
PPTSld.shadeDobj.bgColor = "#888888";
PPTSld.stripUobj.bgColor = "#777777";
PPTSld.stripDobj.bgColor = "#CCCCCC";
PPTSld.panelobj.bgColor = clr;
PPTSld.Fobj = makeElement("Next");
PPTSld.Bobj = makeElement("Previous");
PPTSld.Eobj = makeElement("EndShow");
initMe( PPTSld.Fobj, clr, "Next" );
PPTSld.Fobj.onclick = M_GoNextSld;
initMe( PPTSld.Bobj, clr, "Previous" );
PPTSld.Bobj.onclick = M_GoPrevSld;
initMe( PPTSld.Eobj, clr, "End Show");
PPTSld.Eobj.onclick = base.CloseFullScreen;
}
}
function IsContextMenu() {
return (g_ctxmenu == 1)
}
var g_notesTable = new Array()
var g_hiddenSlide = new Array()
makeSlide( 0,1,1);
makeSlide( 1,1,1);
makeSlide( 2,1,1);
makeSlide( 3,1,1);
makeSlide( 4,1,1);
makeSlide( 5,1,1);
makeSlide( 6,1,1);
makeSlide( 7,1,1);
makeSlide( 8,1,1);
makeSlide( 9,1,1);
makeSlide( 10,1,1);
makeSlide( 11,1,1);
makeSlide( 12,1,1);
makeSlide( 13,1,1);
makeSlide( 14,1,1);
makeSlide( 15,1,1);
makeSlide( 16,1,1);
makeSlide( 17,1,1);
makeSlide( 18,1,1);
makeSlide( 19,1,1);
makeSlide( 20,1,1);
makeSlide( 21,1,1);
makeSlide( 22,1,1);
makeSlide( 23,1,1);
makeSlide( 24,1,1);
makeSlide( 25,1,1);
makeSlide( 26,1,1);
makeSlide( 27,1,1);
makeSlide( 28,1,1);
makeSlide( 29,1,1);
makeSlide( 30,1,1);
makeSlide( 31,1,1);
var END_SHOW_HREF = "endshow.htm",
OUTLINE_EXPAND_HREF = "outline_expanded.htm",
OUTLINE_COLLAPSE_HREF = "outline_collapsed.htm",
OUTLINE_NAVBAR_HREF = "outline_navigation_bar.htm",
NAVBAR_HREF = "navigation_bar.htm",
BLANK_NOTES_HREF = "blank_notes.htm",
NUM_VISIBLE_SLIDES = 32,
SIMPLE_FRAMESET = 0,
SLIDE_FRAME = "PPTSld",
NOTES_FRAME = "PPTNts",
OUTLINE_FRAME = "PPTOtl",
OUTLINE_NAVBAR_FRAME = "PPTOtlNav",
NAVBAR_FRAME = "PPTNav",
MAIN_FRAME = "MainFrame",
FS_NAVBAR_HREF = "fs_navigation_bar.htm",
isIEFiles = 2,
isNAVFiles = 8,
isFLATFiles = 16,
includeNotes = 1,
PPTPRESENTATION = 1;
var INITSLIDENUM = 1;
var EndSlideShow = 0;
var g_outline_href = OUTLINE_COLLAPSE_HREF;
var g_fullscrMode = 0;
var FSWin = null;
var gtmpstr = document.location.href;
var g_baseURL = gtmpstr.substr(0, gtmpstr.lastIndexOf("/") ) + "/" + "WebQTLDemo_files";
var g_showoutline = 1;
var g_shownotes = includeNotes;
var g_currentSlide = INITSLIDENUM, g_prevSlide = INITSLIDENUM;
var saveFSSlideNum = saveTPSlideNum = g_currentSlide;
var saveFSprevSlide = saveTPprevSlide = g_prevSlide;
var g_slideType="ie";
var appVer = navigator.appVersion;
var msie = appVer.indexOf( "MSIE " ) + appVer.indexOf( "Internet Explorer " );
var isnav = ( navigator.appName.indexOf( "Netscape" ) >= 0 );
var msieWin31 = (appVer.indexOf( "Windows 3.1" ) > 0);
var ver = 0;
var g_done = 0;
var g_prevotlobjidx = 0;
var g_ShowFSDefault = 0;
var g_lastVisibleSld = 1;
var g_allHidden = false;
function IsIE() {
return (msie >= 0 );
}
function IsNav() {
return (isnav);
}
var msiePos = appVer.indexOf( "MSIE " );
var inexPos = appVer.indexOf( "Internet Explorer " );
if ( msiePos >= 0 )
ver = parseFloat( appVer.substring( msiePos+5, appVer.indexOf ( ";", msiePos ) ) );
else if( inexPos >= 0 )
ver=parseFloat( appVer.substring( inexPos+18, appVer.indexOf(";",inexPos) ) )
else
ver = parseInt( appVer );
//var g_supportsPPTHTML = 0; //!msieWin31 && ( ( msie >= 0 && ver >= 3.02 ) || ( msie < 0 && ver >= 3 ) );
function GetCurrentSlideNum()
{
obj = GetHrefObj( g_currentSlide );
if ( GetHrefObj( g_currentSlide ).m_origVisibility == 1 )
return obj.m_slideIdx;
else
return g_currentSlide;
}
function GetNumSlides()
{
if ( GetHrefObj( g_currentSlide ).m_origVisibility == 1 )
return NUM_VISIBLE_SLIDES;
else
return g_docTable.length;
}
function GetHrefObj( slideIdx )
{ return g_docTable[slideIdx - 1];
}
function GetSlideNum( slideHref )
{
for (ii=0; ii<g_docTable.length; ii++) {
if ( g_docTable[ii].m_slideHref == slideHref )
return ii+1;
}
return 1;
}
function GoToNextSld()
{
targetIdx = g_currentSlide + 1;
if ( GetHrefObj( targetIdx-1 ).m_origVisibility == 0 ) {
if ( targetIdx<=g_docTable.length ) {
obj = GetHrefObj( targetIdx );
obj.m_visibility = 1;
GoToSld( obj.m_slideHref );
}
}
else {
obj = GetHrefObj( targetIdx );
while ( obj && ( obj.m_origVisibility == 0 ) && ( targetIdx<=g_docTable.length ) )
obj = GetHrefObj( targetIdx++ );
if( obj && obj.m_origVisibility )
GoToSld( obj.m_slideHref );
}
}
function GoToPrevSld()
{
targetIdx = g_currentSlide - 1;
if ( targetIdx > 0 ) {
obj = GetHrefObj( targetIdx );
while ( ( obj.m_visibility == 0 ) && ( targetIdx>0 ) )
obj = GetHrefObj( targetIdx-- );
GoToSld( obj.m_slideHref );
}
}
function GoToLast()
{
targetIdx = g_docTable.length;
if ( targetIdx != g_currentSlide )
GoToSld( GetHrefObj( targetIdx ).m_slideHref );
}
function GoToFirst()
{ GoToSld( GetHrefObj(1).m_slideHref );
}
function highlite() {
if ( IsFullScrMode() )
return;
index = GetCurrentSlideNum();
if ( !frames[MAIN_FRAME].frames[OUTLINE_FRAME] )
return;
if ( msie < 0 ) {
if ( g_prevotlobjidx != 0 ) {
eval( "otlobj = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.LAYERID" + g_prevotlobjidx );
otlobj.hidden = true;
}
else
index = GetCurrentSlideNum();
eval( "otlobj = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.LAYERID" + index );
otlobj.hidden = false;
g_prevotlobjidx = index;
return;
}
if ( !g_showoutline )
return;
backclr = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.body.bgColor;
textclr = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.body.text;
if ( g_prevotlobjidx != 0 ) {
eval( "otlobj = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.all.p" + g_prevotlobjidx );
otlobj.style.backgroundColor = backclr;
otlobj.style.color = textclr;
otlobj.all.AREF.style.color = textclr;
}
else
index = GetCurrentSlideNum();
eval( "otlobj = frames[MAIN_FRAME].frames[OUTLINE_FRAME].document.all.p" + index );
otlobj.style.backgroundColor = textclr;
otlobj.style.color = backclr;
otlobj.all.AREF.style.color = backclr;
g_prevotlobjidx = index;
}
function ChangeFrame( frame, href )
{
if ( IsFramesMode() ) {
if ( NAVBAR_FRAME == frame || OUTLINE_NAVBAR_FRAME == frame ) {
frames[frame].location.replace(href);
}
else if( ! ( ( OUTLINE_FRAME == frame && !g_showoutline) || (NOTES_FRAME == frame && !g_shownotes ) ) ){
frames[MAIN_FRAME].frames[frame].location.href = href;
}
}
else {
if ( frame == NAVBAR_FRAME || frame == SLIDE_FRAME ) {
if( frame == NAVBAR_FRAME ) {
href = FS_NAVBAR_HREF;
}
if( frame == NAVBAR_FRAME )
window.frames[frame].location.replace(href);
else
window.frames[frame].location.href = href;
}
}
}
function shutEventPropagation() {
if ( IsNav() )
return;
var slideFrame;
if ( IsFramesMode() )
slideFrame = frames[MAIN_FRAME].frames[SLIDE_FRAME];
else
slideFrame = window.frames[SLIDE_FRAME];
if ( slideFrame.event )
slideFrame.event.cancelBubble=true;
}
function GoToSld( slideHref )
{
shutEventPropagation();
if ( slideHref != GetHrefObj( g_currentSlide ).m_slideHref || g_slideType != GetHrefObj( g_currentSlide ).type) {
g_prevSlide = g_currentSlide;
g_currentSlide = GetSlideNum( slideHref );
g_slideType = GetHrefObj( g_currentSlide ).type;
obj = GetHrefObj( g_currentSlide );
obj.m_visibility = 1;
ChangeFrame( SLIDE_FRAME, slideHref );
if( !SIMPLE_FRAMESET )
ChangeFrame( NOTES_FRAME, obj.m_notesHref );
ChangeFrame( NAVBAR_FRAME, NAVBAR_HREF );
}
}
function PrevSldViewed()
{ GoToSld( GetHrefObj( g_prevSlide ).m_slideHref );
}
function NoHref() {}
function ExpandOutline( )
{
g_outline_href = OUTLINE_EXPAND_HREF;
ChangeFrame( OUTLINE_FRAME, OUTLINE_EXPAND_HREF );
frames[OUTLINE_NAVBAR_FRAME].location.replace( OUTLINE_NAVBAR_HREF);
}
function CollapseOutline()
{
g_outline_href = OUTLINE_COLLAPSE_HREF;
ChangeFrame( OUTLINE_FRAME, OUTLINE_COLLAPSE_HREF );
frames[OUTLINE_NAVBAR_FRAME].location.replace( OUTLINE_NAVBAR_HREF);
}
function SlideUpdated( id )
{
if ( id != GetHrefObj( g_currentSlide ).m_slideHref ) {
g_prevSlide = g_currentSlide;
g_currentSlide = GetSlideNum( id );
obj = GetHrefObj( g_currentSlide );
if( !SIMPLE_FRAMESET )
ChangeFrame( NOTES_FRAME, obj.m_notesHref );
ChangeFrame( NAVBAR_FRAME, NAVBAR_HREF );
}
}
function hrefList( slideHref, notesHref, visible, slideIdx, type )
{
this.m_slideHref = slideHref;
this.m_notesHref = notesHref;
this.m_navbarHref = NAVBAR_HREF;
this.m_origVisibility = visible;
this.m_visibility = visible;
this.m_slideIdx = slideIdx;
this.type = type;
}
function IsFullScrMode() {
return g_fullscrMode;
}
function IsFramesMode() {
return (1 - g_fullscrMode);
}
function SldUpdated( id )
{
if ( ( id != GetHrefObj( g_currentSlide ).m_slideHref ) || ( g_currentSlide == g_lastVisibleSld ) ){
g_prevSlide = g_currentSlide;
g_currentSlide = GetSlideNum( id );
obj = GetHrefObj( g_currentSlide );
if( !SIMPLE_FRAMESET )
ChangeFrame( NOTES_FRAME, obj.m_notesHref );
ChangeFrame( NAVBAR_FRAME, NAVBAR_HREF );
}
}
function ToggleOutline() {
g_showoutline = 1 - g_showoutline;
writeMyFrame();
}
function ShowHideNotes() {
g_shownotes = 1 - g_shownotes;
writeMyFrame();
}
function writeMyFrame() {
SetFSMode(0);
obj = frames[MAIN_FRAME];
var curslide = g_baseURL + "/" + GetHrefObj( g_currentSlide ).m_slideHref;
var curnotes = g_baseURL + "/" + GetHrefObj( g_currentSlide ).m_notesHref;
var otlhref = g_baseURL + "/" + g_outline_href;
if ( msie < 0 ) {
if ( ! g_showoutline && g_shownotes ) {
obj.document.write( '<HTML><HEAD><SCRIPT language=JavaScript src=' + g_baseURL + '/script.js></SCRIPT><SCRIPT> base = parent; <\/SCRIPT><\/HEAD> \
<frameset rows=\"*,20%\" id=\"frameset2\" > \
<frame src=\"' + curslide + '\" name=PPTSld marginheight=0 marginwidth=0> \
<frame src=\"' + curnotes + '\" name=PPTNts marginheight=0 marginwidth=0> \
</frameset> </html>' );
}
else if( g_showoutline && g_shownotes ){
obj.document.write( '<HTML><HEAD><SCRIPT language=JavaScript src=' + g_baseURL + '/script.js></SCRIPT><SCRIPT> base = parent; <\/SCRIPT><\/HEAD> \
<frameset cols=\"20%,*\" id=\"frameset1\"> \
<frame src=\"' + otlhref + '\" name=PPTOtl> \
<frameset rows=\"*,20%\" id=\"frameset2\" > \
<frame src=\"' + curslide + '\" name=PPTSld marginheight=0 marginwidth=0> \
<frame src=\"' + curnotes + '\" name=PPTNts marginheight=0 marginwidth=0> \
</frameset> </frameset></html>' );
}
else if ( !g_shownotes && !g_showoutline ) {
obj.document.write( '<HTML><HEAD><SCRIPT language=JavaScript src=' + g_baseURL + '/script.js></SCRIPT><SCRIPT> base = parent; <\/SCRIPT><\/HEAD> \
<frameset rows="*,0" frameborder=0 > \
<frame src=\"' + curslide + '\" name=PPTSld marginheight=0 marginwidth=0> \
</frameset> </html>' );
}
else if( !g_shownotes && g_showoutline ) {
obj.document.write( '<HTML><HEAD><SCRIPT language=JavaScript src=' + g_baseURL + '/script.js></SCRIPT><SCRIPT> base = parent; <\/SCRIPT><\/HEAD> \
<frameset cols=\"20%,*\" id=\"frameset1\"> \
<frame src=\"' + otlhref + '\" name=PPTOtl> \
<frame src=\"' + curslide + '\" name=PPTSld marginheight=0 marginwidth=0> \
</frameset></html>' );
}
obj.document.close();
}
else {
if ( g_showoutline ) {
obj.PPTHorizAdjust.cols = "20%,*";
obj.PPTOtl.location.reload();
}
else {
obj.PPTHorizAdjust.cols = "0,*";
}
if ( g_shownotes ) {
obj.PPTVertAdjust.rows = "*,20%";
obj.PPTNts.location.href = curnotes;
}
else {
obj.PPTVertAdjust.rows = "*,0";
}
}
ChangeFrame( OUTLINE_NAVBAR_FRAME, OUTLINE_NAVBAR_HREF );
}
function FullScreen() {
g_done = 0;
SetFSMode(1);
if ( msie >= 0 )
FSWin = window.open( g_baseURL + "/" + "fullscreen.htm", null, "fullscreen=yes");
else {
var height = screen.availHeight;
if ( window.navigator.platform.indexOf( "Mac" ) >= 0 ) {
height -= 30;
}
FSWin = window.open( g_baseURL + "/" + "fullscreen.htm", "null", "height="+ height + ",width=" + screen.availWidth + ",screenX=0,screenY=0");
}
}
function SetFSMode( i ) {
}
function Slide( i ) {
SetFSMode(0);
GoToSld(GetHrefObj(i).m_slideHref);
}
function TP_GoToNextSld() {
SetFSMode(0);
GoToNextSld();
}
function TP_GoToPrevSld() {
SetFSMode(0);
GoToPrevSld();
}
function CloseFullScreen() {
g_done = 0;
if ( IsNav() ){
if ( self.opener )
opener.FSWin = null;
}
window.close();
}
function slidenum(i) {
var slidename = "slide";
if ( i < 10 )
return ( slidename + "000" + i);
else if ( i < 100 )
return ( slidename + "00" + i );
else if ( i < 1000 )
return (slidename + "0" + i );
else
return (slidename + i );
}
function UpdateLastVisibleSlide( index ) {
if ( g_lastVisibleSld < index )
g_lastVisibleSld = index;
}
function jpegArray( numSlides ) {
count_hidden = 0;
g_docTable = new Array();
for( i=0; i<numSlides; i++ ) {
j = 2 * numSlides + i + 1;
var str = slidenum( j ) +".htm";
if( g_notesTable[i] == 1 )
g_docTable[i] = new hrefList( str, slidenum(i+1 ) + "_notes_pane.htm", g_hiddenSlide[i], i+1-count_hidden, "jpeg" );
else
g_docTable[i] = new hrefList( str, BLANK_NOTES_HREF, g_hiddenSlide[i], i+1-count_hidden, "jpeg" );
if ( !g_hiddenSlide[i] ) count_hidden++;
else UpdateLastVisibleSlide( i+1 );
}
}
function ieArray( numSlides ) {
count_hidden = 0;
g_docTable = new Array();
for( i=0; i<numSlides; i++ ) {
var str = slidenum(i+1) +".htm";
if( g_notesTable[i] == 1 )
g_docTable[i] = new hrefList( str, slidenum( i+1 ) + "_notes_pane.htm", g_hiddenSlide[i], i+1-count_hidden, "ie" );
else
g_docTable[i] = new hrefList( str, BLANK_NOTES_HREF, g_hiddenSlide[i], i+1-count_hidden, "ie" );
if ( !g_hiddenSlide[i] ) count_hidden++;
else UpdateLastVisibleSlide( i+1 );
}
}
function navArray( numSlides ) {
count_hidden = 0;
g_docTable = new Array();
for( i=0; i<numSlides; i++ ) {
j = numSlides + i + 1;
var str = slidenum( j ) +".htm";
if( g_notesTable[i] == 1 )
g_docTable[i] = new hrefList( str, slidenum(i+1 ) + "_notes_pane.htm", g_hiddenSlide[i], i+1-count_hidden, "nav" );
else
g_docTable[i] = new hrefList( str, BLANK_NOTES_HREF, g_hiddenSlide[i], i+1-count_hidden, "nav" );
if ( !g_hiddenSlide[i] ) count_hidden++;
else UpdateLastVisibleSlide( i+1 );
}
}
function LoadHTMLVersion() {
var os = window.navigator.platform.indexOf("Mac");
if ( (msie || isnav ) && ( (os < 0 && ver >= 4 ) || ( os >= 0 && ver >= 5 ) || (os >=0 && msie < 0 && ver >= 4 ) ) ){
if ( msie >= 0 ) {
if ( isIEFiles > 0 )
ieArray( 32 );
else if ( isFLATFiles > 0 ){
/*if ( IsFramesMode() )
StatusPlay("This presentation is optimized for use with older versions of your browser. Since you are using a more recent version of Microsoft Internet Explorer or Netscape Navigator, consider optimizing this presentation to take advantage of your current version's advanced capabilities."); */
jpegArray( 32 );
}
else
window.location.replace( "WebQTLDemo_files/error.htm" );
}
else {
if ( isNAVFiles > 0 && ver < 5)
navArray( 32 );
else if ( isFLATFiles > 0 ) {
/* if ( IsFramesMode() )
StatusPlay("This presentation is optimized for use with older versions of your browser. Since you are using a more recent version of Microsoft Internet Explorer or Netscape Navigator, consider optimizing this presentation to take advantage of your current version's advanced capabilities."); */
jpegArray( 32 );
}
else
window.location.replace( "WebQTLDemo_files/error.htm" );
}
}
else {
/*
if ( IsFramesMode() && !isWebTV() )
StatusPlay("This presentation contains content that your browser may not be able to show properly. This presentation was optimized for more recent versions of Microsoft Internet Explorer or Netscape Navigator.");
*/
if ( isFLATFiles <= 0 ) {
/* if ( IsFramesMode() )
window.alert("This presentation contains content that your browser may not be able to display properly. This presentation is optimized for more recent versions of Microsoft Internet Explorer or Netscape Navigator." );
*/
window.location.replace( "WebQTLDemo_files/error.htm" );
}
/*
else if ( IsFramesMode() && !isWebTV() )
StatusPlay( "This presentation contains content that your browser may not be able to show properly. This presentation was optimized for more recent versions of Microsoft Internet Explorer or Netscape Navigator." );
*/
jpegArray ( 32 );
}
}
function isWebTV() {
if ( window.navigator.appName.indexOf( 'WebTV' ) >= 0 )
return true;
return false;
}
var count;
var statusText;
var statusfirst = 0;
function display50( text )
{
len = text.length;
if ( len < 50 && count < 2) {
window.status = text;
window.setTimeout( "repeat()", 300 );
}
else {
var period = 200;
window.status = text;
newtext = text.substring( 1, len );
if ( statusfirst ) {
statusfirst = 0;
period = 2000;
}
window.setTimeout( "display50( newtext )", period );
}
}
function repeat( ) {
count++;
statusfirst = 1;
display50( statusText );
}
function StatusPlay( text ) {
count = 0;
statusText = text;
repeat( );
}
function makeSlide( i, notes, visible ) {
g_notesTable[i] = notes;
g_hiddenSlide[i] = visible;
}
|