blob: d4948eb1f7b6b2b3c8c6f441f7b42b903df0e805 [file] [log] [blame]
Scott Main0f805632011-01-07 10:45:03 -08001page.title=Google USB Driver
Scott Mainad68fdd2009-11-05 18:53:59 -08002@jd:body
3
Scott Main9460f402013-07-23 13:41:38 -07004
5
6<div style="position:relative;height:660px;">
7
8
9<div class="wrap" id="tos" style="position:absolute;display:none;width:inherit;">
10
11<div class="col-13" style="margin:0;">&nbsp;</div><!-- provides top margin for content -->
12
13
14<p class="sdk-terms-intro">Before downloading the Google USB Driver,
15you must agree to the following terms and conditions.</p>
16
17<div class="sdk-terms" onfocus="this.blur()">
18<h2 class="norule">Terms and Conditions</h2>
19This is the Android Software Development Kit License Agreement
20
21<h3>1. Introduction</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800221.1 The Android Software Development Kit (referred to in the License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of the License Agreement. The License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK.
Scott Main9460f402013-07-23 13:41:38 -070023
241.2 "Android" means the Android software stack for devices, as made available under the Android Open Source Project, which is located at the following URL: http://source.android.com/, as updated from time to time.
25
Quddus Chong16374fa2015-11-30 12:12:35 -0800261.3 A "compatible implementation" means any Android device that (i) complies with the Android Compatibility Definition document, which can be found at the Android compatibility website (http://source.android.com/compatibility) and which may be updated from time to time; and (ii) successfully passes the Android Compatibility Test Suite (CTS).
27
281.4 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.
Scott Main9460f402013-07-23 13:41:38 -070029
30
31<h3>2. Accepting this License Agreement</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800322.1 In order to use the SDK, you must first agree to the License Agreement. You may not use the SDK if you do not accept the License Agreement.
Scott Main9460f402013-07-23 13:41:38 -070033
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800342.2 By clicking to accept, you hereby agree to the terms of the License Agreement.
Scott Main9460f402013-07-23 13:41:38 -070035
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800362.3 You may not use the SDK and may not accept the License Agreement if you are a person barred from receiving the SDK under the laws of the United States or other countries, including the country in which you are resident or from which you use the SDK.
Scott Main9460f402013-07-23 13:41:38 -070037
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800382.4 If you are agreeing to be bound by the License Agreement on behalf of your employer or other entity, you represent and warrant that you have full legal authority to bind your employer or such entity to the License Agreement. If you do not have the requisite authority, you may not accept the License Agreement or use the SDK on behalf of your employer or other entity.
Scott Main9460f402013-07-23 13:41:38 -070039
40
41<h3>3. SDK License from Google</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800423.1 Subject to the terms of the License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license to use the SDK solely to develop applications for compatible implementations of Android.
Scott Main9460f402013-07-23 13:41:38 -070043
Quddus Chong16374fa2015-11-30 12:12:35 -0800443.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK. You are of course free to develop applications for other platforms, including non-compatible implementations of Android, provided that this SDK is not used for that purpose.
Scott Main9460f402013-07-23 13:41:38 -070045
Quddus Chong16374fa2015-11-30 12:12:35 -0800463.3 You agree that Google or third parties own all legal right, title and interest in and to the SDK, including any Intellectual Property Rights that subsist in the SDK. "Intellectual Property Rights" means any and all rights under patent law, copyright law, trade secret law, trademark law, and any and all other proprietary rights. Google reserves all rights not expressly granted to you.
Scott Main9460f402013-07-23 13:41:38 -070047
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800483.4 You may not use the SDK for any purpose not expressly permitted by the License Agreement. Except to the extent required by applicable third party licenses, you may not: (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK; or (b) load any part of the SDK onto a mobile handset or any other hardware device except a personal computer, combine any part of the SDK with other software, or distribute any software or device incorporating a part of the SDK.
Scott Main9460f402013-07-23 13:41:38 -070049
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800503.5 Use, reproduction and distribution of components of the SDK licensed under an open source software license are governed solely by the terms of that open source software license and not the License Agreement.
Scott Main9460f402013-07-23 13:41:38 -070051
523.6 You agree that the form and nature of the SDK that Google provides may change without prior notice to you and that future versions of the SDK may be incompatible with applications developed on previous versions of the SDK. You agree that Google may stop (permanently or temporarily) providing the SDK (or any features within the SDK) to you or to users generally at Google's sole discretion, without prior notice to you.
53
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800543.7 Nothing in the License Agreement gives you a right to use any of Google's trade names, trademarks, service marks, logos, domain names, or other distinctive brand features.
Scott Main9460f402013-07-23 13:41:38 -070055
563.8 You agree that you will not remove, obscure, or alter any proprietary rights notices (including copyright and trademark notices) that may be affixed to or contained within the SDK.
57
58
59<h3>4. Use of the SDK by You</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800604.1 Google agrees that it obtains no right, title or interest from you (or your licensors) under the License Agreement in or to any software applications that you develop using the SDK, including any intellectual property rights that subsist in those applications.
Scott Main9460f402013-07-23 13:41:38 -070061
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800624.2 You agree to use the SDK and write applications only for purposes that are permitted by (a) the License Agreement and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions (including any laws regarding the export of data or software to and from the United States or other relevant countries).
Scott Main9460f402013-07-23 13:41:38 -070063
644.3 You agree that if you use the SDK to develop applications for general public users, you will protect the privacy and legal rights of those users. If the users provide you with user names, passwords, or other login information or personal information, you must make the users aware that the information will be available to your application, and you must provide legally adequate privacy notice and protection for those users. If your application stores personal or sensitive information provided by users, it must do so securely. If the user provides your application with Google Account information, your application may only use that information to access the user's Google Account when, and for the limited purposes for which, the user has given you permission to do so.
65
664.4 You agree that you will not engage in any activity with the SDK, including the development or distribution of an application, that interferes with, disrupts, damages, or accesses in an unauthorized manner the servers, networks, or other properties or services of any third party including, but not limited to, Google or any mobile communications carrier.
67
684.5 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any data, content, or resources that you create, transmit or display through Android and/or applications for Android, and for the consequences of your actions (including any loss or damage which Google may suffer) by doing so.
69
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800704.6 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any breach of your obligations under the License Agreement, any applicable third party contract or Terms of Service, or any applicable law or regulation, and for the consequences (including any loss or damage which Google or any third party may suffer) of any such breach.
Scott Main9460f402013-07-23 13:41:38 -070071
72
73<h3>5. Your Developer Credentials</h3>
745.1 You agree that you are responsible for maintaining the confidentiality of any developer credentials that may be issued to you by Google or which you may choose yourself and that you will be solely responsible for all applications that are developed under your developer credentials.
75
76
77<h3>6. Privacy and Information</h3>
786.1 In order to continually innovate and improve the SDK, Google may collect certain usage statistics from the software including but not limited to a unique identifier, associated IP address, version number of the software, and information on which tools and/or services in the SDK are being used and how they are being used. Before any of this information is collected, the SDK will notify you and seek your consent. If you withhold consent, the information will not be collected.
79
806.2 The data collected is examined in the aggregate to improve the SDK and is maintained in accordance with Google's Privacy Policy.
81
82
83<h3>7. Third Party Applications</h3>
847.1 If you use the SDK to run applications developed by a third party or that access data, content or resources provided by a third party, you agree that Google is not responsible for those applications, data, content, or resources. You understand that all data, content or resources which you may access through such third party applications are the sole responsibility of the person from which they originated and that Google is not liable for any loss or damage that you may experience as a result of the use or access of any of those third party applications, data, content, or resources.
85
867.2 You should be aware the data, content, and resources presented to you through such a third party application may be protected by intellectual property rights which are owned by the providers (or by other persons or companies on their behalf). You may not modify, rent, lease, loan, sell, distribute or create derivative works based on these data, content, or resources (either in whole or in part) unless you have been specifically given permission to do so by the relevant owners.
87
Joe Fernandezb06fc4b2016-03-02 12:27:43 -0800887.3 You acknowledge that your use of such third party applications, data, content, or resources may be subject to separate terms between you and the relevant third party. In that case, the License Agreement does not affect your legal relationship with these third parties.
Scott Main9460f402013-07-23 13:41:38 -070089
90
91<h3>8. Using Android APIs</h3>
928.1 Google Data APIs
93
948.1.1 If you use any API to retrieve data from Google, you acknowledge that the data may be protected by intellectual property rights which are owned by Google or those parties that provide the data (or by other persons or companies on their behalf). Your use of any such API may be subject to additional Terms of Service. You may not modify, rent, lease, loan, sell, distribute or create derivative works based on this data (either in whole or in part) unless allowed by the relevant Terms of Service.
95
968.1.2 If you use any API to retrieve a user's data from Google, you acknowledge and agree that you shall retrieve data only with the user's explicit consent and only when, and for the limited purposes for which, the user has given you permission to do so.
97
98
99<h3>9. Terminating this License Agreement</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -08001009.1 The License Agreement will continue to apply until terminated by either you or Google as set out below.
Scott Main9460f402013-07-23 13:41:38 -0700101
Joe Fernandezb06fc4b2016-03-02 12:27:43 -08001029.2 If you want to terminate the License Agreement, you may do so by ceasing your use of the SDK and any relevant developer credentials.
Scott Main9460f402013-07-23 13:41:38 -0700103
Joe Fernandezb06fc4b2016-03-02 12:27:43 -08001049.3 Google may at any time, terminate the License Agreement with you if:
105(A) you have breached any provision of the License Agreement; or
Scott Main9460f402013-07-23 13:41:38 -0700106(B) Google is required to do so by law; or
107(C) the partner with whom Google offered certain parts of SDK (such as APIs) to you has terminated its relationship with Google or ceased to offer certain parts of the SDK to you; or
108(D) Google decides to no longer provide the SDK or certain parts of the SDK to users in the country in which you are resident or from which you use the service, or the provision of the SDK or certain SDK services to you by Google is, in Google's sole discretion, no longer commercially viable.
109
Joe Fernandezb06fc4b2016-03-02 12:27:43 -08001109.4 When the License Agreement comes to an end, all of the legal rights, obligations and liabilities that you and Google have benefited from, been subject to (or which have accrued over time whilst the License Agreement has been in force) or which are expressed to continue indefinitely, shall be unaffected by this cessation, and the provisions of paragraph 14.7 shall continue to apply to such rights, obligations and liabilities indefinitely.
Scott Main9460f402013-07-23 13:41:38 -0700111
112
113<h3>10. DISCLAIMER OF WARRANTIES</h3>
11410.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE SDK IS AT YOUR SOLE RISK AND THAT THE SDK IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTY OF ANY KIND FROM GOOGLE.
115
11610.2 YOUR USE OF THE SDK AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE SDK IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE.
117
11810.3 GOOGLE FURTHER EXPRESSLY DISCLAIMS ALL WARRANTIES AND CONDITIONS OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
119
120
121<h3>11. LIMITATION OF LIABILITY</h3>
12211.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT GOOGLE, ITS SUBSIDIARIES AND AFFILIATES, AND ITS LICENSORS SHALL NOT BE LIABLE TO YOU UNDER ANY THEORY OF LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES THAT MAY BE INCURRED BY YOU, INCLUDING ANY LOSS OF DATA, WHETHER OR NOT GOOGLE OR ITS REPRESENTATIVES HAVE BEEN ADVISED OF OR SHOULD HAVE BEEN AWARE OF THE POSSIBILITY OF ANY SUCH LOSSES ARISING.
123
124
125<h3>12. Indemnification</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080012612.1 To the maximum extent permitted by law, you agree to defend, indemnify and hold harmless Google, its affiliates and their respective directors, officers, employees and agents from and against any and all claims, actions, suits or proceedings, as well as any and all losses, liabilities, damages, costs and expenses (including reasonable attorneys fees) arising out of or accruing from (a) your use of the SDK, (b) any application you develop on the SDK that infringes any copyright, trademark, trade secret, trade dress, patent or other intellectual property right of any person or defames any person or violates their rights of publicity or privacy, and (c) any non-compliance by you with the License Agreement.
Scott Main9460f402013-07-23 13:41:38 -0700127
128
129<h3>13. Changes to the License Agreement</h3>
13013.1 Google may make changes to the License Agreement as it distributes new versions of the SDK. When these changes are made, Google will make a new version of the License Agreement available on the website where the SDK is made available.
131
132
133<h3>14. General Legal Terms</h3>
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080013414.1 The License Agreement constitutes the whole legal agreement between you and Google and governs your use of the SDK (excluding any services which Google may provide to you under a separate written agreement), and completely replaces any prior agreements between you and Google in relation to the SDK.
Scott Main9460f402013-07-23 13:41:38 -0700135
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080013614.2 You agree that if Google does not exercise or enforce any legal right or remedy which is contained in the License Agreement (or which Google has the benefit of under any applicable law), this will not be taken to be a formal waiver of Google's rights and that those rights or remedies will still be available to Google.
Scott Main9460f402013-07-23 13:41:38 -0700137
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080013814.3 If any court of law, having the jurisdiction to decide on this matter, rules that any provision of the License Agreement is invalid, then that provision will be removed from the License Agreement without affecting the rest of the License Agreement. The remaining provisions of the License Agreement will continue to be valid and enforceable.
Scott Main9460f402013-07-23 13:41:38 -0700139
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080014014.4 You acknowledge and agree that each member of the group of companies of which Google is the parent shall be third party beneficiaries to the License Agreement and that such other companies shall be entitled to directly enforce, and rely upon, any provision of the License Agreement that confers a benefit on (or rights in favor of) them. Other than this, no other person or company shall be third party beneficiaries to the License Agreement.
Scott Main9460f402013-07-23 13:41:38 -0700141
14214.5 EXPORT RESTRICTIONS. THE SDK IS SUBJECT TO UNITED STATES EXPORT LAWS AND REGULATIONS. YOU MUST COMPLY WITH ALL DOMESTIC AND INTERNATIONAL EXPORT LAWS AND REGULATIONS THAT APPLY TO THE SDK. THESE LAWS INCLUDE RESTRICTIONS ON DESTINATIONS, END USERS AND END USE.
143
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080014414.6 The rights granted in the License Agreement may not be assigned or transferred by either you or Google without the prior written approval of the other party. Neither you nor Google shall be permitted to delegate their responsibilities or obligations under the License Agreement without the prior written approval of the other party.
Scott Main9460f402013-07-23 13:41:38 -0700145
Joe Fernandezb06fc4b2016-03-02 12:27:43 -080014614.7 The License Agreement, and your relationship with Google under the License Agreement, shall be governed by the laws of the State of California without regard to its conflict of laws provisions. You and Google agree to submit to the exclusive jurisdiction of the courts located within the county of Santa Clara, California to resolve any legal matter arising from the License Agreement. Notwithstanding this, you agree that Google shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent legal relief) in any jurisdiction.
Scott Main9460f402013-07-23 13:41:38 -0700147
Quddus Chong16374fa2015-11-30 12:12:35 -0800148<em>November 20, 2015</em>
Scott Main9460f402013-07-23 13:41:38 -0700149</div><!-- thin wrapper around tos doc -->
150
151
152<div id="usb-terms-form">
153<p>
154<input id="agree" type="checkbox" name="agree" value="1" onclick="onAgreeChecked()" />
155<label id="agreeLabel" for="agree">I have read and agree with the above terms and conditions</label>
156</p>
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800157<p><a href="" class="dac-button dac-raised dac-primary disabled ndk" id="downloadForRealz" onclick="return onDownloadForRealz(this);"></a></p>
Scott Main9460f402013-07-23 13:41:38 -0700158</div>
159
160
161
162</div><!-- end TOS -->
163
164
165
166<div class="wrap col-13" style="margin:0" id="main">
167
168
Scott Mainad68fdd2009-11-05 18:53:59 -0800169<div id="qv-wrapper">
170<div id="qv">
171 <h2>In this document</h2>
172 <ol>
Scott Main0f805632011-01-07 10:45:03 -0800173 <li><a href="#WinUsbDriver">Downloading the Google USB Driver</a></li>
Scott Mainad68fdd2009-11-05 18:53:59 -0800174 </ol>
175 <h2>See also</h2>
176 <ol>
Scott Main50e990c2012-06-21 17:14:39 -0700177 <li><a href="{@docRoot}tools/extras/oem-usb.html#InstallingDriver">Installing a USB Driver</a></li>
Scott Main811aca52012-02-08 13:57:53 -0800178 <li><a href="{@docRoot}guide/developing/device.html">Using Hardware Devices</a></li>
Scott Mainad68fdd2009-11-05 18:53:59 -0800179 </ol>
Scott Main9460f402013-07-23 13:41:38 -0700180
181<h2>Get it</h2>
182
183<div class="download-box">
184 <a onclick="return onDownload(this)"
185 href="https://dl-ssl.google.com//android/repository/latest_usb_driver_windows.zip"
186 class="button" id="usbDriverButton">
187 Download Google USB Driver
188 </a>
189 <p class="filename">latest_usb_driver_windows.zip</p>
190</div>
191
Scott Mainad68fdd2009-11-05 18:53:59 -0800192</div>
193</div>
194
Scott Mainc5cdd542013-11-14 11:48:43 -0800195<p>The Google USB Driver is <strong>required for Windows only</strong> in order to perform
196<a href="{@docRoot}tools/help/adb.html">adb</a> debugging with any of
197the <strong>Google Nexus devices</strong>. The one exception is the
198Galaxy Nexus: the driver for Galaxy Nexus is distributed by <a
Scott Main0582da62011-12-27 15:31:54 -0800199href="http://www.samsung.com/us/support/downloads/verizon-wireless/SCH-I515MSAVZW">Samsung</a>
200(listed as model SCH-I515).</p>
Scott Mainad68fdd2009-11-05 18:53:59 -0800201
Scott Mainc5cdd542013-11-14 11:48:43 -0800202<p>Windows drivers for all other devices are provided by the respective hardware
203manufacturer, as listed in the <a href="{@docRoot}tools/extras/oem-usb.html">OEM USB Drivers</a>
204document.</p>
205
206
207
Scott Mainad68fdd2009-11-05 18:53:59 -0800208<p class="note"><strong>Note:</strong>
Scott Main9460f402013-07-23 13:41:38 -0700209If you're developing on Mac OS X or Linux, then you <strong>do not</strong> need to install a USB
210driver. To start developing with your device, read
211<a href="{@docRoot}guide/developing/device.html">Using Hardware Devices</a>.</p>
Scott Mainad68fdd2009-11-05 18:53:59 -0800212
Scott Mainad68fdd2009-11-05 18:53:59 -0800213
Scott Main0f805632011-01-07 10:45:03 -0800214<h2 id="WinUsbDriver">Downloading the Google USB Driver</h2>
215
Scott Main9460f402013-07-23 13:41:38 -0700216<p>The Google USB Driver for Windows is available for download as an optional SDK
217component. You need the driver only if you are developing on Windows and
218want to connect a Google Android-powered device (such as a Nexus 7) to your
219development environment over USB.</p>
220
Scott Main16570802012-03-14 15:44:56 -0700221<div class="figure" style="width:536px;margin:0">
Scott Main0f805632011-01-07 10:45:03 -0800222 <img src="{@docRoot}images/developing/sdk-usb-driver.png" alt="" />
Scott Maina7b1b8c2012-03-14 17:16:11 -0700223 <p class="img-caption"><strong>Figure 1.</strong> The SDK Manager
Scott Main0f805632011-01-07 10:45:03 -0800224 with the Google USB Driver selected.</p>
Scott Mainad68fdd2009-11-05 18:53:59 -0800225</div>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700226
Scott Main9460f402013-07-23 13:41:38 -0700227<p>You can download the Google USB Driver for Windows in one of two ways:</p>
228<ul>
229 <li>
230 <a onclick="$('#usbDriverButton').trigger('click');return false;" href="#">
231 Click here to download the latest Google USB Driver ZIP file</a>.</li>
232 <li>Or, use the Android SDK Manager tool that is
233included with the <a href="{@docRoot}sdk/index.html">Android SDK</a>. Using the SDK Manager
234helps you keep the driver up to date by notifying you when your current driver is out of date.
235 <ol>
236 <li>Launch the Android SDK Manager by double-clicking <code>SDK Manager.exe</code>,
237 at the root of your SDK directory.</li>
238 <li>Expand <em>Extras</em>.</li>
239 <li>Check <strong>Google USB Driver package</strong> and click <strong>Install</strong>.</li>
240 <li>Proceed to install the package. When done, the driver files are
241 downloaded into the <code>&lt;sdk&gt;\extras\google\usb_driver\</code> directory.</li>
242 </ol>
243 </li>
244</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700245
Scott Main9460f402013-07-23 13:41:38 -0700246<p>For installation information, read
247<a href="{@docRoot}tools/extras/oem-usb.html#InstallingDriver">Installing a USB Driver</a>.</p>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700248
Scott Main9460f402013-07-23 13:41:38 -0700249
250
251</div><!-- end wrap "main" for document content -->
252
253</div><!-- end outter wrapper for page contents -->
254
255
256
257
258<script>
259
260
261 function onDownload(link) {
262
263 /* set text for download button */
264 $("#downloadForRealz").html($(link).text());
265 $("#downloadForRealz").attr('href',$(link).attr('href'));
266
267 $("#tos").fadeIn('fast');
268 $("#main").fadeOut('fast');
269
270 location.hash = "download";
271 return false;
272 }
273
274
275 function onAgreeChecked() {
276 /* verify that the TOS is agreed and a bit version is chosen */
277 if ($("input#agree").is(":checked")) {
278 /* reveal the download button */
279 $("a#downloadForRealz").removeClass('disabled');
280 } else {
281 $("a#downloadForRealz").addClass('disabled');
282 }
283 }
284
285 function onDownloadForRealz(link) {
286 if ($("input#agree").is(':checked')) {
287 // OK, start the download and reset the page
288 $("input#agree").attr('checked',false);
289 $("a#downloadForRealz").addClass('disabled');
290 $("#tos").fadeOut('fast');
291 $("#main").fadeIn('fast');
292 location.hash = "top";
293 } else {
294 // Have not agreed to tos, make the checkbox blink
295 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
296 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
297 );
298 return false;
299 }
300 }
301
302 $(window).hashchange( function(){
303 if (location.hash == "") {
304 location.reload();
305 }
306 });
307
308</script>