-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlisting2.html
executable file
·578 lines (536 loc) · 22.4 KB
/
listing2.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<!-- BEGIN META TAG INFO -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="home" href="http://developer.apple.com/">
<link rel="find" href="http://developer.apple.com/search/">
<link rel="stylesheet" type="text/css" href="../../documentation/css/adcstyle.css" title="fonts">
<script language="JavaScript" src="../../documentation/js/adc.js" type="text/javascript"></script>
<!-- END META TAG INFO -->
<!-- BEGIN TITLE -->
<title>PThreadSorts - /SortablePicture.cp</title>
<!-- END TITLE -->
<script language="JavaScript">
function JumpToNewPage() {
window.location=document.scpopupmenu.gotop.value;
return true;
}
</script>
</head>
<!-- BEGIN BODY OPEN -->
<body>
<!--END BODY OPEN -->
<!-- START CENTER OPEN -->
<center>
<!-- END CENTER OPEN -->
<!-- BEGIN LOGO AND SEARCH -->
<!--#include virtual="/includes/adcnavbar"-->
<!-- END LOGO AND SEARCH -->
<!-- START BREADCRUMB -->
<div id="breadcrumb">
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td scope="row"><img width="340" height="10" src="images/1dot.gif" alt=""></td>
<td><img width="340" height="10" src="images/1dot.gif" alt=""></td>
</tr>
<tr valign="middle">
<td align="left" colspan="2">
<a href="http://developer.apple.com/">ADC Home</a> > <a href="../../referencelibrary/index.html">Reference Library</a> > <a href="../../samplecode/index.html">Sample Code</a> > <a href="../../samplecode/Performance/index.html">Performance</a> > <a href="../../samplecode/Performance/idxCarbon-date.html">Carbon</a> > <A HREF="javascript:location.replace('index.html');">PThreadSorts</A> >
</td>
</tr>
<tr>
<td colspan="2" scope="row"><img width="680" height="35" src="images/1dot.gif" alt=""></td>
</tr>
</table>
</div>
<!-- END BREADCRUMB -->
<!-- START MAIN CONTENT -->
<!-- START TITLE GRAPHIC AND INTRO-->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td><h1><div id="pagehead">PThreadSorts</div></h1></td>
</tr>
</table>
<!-- END TITLE GRAPHIC AND INTRO -->
<!-- START WIDE COLUMN -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td id="scdetails">
<h2>/SortablePicture.cp</h2>
<form name="scpopupmenu" onSubmit="return false;" method=post>
<p><strong>View Source Code:</strong>
<select name="gotop" onChange="JumpToNewPage();" style="width:340px"><option selected value="ingnore">Select File</option>
<option value="listing1.html">/main.cp</option>
<option value="listing2.html">/SortablePicture.cp</option>
<option value="listing3.html">/SortablePicture.h</option>
<option value="listing4.html">/Sorts/BubbleSortPicture.cp</option>
<option value="listing5.html">/Sorts/BubbleSortPicture.h</option>
<option value="listing6.html">/Sorts/HeapSortPicture.cp</option>
<option value="listing7.html">/Sorts/HeapSortPicture.h</option>
<option value="listing8.html">/Sorts/InsertionSortPicture.cp</option>
<option value="listing9.html">/Sorts/InsertionSortPicture.h</option>
<option value="listing10.html">/Sorts/QuickSortPicture.cp</option>
<option value="listing11.html">/Sorts/QuickSortPicture.h</option>
<option value="listing12.html">/Sorts/SelectionSortPicture.cp</option>
<option value="listing13.html">/Sorts/SelectionSortPicture.h</option>
<option value="listing14.html">/Sorts/ShellSortPicture.cp</option>
<option value="listing15.html">/Sorts/ShellSortPicture.h</option>
<option value="listing16.html">/Sorts/ThreadedQuickSortPicture.cp</option>
<option value="listing17.html">/Sorts/ThreadedQuickSortPicture.h</option></select>
</p>
</form>
<p><strong><a href="PThreadSorts.zip">Download Sample</a></strong> (“PThreadSorts.zip”, 449.1K)<BR>
<strong><a href="PThreadSorts.dmg">Download Sample</a></strong> (“PThreadSorts.dmg”, 774.8K)</p>
<!--
<p><strong><a href="#">Download Sample</a></strong> (“filename.sit”, 500K)</p>
-->
</td>
</tr>
<tr>
<td scope="row"><img width="680" height="10" src="images/1dot.gif" alt=""><br>
<img height="1" width="680" src="images/1dot_919699.gif" alt=""><br>
<img width="680" height="20" src="images/1dot.gif" alt=""></td>
</tr>
<tr>
<td scope="row">
<!--googleon: index -->
<pre class="sourcecodebox">/*
File: SortablePicture.cp
Contains: Methods for the SortablePicture Abstract base class.
Written by: Karl Groethe
Copyright: Copyright © 2000 by Apple Computer, Inc., All Rights Reserved.
You may incorporate this Apple sample source code into your program(s) without
restriction. This Apple sample source code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to redistribute
this Apple sample source code as "Apple sample source code" after having made
changes. If you're going to re-distribute the source, we require that you make
it clear in the source that the code was descended from Apple sample source
code, but that you've made changes.
Change History (most recent first):
7/00 Created
*/
#include "SortablePicture.h"
#include <Carbon/Carbon.h>
#include <unistd.h>
const UInt32 textSize=9;
SortablePicture::SortablePicture(ResID inPictID)
{
/*------------------------------------------------------
Constructure for creating a sortable picture from the
pict resources specified by inPictID
--------------------------------------------------------*/
pictID=inPictID;
ShowStats=FALSE;
FrameWaitTime.tv_sec=0;
FrameWaitTime.tv_nsec=NSEC_PER_SEC/6;//6 fps
#ifdef SPEED_CONTROL
SwapWaitTime.tv_sec=0;
SwapWaitTime.tv_nsec=0;
#endif
AllocPictGWorld();
CreatePictWindow();
AllocPixelArrays();
pthread_mutex_init(&mutex,NULL);//initialize a pthread mutex
pthread_cond_init(&refresh,NULL);//initialize the conditional for pthread_timedwait()
//might as well just lock down our pixmap now
//We'll be using it a lot
LockPixels(GetPortPixMap(pictGWorld));
//base address won't change so lets store it.
pictBaseAddr=GetPixBaseAddr(GetPortPixMap(pictGWorld));
//create our thread to scramble and sort picture
pthread_create(&scrambleAndSortThread,
NULL,
SortablePicture::ScrambleAndSortThread,
this);
//create thread to handle drawing
pthread_create(&drawThread,
NULL,
SortablePicture::DrawThread,
this);
}
SortablePicture::~SortablePicture()
{
/*------------------------------------------------------
Destructor for our sortable picture, handle
canceling and joining threads and disposing of
allocated memory.
--------------------------------------------------------*/
#ifdef SPEED_CONTROL
SetSwapWaitTime(0);//don't want to wait while we cancel threads
#endif
pthread_cancel(drawThread);
pthread_join(drawThread,NULL);
pthread_cancel(scrambleAndSortThread);
pthread_join(scrambleAndSortThread,NULL);
pthread_mutex_destroy(&mutex);
pthread_cond_destroy(&refresh);
//unlock our pixmap before we go
UnlockPixels(GetPortPixMap(pictGWorld));
DisposePixelArrays();
DisposePictWindow();
DisposePictGWorld();
}
void* SortablePicture::ScrambleAndSortThread(void* inPict)
{
/*------------------------------------------------------
Static C++ member that handles Scrambling and sorting
our picture from within a thread.
--------------------------------------------------------*/
while(TRUE)
{
sleep(2);//show the sorted picture for a few secs
((SortablePicture*)inPict)->Scramble();
((SortablePicture*)inPict)->Sort();
}
return 0;
}
void* SortablePicture::DrawThread(void* inPict)
{
/*------------------------------------------------------
Static C++ member that handles Drawing
our picture from within a thread.
--------------------------------------------------------*/
while(TRUE){
((SortablePicture*)inPict)->Draw();
}
return 0;
}
void SortablePicture::CreatePictWindow()
{
/*------------------------------------------------------
Create our picture's window.
--------------------------------------------------------*/
static EventTypeSpec closeEvent={kEventClassWindow,kEventWindowClose};
SortablePicture* temp=this;
Rect portBounds;
GetPortBounds(pictGWorld,&portBounds);
CreateNewWindow(kDocumentWindowClass,
kWindowCollapseBoxAttribute |
kWindowCloseBoxAttribute |
kWindowStandardHandlerAttribute,
&portBounds, &pictWindow);
MoveWindow(pictWindow,100,100,FALSE);
SetWindowProperty( pictWindow,
kAppCreator,
Class_ID,
sizeof(SortablePicture*),
&temp);//attach our object to the window as a property
//install a carbon event handler to handle disposing of our object when the window is closed
InstallWindowEventHandler(pictWindow,NewEventHandlerUPP(myWindowCloseHandler),
1,&closeEvent,0,NULL);
ShowWindow(pictWindow);
}
void SortablePicture::DisposePictWindow()
{
/*------------------------------------------------------
message that can be sent to an object to tell it to
dispose of it's window
--------------------------------------------------------*/
DisposeWindow(pictWindow);
}
void SortablePicture::AllocPictGWorld()
{
/*------------------------------------------------------
Create a gworld where we can manipulate the pixmap
of our picture.
--------------------------------------------------------*/
GrafPtr origPort;
GDHandle origDev;
pictBounds=(*GetPicture(pictID))->picFrame;
pictWidth=pictBounds.right-pictBounds.left;
pictHeight=pictBounds.bottom-pictBounds.top;
GetGWorld(&origPort,&origDev);
NewGWorld(&pictGWorld,0,&pictBounds,NULL,NULL,0);
SetGWorld(pictGWorld,NULL);
DrawPicture(GetPicture(pictID),&pictBounds);
SetGWorld(origPort,origDev);
}
void SortablePicture::DisposePictGWorld()
{
/*------------------------------------------------------
Dispose of our gworld
--------------------------------------------------------*/
DisposeGWorld(pictGWorld);
}
void SortablePicture::AllocPixelArrays()
{
/*------------------------------------------------------
Allocate and initialize the arrays we will use for
scrambling and sorting the picture.
--------------------------------------------------------*/
linearPictSize=pictWidth*pictHeight;
bytesPerPixel=GetPixDepth(GetPortPixMap(pictGWorld))/8;//depth in bytes
bytesPerRow=GetPixRowBytes(GetPortPixMap(pictGWorld)) & 0x7FFF;//strip off flags
pixelIndexArray=new UInt32[linearPictSize];
pixelOffsetArray=new UInt32[linearPictSize];
for(UInt32 i=0;i<pictHeight;i++)
for(UInt32 j=0;j<pictWidth;j++){
UInt32 index=i*pictWidth+j;//simple 2D indexing
pixelIndexArray[index]=index;//initial ordering of pixels so we know how to sort them
//offsets from the bass address so we can easily find pixels associated with each index
pixelOffsetArray[index]=i*bytesPerRow+j*bytesPerPixel;
}
}
void SortablePicture::DisposePixelArrays()
{
/*------------------------------------------------------
Dispose of the arrays we used for scrambling and
sorting our picture
--------------------------------------------------------*/
delete[] pixelIndexArray;
delete[] pixelOffsetArray;
}
void SortablePicture::SwapBytes(Byte* a,Byte* b,UInt32 numBytes)
{
/*------------------------------------------------------
Utility function for swapping a set of bytes. This allows
us to deal with multiple bit depths without changing
any code.
--------------------------------------------------------*/
Byte c=0;
UInt32 i=0;
for(i=0;i<numBytes;i++){
c=a[i];
a[i]=b[i];
b[i]=c;
}
}
Boolean SortablePicture::InOrder(UInt32 indexA, UInt32 indexB)
{
/*------------------------------------------------------
Comparison method used by subclassed to check if two
pixels are in order. This also maintains a count of
how many comparisons have been made.
--------------------------------------------------------*/
comparisons++;
return (pixelIndexArray[indexA]<pixelIndexArray[indexB]);
}
void SortablePicture::SwapPixels(UInt32 indexA, UInt32 indexB)
{
/*------------------------------------------------------
Swap method provided for subclasses to swap two pixels.
Swaps both the pixels and their index location and
keeps track of the number of swaps that have been
made.
--------------------------------------------------------*/
#ifdef SPEED_CONTROL
timespec wait=GetSwapWaitTime();
if(wait.tv_nsec>1)
pthread_cond_timedwait_relative_np(&refresh,&mutex,&wait);//wait for a signal
else
pthread_mutex_lock(&mutex);//block other threads while we swap pixels
#else
pthread_mutex_lock(&mutex);//block other threads while we swap pixels(no extra overhead)
#endif
//swap the pixels at indexA and indexB
SwapBytes(((Byte*)pictBaseAddr)+pixelOffsetArray[indexA],
((Byte*)pictBaseAddr)+pixelOffsetArray[indexB],bytesPerPixel);
//swap their index
SwapBytes((Byte*)&pixelIndexArray[indexA],
(Byte*)&pixelIndexArray[indexB],sizeof(UInt32));
swaps++;//incriment swaps
pthread_mutex_unlock(&mutex);//release other threads
pthread_testcancel();//see if we should quit
}
void SortablePicture::Scramble()
{
/*------------------------------------------------------
Scramble the pixels of our picture
--------------------------------------------------------*/
for(UInt32 i=0;i<linearPictSize;i++)//use 2 Random to get full UInt32 Range
SwapPixels(i,((UInt32)Random()*(UInt32)Random())%linearPictSize);
swaps=lastSwapVal=0;
comparisons=0;
gettimeofday(&frameTime,NULL);//init frame time
}
void SortablePicture::UpdateStats()
{
/*------------------------------------------------------
Update and draw the statistics for our picture
--------------------------------------------------------*/
Rect portBounds;
static const RGBColor textColor={0x0000,0x0000,0x0000};
GrafPtr origPort;
RGBColor oldColor;
timeval currentTime;
timeval difftime;
float fps,sps;
gettimeofday(&currentTime,NULL);
timersub(&currentTime,&frameTime,&difftime);
//calculate frames per second and don't bother if frametime is less than 1 second
fps=difftime.tv_sec>0 ? 1 : USEC_PER_SEC/(float)difftime.tv_usec;
sps=fps*(swaps-lastSwapVal);//calculate number of swaps per second
lastSwapVal=swaps;
frameTime=currentTime;
GetPort(&origPort);
SetPortWindowPort(pictWindow);
GetPortBounds(GetWindowPort(pictWindow),&portBounds);
GetForeColor(&oldColor);
RGBForeColor(&textColor);
TextSize(textSize);
TextFace(bold);
//name of the sort
CFStringRef sortString=CFStringCreateWithFormat(NULL,NULL,CFSTR("%s"),
CFStringGetCStringPtr(GetSortName(),kCFStringEncodingMacRoman));
//total number of pixels
CFStringRef totalPixelString=CFStringCreateWithFormat(NULL,NULL,CFSTR("Pixels:%i"),linearPictSize);
//total number of comparisons
CFStringRef compareString=CFStringCreateWithFormat(NULL,NULL,CFSTR("Comparison:%i"),comparisons);
//total number of swaps
CFStringRef swapString=CFStringCreateWithFormat(NULL,NULL,CFSTR("Swap:%i"),swaps);
//frame rate and swap rate
CFStringRef FpsSpsString=CFStringCreateWithFormat(NULL,NULL,CFSTR("fps:%.1f\tsps:%.0f"),fps,sps);
MoveTo(portBounds.left+1,portBounds.bottom-1);
DrawString(CFStringGetPascalStringPtr(FpsSpsString,kCFStringEncodingMacRoman));
MoveTo(portBounds.left+1,portBounds.bottom-textSize-1);
DrawString(CFStringGetPascalStringPtr(swapString,kCFStringEncodingMacRoman));
MoveTo(portBounds.left+1,portBounds.bottom-2*textSize-1);
DrawString(CFStringGetPascalStringPtr(compareString,kCFStringEncodingMacRoman));
MoveTo(portBounds.left+1,portBounds.bottom-3*textSize-1);
DrawString(CFStringGetPascalStringPtr(totalPixelString,kCFStringEncodingMacRoman));
MoveTo(portBounds.left,portBounds.bottom-4*textSize-1);
DrawString(CFStringGetPascalStringPtr(sortString,kCFStringEncodingMacRoman));
RGBForeColor(&oldColor);
SetPort(origPort);
}
void SortablePicture::Draw()
{
/*------------------------------------------------------
Draw our updated picture.
--------------------------------------------------------*/
GrafPtr origPort;
GDHandle origDev;
RgnHandle visibleRgn=NewRgn();
GetGWorld(&origPort,&origDev);
Rect srcBounds,destBounds;
timespec wait=GetFrameWaitTime();
pthread_cond_timedwait_relative_np(&refresh,&mutex,&wait);//wait for a while
GetPortBounds(pictGWorld,&srcBounds);
GetWindowPortBounds(pictWindow,&destBounds);
SetGWorld(GetWindowPort(pictWindow),NULL);
CopyBits( GetPortBitMapForCopyBits(pictGWorld),
GetPortBitMapForCopyBits(GetWindowPort(pictWindow)),
&srcBounds,
&destBounds,
srcCopy,NULL);
SetGWorld(origPort,origDev);
if(GetShowStats())
UpdateStats();
QDFlushPortBuffer(GetWindowPort(pictWindow),
GetPortVisibleRegion(GetWindowPort(pictWindow),visibleRgn));//flush the buffer
DisposeRgn(visibleRgn);
pthread_mutex_unlock(&mutex);//let our other threads go
pthread_testcancel();//see if we should quit
}
OSStatus SortablePicture::myWindowCloseHandler(EventHandlerCallRef inRef,
EventRef inEvent,
void* userData)
{
/*------------------------------------------------------
Carbon Event handler for handling when our window is
closed.
--------------------------------------------------------*/
WindowRef window;
//get our window from the objed and dispose of it
GetEventParameter(inEvent,kEventParamDirectObject,typeWindowRef,NULL,sizeof(window),NULL,&window);
SortablePicture::DisposePictureWindow(window);
return noErr;
}
void SortablePicture::DisposePictureWindow(WindowRef window)
{
/*------------------------------------------------------
Dispose of our window and the object associated with it
--------------------------------------------------------*/
SortablePicture* mySortablePicture;
GetWindowProperty( window,
kAppCreator,
Class_ID,
sizeof(SortablePicture*),
NULL,
&mySortablePicture);
delete mySortablePicture;
}
Boolean SortablePicture::GetShowStats()
{
/*------------------------------------------------------
Should we display the the statistics?
--------------------------------------------------------*/
return ShowStats;
}
void SortablePicture::SetShowStats(Boolean show)
{
/*------------------------------------------------------
Set whether or not to show stats
--------------------------------------------------------*/
ShowStats=show;
}
timespec SortablePicture::GetFrameWaitTime()
{
/*------------------------------------------------------
Get minimum time between frames
--------------------------------------------------------*/
return FrameWaitTime;
}
#ifdef SPEED_CONTROL
void SortablePicture::SetFrameWaitTime(long eWait)
{
/*------------------------------------------------------
Set minimum time between frames
--------------------------------------------------------*/
//bounded Assignment
FrameWaitTime.tv_nsec=eWait<=0 ? 0 : eWait>=NSEC_PER_SEC ? NSEC_PER_SEC-1 : eWait;
}
timespec SortablePicture::GetSwapWaitTime()
{
/*------------------------------------------------------
Get minimum time between swaps
--------------------------------------------------------*/
return SwapWaitTime;
}
void SortablePicture::SetSwapWaitTime(long eWait)
{
/*------------------------------------------------------
Set minimum time between swaps
--------------------------------------------------------*/
//bounded Assignment
SwapWaitTime.tv_nsec=eWait<=0 ? 0 : eWait>=NSEC_PER_SEC ? NSEC_PER_SEC-1 : eWait;
}
#endif
</pre>
<!--googleoff: index -->
</td>
</tr>
</table>
<!-- END WIDE COLUMN -->
<!-- END MAIN CONTENT -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div style="width: 100%; height: 1px; background-color: #919699; margin-top: 5px; margin-bottom: 15px"></div></td>
</tr>
<tr>
<td align="center"><br/>
<table border="0" cellpadding="0" cellspacing="0" class="graybox">
<tr>
<th>Did this document help you?</th>
</tr>
<tr>
<td>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=1&url=/samplecode/PThreadSorts/listing2.html%3Fid%3DDTS10000753-1.0&media=dvd" target=_new>Yes</a>: Tell us what works for you.</div>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=2&url=/samplecode/PThreadSorts/listing2.html%3Fid%3DDTS10000753-1.0&media=dvd" target=_new>It’s good, but:</a> Report typos, inaccuracies, and so forth.</div>
<div><a href="http://developer.apple.com/feedback/?v=3&url=/samplecode/PThreadSorts/listing2.html%3Fid%3DDTS10000753-1.0&media=dvd" target=_new>It wasn’t helpful</a>: Tell us what would have helped.</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- START BOTTOM APPLE NAVIGATION -->
<!--#include virtual="/includes/footer"-->
<!-- END BOTTOM APPLE NAVIGATION -->
<!-- START CENTER CLOSE -->
</center>
<!-- END CENTER CLOSE -->
</body>
</html>