forked from nputs/Gannet2.0_nicksversion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
VAXD_to_uint64le.m
executable file
·546 lines (433 loc) · 22.5 KB
/
VAXD_to_uint64le.m
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<!-- START OF GLOBAL NAV -->
<link rel="stylesheet" href="/matlabcentral/css/sitewide.css" type="text/css">
<link rel="stylesheet" href="/matlabcentral/css/mlc.css" type="text/css">
<!--[if lt IE 7]>
<link href="/matlabcentral/css/ie6down.css" type="text/css" rel="stylesheet">
<![endif]-->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="keywords" content="file exchange, matlab answers, newsgroup access, link exchange, matlab blog, matlab central, simulink blog, matlab community, matlab and simulink community">
<meta name="description" content="File exchange, MATLAB Answers, newsgroup access, Links, and Blogs for the MATLAB & Simulink user community">
<link rel="stylesheet" type="text/css" media="print" href="/matlabcentral/css/print.css" />
<title> File Exchange - MATLAB Central</title>
<script src="/matlabcentral/fileexchange/javascripts/jquery-1.9.1.min.js?1396618518" type="text/javascript"></script>
<script src="/matlabcentral/fileexchange/javascripts/jquery-ui-1.10.1.min.js?1396618518" type="text/javascript"></script>
<script src="/matlabcentral/fileexchange/javascripts/jquery_ujs.js?1396618518" type="text/javascript"></script>
<script src="/matlabcentral/fileexchange/javascripts/application.js?1396618518" type="text/javascript"></script>
<link href="/matlabcentral/fileexchange/stylesheets/application.css?1396618518" media="screen" rel="stylesheet" type="text/css" />
<link href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/VAXD_to_uint64le.m" rel="canonical" />
<link rel="search" type="application/opensearchdescription+xml" title="Search File Exchange" href="/matlabcentral/fileexchange/search.xml" />
</head>
<body>
<div id="header">
<div class="wrapper">
<!--put nothing in left div - only 11px wide shadow -->
<div class="main">
<div id="logo"><a href="/matlabcentral/?s_tid=gn_mlc_logo" title="MATLAB Central Home"><img src="/matlabcentral/images/mlclogo-whitebgd.gif" alt="MATLAB Central" /></a></div>
<div id="headertools">
<script language="JavaScript1.3" type="text/javascript">
function submitForm(query){
choice = document.forms['searchForm'].elements['search_submit'].value;
if (choice == "entire1" || choice == "contest" || choice == "matlabcentral" || choice == "blogs"){
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "q";
newElem.value = query.value;
document.forms['searchForm'].appendChild(newElem);
submit_action = '/searchresults/';
}
switch(choice){
case "matlabcentral":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "c[]";
newElem.value = "matlabcentral";
document.forms['searchForm'].appendChild(newElem);
selected_index = 0;
break
case "fileexchange":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "term";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/fileexchange/";
selected_index = 1;
break
case "answers":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "term";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/answers/";
selected_index = 2;
break
case "cssm":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "search_string";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/newsreader/search_results";
selected_index = 3;
break
case "linkexchange":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "term";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/linkexchange/";
selected_index = 4;
break
case "blogs":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "c[]";
newElem.value = "blogs";
document.forms['searchForm'].appendChild(newElem);
selected_index = 5;
break
case "trendy":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "search";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/trendy";
selected_index = 6;
break
case "cody":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "term";
newElem.value = query.value;
newElem.classname = "formelem";
document.forms['searchForm'].appendChild(newElem);
submit_action = "/matlabcentral/cody/";
selected_index = 7;
break
case "contest":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "c[]";
newElem.value = "contest";
document.forms['searchForm'].appendChild(newElem);
selected_index = 8;
break
case "entire1":
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "c[]";
newElem.value = "entiresite";
document.forms['searchForm'].appendChild(newElem);
selected_index = 9;
break
default:
var newElem = document.createElement("input");
newElem.type = "hidden";
newElem.name = "c[]";
newElem.value = "entiresite";
document.forms['searchForm'].appendChild(newElem);
selected_index = 9;
break
}
document.forms['searchForm'].elements['search_submit'].selectedIndex = selected_index;
document.forms['searchForm'].elements['query'].value = query.value;
document.forms['searchForm'].action = submit_action;
}
</SCRIPT>
<form name="searchForm" method="GET" action="" style="margin:0px; margin-top:5px; font-size:90%" onSubmit="submitForm(query)">
<label for="search">Search: </label>
<select name="search_submit" style="font-size:9px ">
<option value = "matlabcentral">MATLAB Central</option>
<option value = "fileexchange" selected> File Exchange</option>
<option value = "answers"> Answers</option>
<option value = "cssm"> Newsgroup</option>
<option value = "linkexchange"> Link Exchange</option>
<option value = "blogs"> Blogs</option>
<option value = "trendy"> Trendy</option>
<option value = "cody"> Cody</option>
<option value = "contest"> Contest</option>
<option value = "entire1">MathWorks.com</option>
</select>
<input type="text" name="query" size="10" class="formelem" value="">
<input type="submit" value="Go" class="formelem gobutton" >
</form>
<ol id="access2">
<li class="first">
<a href="https://www.mathworks.com/accesslogin/createProfile.do?uri=http%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Ffileexchange%2F24793-write-vaxd-and-vaxg-files-in-r2008b-and-later%2Fcontent%2FWriteVAX%2FVAXD_to_uint64le" id="create_account_link">Create Account</a>
</li>
<li>
<a href="https://www.mathworks.com/accesslogin/index_fe.do?uri=http%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Ffileexchange%2F24793-write-vaxd-and-vaxg-files-in-r2008b-and-later%2Fcontent%2FWriteVAX%2FVAXD_to_uint64le" id="login_link">Log In</a>
</li>
</ol>
</div>
<div id="globalnav">
<!-- from includes/global_nav.html -->
<ol>
<li class=";" >
<a href="/matlabcentral/fileexchange/?s_tid=gn_mlc_fx">File Exchange</a>
</li>
<li class=";" >
<a href="/matlabcentral/answers/?s_tid=gn_mlc_an">Answers</a>
</li>
<li class=";" >
<a href="/matlabcentral/newsreader/?s_tid=gn_mlc_ng">Newsgroup</a>
</li>
<li class=";" >
<a href="/matlabcentral/linkexchange/?s_tid=gn_mlc_lx">Link Exchange</a>
</li>
<li class=";" >
<a href="http://blogs.mathworks.com/?s_tid=gn_mlc_blg">Blogs</a>
</li>
<li class=";" >
<a href="/matlabcentral/trendy/?s_tid=gn_mlc_tnd">Trendy</a>
</li>
<li class=";" >
<a href="/matlabcentral/cody/?s_tid=gn_mlc_cody">Cody</a>
</li>
<li class=";" >
<a href="/matlabcentral/contest/?s_tid=gn_mlc_cn">Contest</a>
</li>
<li class="icon mathworks" >
<a href="/?s_tid=gn_mlc_main">MathWorks.com</a>
</li>
</ol>
</div>
</div>
</div>
</div>
<div id="middle">
<div class="wrapper">
<div id="mainbody" class="columns2">
<div class="manifest">
<div class="ctaBtn ctaBlueBtn btnSmall">
<div id="download_submission_button" class="btnCont">
<div class="btn download"><a href="/matlabcentral/fileexchange/downloads/146627/download" title="Download Now">Download Submission</a></div>
</div>
</div>
<p class="license">
Code covered by the <a href="/matlabcentral/fileexchange/view_license?file_info_id=24793" popup="new_window height=500,width=640,scrollbars=yes">BSD License</a>
<a href="/matlabcentral/fileexchange/help_license#bsd" class="info notext preview_help" onclick="window.open(this.href,'small','toolbar=no,resizable=yes,status=yes,menu=no,scrollbars=yes,width=600,height=550');return false;"> </a>
</p>
<h3 class="highlights_title">Highlights from <br/>
<a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later" class="manifest_title">Write VAXD and VAXG files in R2008b and later</a>
</h3>
<ul class='manifest'>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/VAXD_to_uint64le.m" class="function" title="Function">VAXD_to_uint64le.m</a></li>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/VAXF_to_uint32le.m" class="function" title="Function">VAXF_to_uint32le.m</a></li>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/VAXG_to_uint64le.m" class="function" title="Function">VAXG_to_uint64le.m</a></li>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/fwriteVAX.m" class="function" title="Function">fwriteVAX.m</a></li>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/fwriteVAXD.m" class="function" title="Function">fwriteVAXD.m</a></li>
<li class='manifest'><a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX/fwriteVAXG.m" class="function" title="Function">fwriteVAXG.m</a></li>
<li class="manifest_allfiles">
<a href="http://www.mathworks.com/matlabcentral/fileexchange/24793-write-vaxd-and-vaxg-files-in-r2008b-and-later/content/WriteVAX.zip" id="view_all_files">View all files</a>
</li>
</ul>
</div>
<table cellpadding="0" cellspacing="0" class="details file contents">
<tr>
<th class="maininfo">
<div id="details">
<h1 itemprop="name">Write VAXD and VAXG files in R2008b and later</h1>
<p id="author">
by
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name"><a href="http://www.mathworks.com/matlabcentral/fileexchange/authors/64078">Aditya</a></span>
</span>
</p>
<p> </p>
<p>
<span id="submissiondate"
>
20 Jul 2009
</span>
<span id="date_updated">(Updated
<span itemprop="datePublished" content="2009-07-31">31 Jul 2009</span>)
</span>
</p>
<p id="summary">These functions mimic the deprecated functionality of FWRITE for writing data in VAX file formats. </p>
</div>
</div>
</th>
</tr>
<tr>
<td class="file">
<table cellpadding="0" cellspacing="0" border="0" class="fileview section">
<tr class="title">
<th><span class="heading">VAXD_to_uint64le.m</span></th>
</tr>
<tr>
<td>
<div class="codecontainer"><pre class="matlab-code">function [ uint32le ] = VAXD_to_uint64le(doubleVAXD)
%VAXD_TO_UINT64LE Converts from VAXD (double) to IEEE-LE (UINT32)
% This function converts floating point numbers initialized in MATLAB
% into equivalent 64bit unsigned integers, and then splits the result
% into a vector columns of raw 32bit unsigned integers (little endian)
% using the specification for the VAXD floating point number format.
% VAXD is a 64bit floating point format. VAXF is the 32bit floating point
% format used in conjunction with both VAXD and VAXG.
% http://www.opengroup.org/onlinepubs/9629399/chap14.htm#tagfcjh_20
%
% The function is intended to be called from FWRITEVAXD.
%
% See also VAXF_TO_UINT32LE, VAXG_TO_UINT64LE, FWRITEVAX
%
% 2009 The MathWorks, Inc. MATLAB and Simulink are registered trademarks
% of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of
% additional trademarks. Other product or brand names may be trademarks or
% registered trademarks of their respective holders.
%% Define floating value properties for VAX architecture
% The generic equation for a floating point number is:
% V = (-1)^double(S) * M * A^(double(E)-B);
% Substituting M = C + F
% V = (-1)^double(S) * (C+F) * A^(double(E)-B);
%
% Performing inverse operations to solve for E and F:
% 0 <= 1 + log(M)/log(2) < 1 (VAX specific)
% E = (floor) (logV / D) + 1 + B
% F = V / ((A ^ (E-B)) - C)
%
% V = value, S = sign, M = mantissa, A = base, E = exponent, B = exponent
% bias, C = mantissa constant, F = fraction
A = 2; % VAX specific
B = 128; % VAX specific
C = 0.5; % VAX specific
D = log(2); % VAX specific
%% Determine the sign bit. If -ve transform to positive.
S = zeros(size(doubleVAXD));
if any(doubleVAXD(:) < 0)
indices = find(doubleVAXD<0);
doubleVAXD(indices) = (-1) .* doubleVAXD(indices);
S = zeros(size(doubleVAXD));
S(indices) = 1;
end
%% Decompose the floating point number to SEF (Sign, Exp, Fract)
E = floor((log(doubleVAXD)./ D) + 1 + B);
F = ((doubleVAXD ./ A.^(double(E)-B))) - C;
% Convert floating point fraction to unsigned integer
F = F * 72057594037927936; %VAX Specific 72057594037927936=2^56
%% Shift the bits of S, E and F
% VAX FLOAT BYTES <-----WORD1----><-----WORD2----><-----WORD1----><-----WORD2---->
% VAX FLOAT BITS 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
% Sign Exp Fract SEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
S = bitshift(bitshift(uint64(S),0), 63);
E = bitshift(bitshift(uint64(E),0), 56);
F = bitshift(bitshift(uint64(F),0), 9);
%% Combine the S, E and F into the unsigned integer value
vaxInt = bitor(bitor(S,bitshift(E,-1)),bitshift(F,-9));
%% Convert to raw 32bit integers
% Flip the upper and lower bits (based on how Vax data storage format)
% VAX (64bit) <--WORD1--><--WORD2--><--WORD3--><--WORD4-->
% IEEE-LE (32bit) <--WORD2--><--WORD1-->
% IEEE-LE (32bit) <--WORD4--><--WORD3-->
% Split IEEE UINT64: <--WORD1--><--WORD2-->|<--WORD3--><--WORD4-->
% \____________________/ \____________________/
% vaxIntA vaxIntB
vaxIntA = uint32(bitshift(bitshift(vaxInt,0), -32));
vaxIntB = uint32(bitshift(bitshift(vaxInt,32), -32));
% Swap WORD1 and WORD2
word2 = bitshift(bitshift(vaxIntA, 16), -16);
word1 = bitshift(vaxIntA, -16);
uint32leA = bitor(bitshift(word2,16), word1);
% Swap WORD3 and WORD4
word4 = bitshift(bitshift(vaxIntB, 16), -16);
word3 = bitshift(vaxIntB, -16);
uint32leB = bitor(bitshift(word4,16), word3);
uint32le(:,1) = reshape(uint32leA, numel(uint32leA), []); %<--WORD2--><--WORD1-->
uint32le(:,2) = reshape(uint32leB, numel(uint32leB), []); %<--WORD4--><--WORD3-->
uint32le = uint32le';
% IEEE (LE) DOUBLE BYTES <-----WORD4----><-----WORD3----><-----WORD2----><-----WORD1---->
% IEEE (LE) DOUBLE BITS 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
% Sign Exp Fract FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEEEEES
</pre></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p id="contactus"><a href="/company/feedback/">Contact us</a></p>
</div>
<div class="clearboth"> </div>
</div>
</div>
<!-- footer.html -->
<!-- START OF FOOTER -->
<div id="mlc-footer">
<script type="text/javascript">
function clickDynamic(obj, target_url, tracking_code) {
var pos=target_url.indexOf("?");
if (pos<=0) {
var linkComponents = target_url + tracking_code;
obj.href=linkComponents;
}
}
</script>
<div class="wrapper">
<div>
<ul id="matlabcentral">
<li class="copyright first">© 1994-2014 The MathWorks, Inc.</li>
<li class="first"><a href="/help.html" title="Site Help">Site Help</a></li>
<li><a href="/company/aboutus/policies_statements/patents.html" title="patents" rel="nofollow">Patents</a></li>
<li><a href="/company/aboutus/policies_statements/trademarks.html" title="trademarks" rel="nofollow">Trademarks</a></li>
<li><a href="/company/aboutus/policies_statements/" title="privacy policy" rel="nofollow">Privacy Policy</a></li>
<li><a href="/company/aboutus/policies_statements/piracy.html" title="preventing piracy" rel="nofollow">Preventing Piracy</a></li>
<li class="last"><a href="/matlabcentral/termsofuse.html" title="Terms of Use" rel="nofollow">Terms of Use</a></li>
<li class="icon"><a href="/company/rss/" title="RSS" class="rssfeed" rel="nofollow"><span class="text">RSS</span></a></li>
<li class="icon"><a href="/programs/bounce_hub_generic.html?s_tid=mlc_lkd&url=http://www.linkedin.com/company/the-mathworks_2" title="LinkedIn" class="linkedin" rel="nofollow" target="_blank"></a></li>
<li class="icon"><a href="/programs/bounce_hub_generic.html?s_tid=mlc_fbk&url=https://plus.google.com/117177960465154322866?prsrc=3" title="Google+" class="google" rel="nofollow" target="_blank"><span class="text">Google+</span></a></li>
<li class="icon"><a href="/programs/bounce_hub_generic.html?s_tid=mlc_fbk&url=http://www.facebook.com/MATLAB" title="Facebook" class="facebook" rel="nofollow" target="_blank"><span class="text">Facebook</span></a></li>
<li class="last icon"><a href="/programs/bounce_hub_generic.html?s_tid=mlc_twt&url=http://www.twitter.com/MATLAB" title="Twitter" class="twitter" rel="nofollow" target="_blank"><span class="text">Twitter</span></a></li>
</ul>
<ul id="mathworks">
<li class="first sectionhead">Featured MathWorks.com Topics:</li>
<li class="first"><a href="/products/new_products/latest_features.html" onclick="clickDynamic(this, this.href, '?s_cid=MLC_new')">New Products</a></li>
<li><a href="/support/" title="support" onclick="clickDynamic(this, this.href, '?s_cid=MLC_support')">Support</a></li>
<li><a href="/help" title="documentation" onclick="clickDynamic(this, this.href, '?s_cid=MLC_doc')">Documentation</a></li>
<li><a href="/services/training/" title="training" onclick="clickDynamic(this, this.href, '?s_cid=MLC_training')">Training</a></li>
<li><a href="/company/events/webinars/" title="Webinars" onclick="clickDynamic(this, this.href, '?s_cid=MLC_webinars')">Webinars</a></li>
<li><a href="/company/newsletters/" title="newsletters" onclick="clickDynamic(this, this.href, '?s_cid=MLC_newsletters')">Newsletters</a></li>
<li><a href="/programs/trials/trial_request.html?prodcode=ML&s_cid=MLC_trials" title="MATLAB Trials">MATLAB Trials</a></li>
<li class="last"><a href="/company/jobs/opportunities/index_en_US.html" title="Careers" onclick="clickDynamic(this, this.href, '?s_cid=MLC_careers')">Careers</a></li>
</ul>
</div>
</div>
</div>
<!-- END OF FOOTER -->
<!-- SiteCatalyst code version: H.24.4.
Copyright 1996-2012 Adobe, Inc. All Rights Reserved
More info available at http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/scripts/omniture/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script>
<!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.24.4. -->
<!-- BEGIN Qualaroo -->
<script type="text/javascript">
var _kiq = _kiq || [];
(function(){
setTimeout(function(){
var d = document, f = d.getElementsByTagName('script')[0], s = d.createElement('script'); s.type = 'text/javascript';
s.async = true; s.src = '//s3.amazonaws.com/ki.js/49559/ahy.js'; f.parentNode.insertBefore(s, f);
}, 1);
})();
</script>
<!-- END Qualaroo -->
</body>
</html>