2002/03/21 01:19:26
[org.ibex.core.git] / COPYING
1 ================================================================================
2 The contents of this distribution are copyrighted and licensed as follows:
3 ================================================================================
4
5    
6    ____________________________________________________________________________
7    - The XWT Standard Library  [src/org/xwt/themes/** and src/xwt/standard/**]
8    
9      The XWT Standard Library is Copyright 2002 Adam Megacz, all rights
10      reserved, all disclaimable warranties disclaimed.
11    
12      You may redistribute and/or modify the XWT standard library under
13      the terms of the GNU Lesser General Public License ("LGPL",
14      included below), version 2.1 ONLY (not any prior or later
15      versions).
16
17      This means that in many cases you can use this library in
18      closed-source applications.
19
20
21    ____________________________________________________________________________
22    - The XWT Engine   [src/org/xwt/**, except as noted below]
23    
24      The XWT Engine is Copyright 2002 Adam Megacz, all rights reserved,
25      all disclaimable warranties disclaimed.
26    
27      You can redistribute and/or modify the XWT engine (src/org/xwt/
28      and all subdirectories) under the GNU General Public License
29      ("GPL", included below), version 2 ONLY (not any prior or later
30      versions), subject to the following two clarifications:
31    
32      As a clarification to the General Public License, any data files
33      (.xwt, .gif, .png) loaded into a running copy of the XWT Engine,
34      or compiled by the jXWT Engine Compiler are specifically NOT
35      considered "derivitave works" of the engine, so long as they do
36      not contain any code copied from the engine.
37
38      As an additional clarification to the General Public License,
39      please note that if you apply a digital signature to the XWT
40      Engine, you have created a modified work, and your digital
41      signature constitutes part of the derived work ("any associated
42      interface definition files, plus the scripts used to control
43      compilation and installation of the executable"). You must
44      distribute your digital signature in "the preferred form of the
45      work for making modifications to it," meaning your private
46      key. Since virtually all Trusted Root CA's have clauses in their
47      certificate agreements prohibiting public distribution of a
48      private key for which they have issued a certificate, you
49      probably cannot publicly distribute signed XWT binaries without
50      obtaining a special license. Privately distributed binaries are,
51      of course, permitted.
52
53
54
55    ____________________________________________________________________________
56    - Various XWT Demos   [src/org/xwt/demo src/org/xwt/mail, src/org/xwt/chess]
57    
58      The XWT Demos are Copyright 2002 Adam Megacz, all rights
59      reserved, all disclaimable warranties disclaimed.
60    
61      You may redistribute and/or modify the XWT standard library under
62      the terms of the GNU General Public License ("GPL", included
63      below), version 2 ONLY (not any prior or later versions).
64
65
66
67    ____________________________________________________________________________
68    Exceptions and Other Files
69
70    - src/org/xwt/TinySSL.java is Copyright 2002 Adam Megacz, and is
71      licensed under the GNU Library General Public License; you may
72      reuse it in closed source applications under certain conditions;
73      see the LGPL (attached below).
74
75    - src/org/xwt/XML.java is Copyright 2002 the Wilson Partnership,
76      and is distributed under the Berkeley Standard Distribution
77      License. John Wilson has granted a special exemption from the
78      advertising clause when MinML is used in conjunction with XWT.
79
80    - src/org/mozilla/** contains the Rhino JavaScript Interpreter,
81      which is Copyright Netscape Communications Corporation, and is
82      licensed under the Netscape Public License.
83
84    - src/jazz/** is Copyright by the Free Software Foundation and is
85      licensed under the GPL with an exception stating that it is
86      non-infective when used as a library in unmodified form. See the
87      files in that directory for further details.
88
89    - src/org/gimp/tigert/** is Copyright Tigert Labs, and are licensed
90      under the GNU General Public License. "The icons are released
91      under the Gnu General Public License, meaning you can use them in
92      free software projects free of charge. If you wish to use these
93      for other things (or if you need other icons for your project)
94      contact me." [from http://tigert.gimp.org/gnome/gnome-stock/]
95
96    - lib/jikes is Copyright IBM, Inc.
97
98    - lib/netscape.jar and lib/signtool are Copyright Netscape
99      Communications Corporation
100    
101    - lib/msjvm.jar, lib/cabarc.exe, lib/signcode.exe, and
102      lib/guidgen.exe are Copyright Microsoft Corporation
103    
104    - lib/javasrc.jar is a copy of the compiled binaries for JavaSrc, written by . Its
105      copyright status is not known.
106    
107    - lib/javago is a compiled binary copy of the JavaGO global
108      optimizer, written by Konstantin Knizhnik and "is freeware and is
109      distributed without any restrictions on its usage"
110    
111    - lib/ant.jar is Copyright The Apache Software Foundation, and is
112      covered by the Apache Software License (included below).
113    
114    - src/org/xwt/PNG.java is Copyright (c) 1997, Jason
115      Marshall.  All Rights Reserved. Additional licensing terms are
116      contained in that file.
117
118    - src/org/xwt/GIF.java is Copyright D. J. Hagberg, Jr. Additional
119      licensing terms are contained in that file.
120
121    - the contents of src/org/bouncycastle is Copyright (c) 2000-2002 The
122      Legion Of The Bouncy Castle (http://www.bouncycastle.org); licensing
123      terms are available at http://www.bouncycastle.org/license.html
124
125
126
127
128
129
130
131 ========================================================================
132 The GNU General Public License
133
134                     GNU GENERAL PUBLIC LICENSE
135                        Version 2, June 1991
136
137  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
138                        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
139  Everyone is permitted to copy and distribute verbatim copies
140  of this license document, but changing it is not allowed.
141
142                             Preamble
143
144   The licenses for most software are designed to take away your
145 freedom to share and change it.  By contrast, the GNU General Public
146 License is intended to guarantee your freedom to share and change free
147 software--to make sure the software is free for all its users.  This
148 General Public License applies to most of the Free Software
149 Foundation's software and to any other program whose authors commit to
150 using it.  (Some other Free Software Foundation software is covered by
151 the GNU Library General Public License instead.)  You can apply it to
152 your programs, too.
153
154   When we speak of free software, we are referring to freedom, not
155 price.  Our General Public Licenses are designed to make sure that you
156 have the freedom to distribute copies of free software (and charge for
157 this service if you wish), that you receive source code or can get it
158 if you want it, that you can change the software or use pieces of it
159 in new free programs; and that you know you can do these things.
160
161   To protect your rights, we need to make restrictions that forbid
162 anyone to deny you these rights or to ask you to surrender the rights.
163 These restrictions translate to certain responsibilities for you if you
164 distribute copies of the software, or if you modify it.
165
166   For example, if you distribute copies of such a program, whether
167 gratis or for a fee, you must give the recipients all the rights that
168 you have.  You must make sure that they, too, receive or can get the
169 source code.  And you must show them these terms so they know their
170 rights.
171
172   We protect your rights with two steps: (1) copyright the software, and
173 (2) offer you this license which gives you legal permission to copy,
174 distribute and/or modify the software.
175
176   Also, for each author's protection and ours, we want to make certain
177 that everyone understands that there is no warranty for this free
178 software.  If the software is modified by someone else and passed on, we
179 want its recipients to know that what they have is not the original, so
180 that any problems introduced by others will not reflect on the original
181 authors' reputations.
182
183   Finally, any free program is threatened constantly by software
184 patents.  We wish to avoid the danger that redistributors of a free
185 program will individually obtain patent licenses, in effect making the
186 program proprietary.  To prevent this, we have made it clear that any
187 patent must be licensed for everyone's free use or not licensed at all.
188
189   The precise terms and conditions for copying, distribution and
190 modification follow.
191
192                     GNU GENERAL PUBLIC LICENSE
193    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
194
195   0. This License applies to any program or other work which contains
196 a notice placed by the copyright holder saying it may be distributed
197 under the terms of this General Public License.  The "Program", below,
198 refers to any such program or work, and a "work based on the Program"
199 means either the Program or any derivative work under copyright law:
200 that is to say, a work containing the Program or a portion of it,
201 either verbatim or with modifications and/or translated into another
202 language.  (Hereinafter, translation is included without limitation in
203 the term "modification".)  Each licensee is addressed as "you".
204
205 Activities other than copying, distribution and modification are not
206 covered by this License; they are outside its scope.  The act of
207 running the Program is not restricted, and the output from the Program
208 is covered only if its contents constitute a work based on the
209 Program (independent of having been made by running the Program).
210 Whether that is true depends on what the Program does.
211
212   1. You may copy and distribute verbatim copies of the Program's
213 source code as you receive it, in any medium, provided that you
214 conspicuously and appropriately publish on each copy an appropriate
215 copyright notice and disclaimer of warranty; keep intact all the
216 notices that refer to this License and to the absence of any warranty;
217 and give any other recipients of the Program a copy of this License
218 along with the Program.
219
220 You may charge a fee for the physical act of transferring a copy, and
221 you may at your option offer warranty protection in exchange for a fee.
222
223   2. You may modify your copy or copies of the Program or any portion
224 of it, thus forming a work based on the Program, and copy and
225 distribute such modifications or work under the terms of Section 1
226 above, provided that you also meet all of these conditions:
227
228     a) You must cause the modified files to carry prominent notices
229     stating that you changed the files and the date of any change.
230
231     b) You must cause any work that you distribute or publish, that in
232     whole or in part contains or is derived from the Program or any
233     part thereof, to be licensed as a whole at no charge to all third
234     parties under the terms of this License.
235
236     c) If the modified program normally reads commands interactively
237     when run, you must cause it, when started running for such
238     interactive use in the most ordinary way, to print or display an
239     announcement including an appropriate copyright notice and a
240     notice that there is no warranty (or else, saying that you provide
241     a warranty) and that users may redistribute the program under
242     these conditions, and telling the user how to view a copy of this
243     License.  (Exception: if the Program itself is interactive but
244     does not normally print such an announcement, your work based on
245     the Program is not required to print an announcement.)
246
247 These requirements apply to the modified work as a whole.  If
248 identifiable sections of that work are not derived from the Program,
249 and can be reasonably considered independent and separate works in
250 themselves, then this License, and its terms, do not apply to those
251 sections when you distribute them as separate works.  But when you
252 distribute the same sections as part of a whole which is a work based
253 on the Program, the distribution of the whole must be on the terms of
254 this License, whose permissions for other licensees extend to the
255 entire whole, and thus to each and every part regardless of who wrote it.
256
257 Thus, it is not the intent of this section to claim rights or contest
258 your rights to work written entirely by you; rather, the intent is to
259 exercise the right to control the distribution of derivative or
260 collective works based on the Program.
261
262 In addition, mere aggregation of another work not based on the Program
263 with the Program (or with a work based on the Program) on a volume of
264 a storage or distribution medium does not bring the other work under
265 the scope of this License.
266
267   3. You may copy and distribute the Program (or a work based on it,
268 under Section 2) in object code or executable form under the terms of
269 Sections 1 and 2 above provided that you also do one of the following:
270
271     a) Accompany it with the complete corresponding machine-readable
272     source code, which must be distributed under the terms of Sections
273     1 and 2 above on a medium customarily used for software interchange; or,
274
275     b) Accompany it with a written offer, valid for at least three
276     years, to give any third party, for a charge no more than your
277     cost of physically performing source distribution, a complete
278     machine-readable copy of the corresponding source code, to be
279     distributed under the terms of Sections 1 and 2 above on a medium
280     customarily used for software interchange; or,
281
282     c) Accompany it with the information you received as to the offer
283     to distribute corresponding source code.  (This alternative is
284     allowed only for noncommercial distribution and only if you
285     received the program in object code or executable form with such
286     an offer, in accord with Subsection b above.)
287
288 The source code for a work means the preferred form of the work for
289 making modifications to it.  For an executable work, complete source
290 code means all the source code for all modules it contains, plus any
291 associated interface definition files, plus the scripts used to
292 control compilation and installation of the executable.  However, as a
293 special exception, the source code distributed need not include
294 anything that is normally distributed (in either source or binary
295 form) with the major components (compiler, kernel, and so on) of the
296 operating system on which the executable runs, unless that component
297 itself accompanies the executable.
298
299 If distribution of executable or object code is made by offering
300 access to copy from a designated place, then offering equivalent
301 access to copy the source code from the same place counts as
302 distribution of the source code, even though third parties are not
303 compelled to copy the source along with the object code.
304
305   4. You may not copy, modify, sublicense, or distribute the Program
306 except as expressly provided under this License.  Any attempt
307 otherwise to copy, modify, sublicense or distribute the Program is
308 void, and will automatically terminate your rights under this License.
309 However, parties who have received copies, or rights, from you under
310 this License will not have their licenses terminated so long as such
311 parties remain in full compliance.
312
313   5. You are not required to accept this License, since you have not
314 signed it.  However, nothing else grants you permission to modify or
315 distribute the Program or its derivative works.  These actions are
316 prohibited by law if you do not accept this License.  Therefore, by
317 modifying or distributing the Program (or any work based on the
318 Program), you indicate your acceptance of this License to do so, and
319 all its terms and conditions for copying, distributing or modifying
320 the Program or works based on it.
321
322   6. Each time you redistribute the Program (or any work based on the
323 Program), the recipient automatically receives a license from the
324 original licensor to copy, distribute or modify the Program subject to
325 these terms and conditions.  You may not impose any further
326 restrictions on the recipients' exercise of the rights granted herein.
327 You are not responsible for enforcing compliance by third parties to
328 this License.
329
330   7. If, as a consequence of a court judgment or allegation of patent
331 infringement or for any other reason (not limited to patent issues),
332 conditions are imposed on you (whether by court order, agreement or
333 otherwise) that contradict the conditions of this License, they do not
334 excuse you from the conditions of this License.  If you cannot
335 distribute so as to satisfy simultaneously your obligations under this
336 License and any other pertinent obligations, then as a consequence you
337 may not distribute the Program at all.  For example, if a patent
338 license would not permit royalty-free redistribution of the Program by
339 all those who receive copies directly or indirectly through you, then
340 the only way you could satisfy both it and this License would be to
341 refrain entirely from distribution of the Program.
342
343 If any portion of this section is held invalid or unenforceable under
344 any particular circumstance, the balance of the section is intended to
345 apply and the section as a whole is intended to apply in other
346 circumstances.
347
348 It is not the purpose of this section to induce you to infringe any
349 patents or other property right claims or to contest validity of any
350 such claims; this section has the sole purpose of protecting the
351 integrity of the free software distribution system, which is
352 implemented by public license practices.  Many people have made
353 generous contributions to the wide range of software distributed
354 through that system in reliance on consistent application of that
355 system; it is up to the author/donor to decide if he or she is willing
356 to distribute software through any other system and a licensee cannot
357 impose that choice.
358
359 This section is intended to make thoroughly clear what is believed to
360 be a consequence of the rest of this License.
361
362   8. If the distribution and/or use of the Program is restricted in
363 certain countries either by patents or by copyrighted interfaces, the
364 original copyright holder who places the Program under this License
365 may add an explicit geographical distribution limitation excluding
366 those countries, so that distribution is permitted only in or among
367 countries not thus excluded.  In such case, this License incorporates
368 the limitation as if written in the body of this License.
369
370   9. The Free Software Foundation may publish revised and/or new versions
371 of the General Public License from time to time.  Such new versions will
372 be similar in spirit to the present version, but may differ in detail to
373 address new problems or concerns.
374
375 Each version is given a distinguishing version number.  If the Program
376 specifies a version number of this License which applies to it and "any
377 later version", you have the option of following the terms and conditions
378 either of that version or of any later version published by the Free
379 Software Foundation.  If the Program does not specify a version number of
380 this License, you may choose any version ever published by the Free Software
381 Foundation.
382
383   10. If you wish to incorporate parts of the Program into other free
384 programs whose distribution conditions are different, write to the author
385 to ask for permission.  For software which is copyrighted by the Free
386 Software Foundation, write to the Free Software Foundation; we sometimes
387 make exceptions for this.  Our decision will be guided by the two goals
388 of preserving the free status of all derivatives of our free software and
389 of promoting the sharing and reuse of software generally.
390
391                             NO WARRANTY
392
393   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
394 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
395 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
396 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
397 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
398 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
399 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
400 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
401 REPAIR OR CORRECTION.
402
403   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
404 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
405 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
406 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
407 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
408 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
409 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
410 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
411 POSSIBILITY OF SUCH DAMAGES.
412
413                      END OF TERMS AND CONDITIONS
414
415             How to Apply These Terms to Your New Programs
416
417   If you develop a new program, and you want it to be of the greatest
418 possible use to the public, the best way to achieve this is to make it
419 free software which everyone can redistribute and change under these terms.
420
421   To do so, attach the following notices to the program.  It is safest
422 to attach them to the start of each source file to most effectively
423 convey the exclusion of warranty; and each file should have at least
424 the "copyright" line and a pointer to where the full notice is found.
425
426     <one line to give the program's name and a brief idea of what it does.>
427     Copyright (C) <year>  <name of author>
428
429     This program is free software; you can redistribute it and/or modify
430     it under the terms of the GNU General Public License as published by
431     the Free Software Foundation; either version 2 of the License, or
432     (at your option) any later version.
433
434     This program is distributed in the hope that it will be useful,
435     but WITHOUT ANY WARRANTY; without even the implied warranty of
436     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
437     GNU General Public License for more details.
438
439     You should have received a copy of the GNU General Public License
440     along with this program; if not, write to the Free Software
441     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
442
443
444 Also add information on how to contact you by electronic and paper mail.
445
446 If the program is interactive, make it output a short notice like this
447 when it starts in an interactive mode:
448
449     Gnomovision version 69, Copyright (C) year name of author
450     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
451     This is free software, and you are welcome to redistribute it
452     under certain conditions; type `show c' for details.
453
454 The hypothetical commands `show w' and `show c' should show the appropriate
455 parts of the General Public License.  Of course, the commands you use may
456 be called something other than `show w' and `show c'; they could even be
457 mouse-clicks or menu items--whatever suits your program.
458
459 You should also get your employer (if you work as a programmer) or your
460 school, if any, to sign a "copyright disclaimer" for the program, if
461 necessary.  Here is a sample; alter the names:
462
463   Yoyodyne, Inc., hereby disclaims all copyright interest in the program
464   `Gnomovision' (which makes passes at compilers) written by James Hacker.
465
466   <signature of Ty Coon>, 1 April 1989
467   Ty Coon, President of Vice
468
469 This General Public License does not permit incorporating your program into
470 proprietary programs.  If your program is a subroutine library, you may
471 consider it more useful to permit linking proprietary applications with the
472 library.  If this is what you want to do, use the GNU Library General
473 Public License instead of this License.
474
475
476
477 ========================================================================
478 The GNU Lesser General Public License
479
480                   GNU LESSER GENERAL PUBLIC LICENSE
481                        Version 2.1, February 1999
482
483  Copyright (C) 1991, 1999 Free Software Foundation, Inc.
484      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
485  Everyone is permitted to copy and distribute verbatim copies
486  of this license document, but changing it is not allowed.
487
488 [This is the first released version of the Lesser GPL.  It also counts
489  as the successor of the GNU Library Public License, version 2, hence
490  the version number 2.1.]
491
492                             Preamble
493
494   The licenses for most software are designed to take away your
495 freedom to share and change it.  By contrast, the GNU General Public
496 Licenses are intended to guarantee your freedom to share and change
497 free software--to make sure the software is free for all its users.
498
499   This license, the Lesser General Public License, applies to some
500 specially designated software packages--typically libraries--of the
501 Free Software Foundation and other authors who decide to use it.  You
502 can use it too, but we suggest you first think carefully about whether
503 this license or the ordinary General Public License is the better
504 strategy to use in any particular case, based on the explanations below.
505
506   When we speak of free software, we are referring to freedom of use,
507 not price.  Our General Public Licenses are designed to make sure that
508 you have the freedom to distribute copies of free software (and charge
509 for this service if you wish); that you receive source code or can get
510 it if you want it; that you can change the software and use pieces of
511 it in new free programs; and that you are informed that you can do
512 these things.
513
514   To protect your rights, we need to make restrictions that forbid
515 distributors to deny you these rights or to ask you to surrender these
516 rights.  These restrictions translate to certain responsibilities for
517 you if you distribute copies of the library or if you modify it.
518
519   For example, if you distribute copies of the library, whether gratis
520 or for a fee, you must give the recipients all the rights that we gave
521 you.  You must make sure that they, too, receive or can get the source
522 code.  If you link other code with the library, you must provide
523 complete object files to the recipients, so that they can relink them
524 with the library after making changes to the library and recompiling
525 it.  And you must show them these terms so they know their rights.
526
527   We protect your rights with a two-step method: (1) we copyright the
528 library, and (2) we offer you this license, which gives you legal
529 permission to copy, distribute and/or modify the library.
530
531   To protect each distributor, we want to make it very clear that
532 there is no warranty for the free library.  Also, if the library is
533 modified by someone else and passed on, the recipients should know
534 that what they have is not the original version, so that the original
535 author's reputation will not be affected by problems that might be
536 introduced by others.
537
538   Finally, software patents pose a constant threat to the existence of
539 any free program.  We wish to make sure that a company cannot
540 effectively restrict the users of a free program by obtaining a
541 restrictive license from a patent holder.  Therefore, we insist that
542 any patent license obtained for a version of the library must be
543 consistent with the full freedom of use specified in this license.
544
545   Most GNU software, including some libraries, is covered by the
546 ordinary GNU General Public License.  This license, the GNU Lesser
547 General Public License, applies to certain designated libraries, and
548 is quite different from the ordinary General Public License.  We use
549 this license for certain libraries in order to permit linking those
550 libraries into non-free programs.
551
552   When a program is linked with a library, whether statically or using
553 a shared library, the combination of the two is legally speaking a
554 combined work, a derivative of the original library.  The ordinary
555 General Public License therefore permits such linking only if the
556 entire combination fits its criteria of freedom.  The Lesser General
557 Public License permits more lax criteria for linking other code with
558 the library.
559
560   We call this license the "Lesser" General Public License because it
561 does Less to protect the user's freedom than the ordinary General
562 Public License.  It also provides other free software developers Less
563 of an advantage over competing non-free programs.  These disadvantages
564 are the reason we use the ordinary General Public License for many
565 libraries.  However, the Lesser license provides advantages in certain
566 special circumstances.
567
568   For example, on rare occasions, there may be a special need to
569 encourage the widest possible use of a certain library, so that it becomes
570 a de-facto standard.  To achieve this, non-free programs must be
571 allowed to use the library.  A more frequent case is that a free
572 library does the same job as widely used non-free libraries.  In this
573 case, there is little to gain by limiting the free library to free
574 software only, so we use the Lesser General Public License.
575
576   In other cases, permission to use a particular library in non-free
577 programs enables a greater number of people to use a large body of
578 free software.  For example, permission to use the GNU C Library in
579 non-free programs enables many more people to use the whole GNU
580 operating system, as well as its variant, the GNU/Linux operating
581 system.
582
583   Although the Lesser General Public License is Less protective of the
584 users' freedom, it does ensure that the user of a program that is
585 linked with the Library has the freedom and the wherewithal to run
586 that program using a modified version of the Library.
587
588   The precise terms and conditions for copying, distribution and
589 modification follow.  Pay close attention to the difference between a
590 "work based on the library" and a "work that uses the library".  The
591 former contains code derived from the library, whereas the latter must
592 be combined with the library in order to run.
593
594                   GNU LESSER GENERAL PUBLIC LICENSE
595    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
596
597   0. This License Agreement applies to any software library or other
598 program which contains a notice placed by the copyright holder or
599 other authorized party saying it may be distributed under the terms of
600 this Lesser General Public License (also called "this License").
601 Each licensee is addressed as "you".
602
603   A "library" means a collection of software functions and/or data
604 prepared so as to be conveniently linked with application programs
605 (which use some of those functions and data) to form executables.
606
607   The "Library", below, refers to any such software library or work
608 which has been distributed under these terms.  A "work based on the
609 Library" means either the Library or any derivative work under
610 copyright law: that is to say, a work containing the Library or a
611 portion of it, either verbatim or with modifications and/or translated
612 straightforwardly into another language.  (Hereinafter, translation is
613 included without limitation in the term "modification".)
614
615   "Source code" for a work means the preferred form of the work for
616 making modifications to it.  For a library, complete source code means
617 all the source code for all modules it contains, plus any associated
618 interface definition files, plus the scripts used to control compilation
619 and installation of the library.
620
621   Activities other than copying, distribution and modification are not
622 covered by this License; they are outside its scope.  The act of
623 running a program using the Library is not restricted, and output from
624 such a program is covered only if its contents constitute a work based
625 on the Library (independent of the use of the Library in a tool for
626 writing it).  Whether that is true depends on what the Library does
627 and what the program that uses the Library does.
628   
629   1. You may copy and distribute verbatim copies of the Library's
630 complete source code as you receive it, in any medium, provided that
631 you conspicuously and appropriately publish on each copy an
632 appropriate copyright notice and disclaimer of warranty; keep intact
633 all the notices that refer to this License and to the absence of any
634 warranty; and distribute a copy of this License along with the
635 Library.
636
637   You may charge a fee for the physical act of transferring a copy,
638 and you may at your option offer warranty protection in exchange for a
639 fee.
640
641   2. You may modify your copy or copies of the Library or any portion
642 of it, thus forming a work based on the Library, and copy and
643 distribute such modifications or work under the terms of Section 1
644 above, provided that you also meet all of these conditions:
645
646     a) The modified work must itself be a software library.
647
648     b) You must cause the files modified to carry prominent notices
649     stating that you changed the files and the date of any change.
650
651     c) You must cause the whole of the work to be licensed at no
652     charge to all third parties under the terms of this License.
653
654     d) If a facility in the modified Library refers to a function or a
655     table of data to be supplied by an application program that uses
656     the facility, other than as an argument passed when the facility
657     is invoked, then you must make a good faith effort to ensure that,
658     in the event an application does not supply such function or
659     table, the facility still operates, and performs whatever part of
660     its purpose remains meaningful.
661
662     (For example, a function in a library to compute square roots has
663     a purpose that is entirely well-defined independent of the
664     application.  Therefore, Subsection 2d requires that any
665     application-supplied function or table used by this function must
666     be optional: if the application does not supply it, the square
667     root function must still compute square roots.)
668
669 These requirements apply to the modified work as a whole.  If
670 identifiable sections of that work are not derived from the Library,
671 and can be reasonably considered independent and separate works in
672 themselves, then this License, and its terms, do not apply to those
673 sections when you distribute them as separate works.  But when you
674 distribute the same sections as part of a whole which is a work based
675 on the Library, the distribution of the whole must be on the terms of
676 this License, whose permissions for other licensees extend to the
677 entire whole, and thus to each and every part regardless of who wrote
678 it.
679
680 Thus, it is not the intent of this section to claim rights or contest
681 your rights to work written entirely by you; rather, the intent is to
682 exercise the right to control the distribution of derivative or
683 collective works based on the Library.
684
685 In addition, mere aggregation of another work not based on the Library
686 with the Library (or with a work based on the Library) on a volume of
687 a storage or distribution medium does not bring the other work under
688 the scope of this License.
689
690   3. You may opt to apply the terms of the ordinary GNU General Public
691 License instead of this License to a given copy of the Library.  To do
692 this, you must alter all the notices that refer to this License, so
693 that they refer to the ordinary GNU General Public License, version 2,
694 instead of to this License.  (If a newer version than version 2 of the
695 ordinary GNU General Public License has appeared, then you can specify
696 that version instead if you wish.)  Do not make any other change in
697 these notices.
698
699   Once this change is made in a given copy, it is irreversible for
700 that copy, so the ordinary GNU General Public License applies to all
701 subsequent copies and derivative works made from that copy.
702
703   This option is useful when you wish to copy part of the code of
704 the Library into a program that is not a library.
705
706   4. You may copy and distribute the Library (or a portion or
707 derivative of it, under Section 2) in object code or executable form
708 under the terms of Sections 1 and 2 above provided that you accompany
709 it with the complete corresponding machine-readable source code, which
710 must be distributed under the terms of Sections 1 and 2 above on a
711 medium customarily used for software interchange.
712
713   If distribution of object code is made by offering access to copy
714 from a designated place, then offering equivalent access to copy the
715 source code from the same place satisfies the requirement to
716 distribute the source code, even though third parties are not
717 compelled to copy the source along with the object code.
718
719   5. A program that contains no derivative of any portion of the
720 Library, but is designed to work with the Library by being compiled or
721 linked with it, is called a "work that uses the Library".  Such a
722 work, in isolation, is not a derivative work of the Library, and
723 therefore falls outside the scope of this License.
724
725   However, linking a "work that uses the Library" with the Library
726 creates an executable that is a derivative of the Library (because it
727 contains portions of the Library), rather than a "work that uses the
728 library".  The executable is therefore covered by this License.
729 Section 6 states terms for distribution of such executables.
730
731   When a "work that uses the Library" uses material from a header file
732 that is part of the Library, the object code for the work may be a
733 derivative work of the Library even though the source code is not.
734 Whether this is true is especially significant if the work can be
735 linked without the Library, or if the work is itself a library.  The
736 threshold for this to be true is not precisely defined by law.
737
738   If such an object file uses only numerical parameters, data
739 structure layouts and accessors, and small macros and small inline
740 functions (ten lines or less in length), then the use of the object
741 file is unrestricted, regardless of whether it is legally a derivative
742 work.  (Executables containing this object code plus portions of the
743 Library will still fall under Section 6.)
744
745   Otherwise, if the work is a derivative of the Library, you may
746 distribute the object code for the work under the terms of Section 6.
747 Any executables containing that work also fall under Section 6,
748 whether or not they are linked directly with the Library itself.
749
750   6. As an exception to the Sections above, you may also combine or
751 link a "work that uses the Library" with the Library to produce a
752 work containing portions of the Library, and distribute that work
753 under terms of your choice, provided that the terms permit
754 modification of the work for the customer's own use and reverse
755 engineering for debugging such modifications.
756
757   You must give prominent notice with each copy of the work that the
758 Library is used in it and that the Library and its use are covered by
759 this License.  You must supply a copy of this License.  If the work
760 during execution displays copyright notices, you must include the
761 copyright notice for the Library among them, as well as a reference
762 directing the user to the copy of this License.  Also, you must do one
763 of these things:
764
765     a) Accompany the work with the complete corresponding
766     machine-readable source code for the Library including whatever
767     changes were used in the work (which must be distributed under
768     Sections 1 and 2 above); and, if the work is an executable linked
769     with the Library, with the complete machine-readable "work that
770     uses the Library", as object code and/or source code, so that the
771     user can modify the Library and then relink to produce a modified
772     executable containing the modified Library.  (It is understood
773     that the user who changes the contents of definitions files in the
774     Library will not necessarily be able to recompile the application
775     to use the modified definitions.)
776
777     b) Use a suitable shared library mechanism for linking with the
778     Library.  A suitable mechanism is one that (1) uses at run time a
779     copy of the library already present on the user's computer system,
780     rather than copying library functions into the executable, and (2)
781     will operate properly with a modified version of the library, if
782     the user installs one, as long as the modified version is
783     interface-compatible with the version that the work was made with.
784
785     c) Accompany the work with a written offer, valid for at
786     least three years, to give the same user the materials
787     specified in Subsection 6a, above, for a charge no more
788     than the cost of performing this distribution.
789
790     d) If distribution of the work is made by offering access to copy
791     from a designated place, offer equivalent access to copy the above
792     specified materials from the same place.
793
794     e) Verify that the user has already received a copy of these
795     materials or that you have already sent this user a copy.
796
797   For an executable, the required form of the "work that uses the
798 Library" must include any data and utility programs needed for
799 reproducing the executable from it.  However, as a special exception,
800 the materials to be distributed need not include anything that is
801 normally distributed (in either source or binary form) with the major
802 components (compiler, kernel, and so on) of the operating system on
803 which the executable runs, unless that component itself accompanies
804 the executable.
805
806   It may happen that this requirement contradicts the license
807 restrictions of other proprietary libraries that do not normally
808 accompany the operating system.  Such a contradiction means you cannot
809 use both them and the Library together in an executable that you
810 distribute.
811
812   7. You may place library facilities that are a work based on the
813 Library side-by-side in a single library together with other library
814 facilities not covered by this License, and distribute such a combined
815 library, provided that the separate distribution of the work based on
816 the Library and of the other library facilities is otherwise
817 permitted, and provided that you do these two things:
818
819     a) Accompany the combined library with a copy of the same work
820     based on the Library, uncombined with any other library
821     facilities.  This must be distributed under the terms of the
822     Sections above.
823
824     b) Give prominent notice with the combined library of the fact
825     that part of it is a work based on the Library, and explaining
826     where to find the accompanying uncombined form of the same work.
827
828   8. You may not copy, modify, sublicense, link with, or distribute
829 the Library except as expressly provided under this License.  Any
830 attempt otherwise to copy, modify, sublicense, link with, or
831 distribute the Library is void, and will automatically terminate your
832 rights under this License.  However, parties who have received copies,
833 or rights, from you under this License will not have their licenses
834 terminated so long as such parties remain in full compliance.
835
836   9. You are not required to accept this License, since you have not
837 signed it.  However, nothing else grants you permission to modify or
838 distribute the Library or its derivative works.  These actions are
839 prohibited by law if you do not accept this License.  Therefore, by
840 modifying or distributing the Library (or any work based on the
841 Library), you indicate your acceptance of this License to do so, and
842 all its terms and conditions for copying, distributing or modifying
843 the Library or works based on it.
844
845   10. Each time you redistribute the Library (or any work based on the
846 Library), the recipient automatically receives a license from the
847 original licensor to copy, distribute, link with or modify the Library
848 subject to these terms and conditions.  You may not impose any further
849 restrictions on the recipients' exercise of the rights granted herein.
850 You are not responsible for enforcing compliance by third parties with
851 this License.
852
853   11. If, as a consequence of a court judgment or allegation of patent
854 infringement or for any other reason (not limited to patent issues),
855 conditions are imposed on you (whether by court order, agreement or
856 otherwise) that contradict the conditions of this License, they do not
857 excuse you from the conditions of this License.  If you cannot
858 distribute so as to satisfy simultaneously your obligations under this
859 License and any other pertinent obligations, then as a consequence you
860 may not distribute the Library at all.  For example, if a patent
861 license would not permit royalty-free redistribution of the Library by
862 all those who receive copies directly or indirectly through you, then
863 the only way you could satisfy both it and this License would be to
864 refrain entirely from distribution of the Library.
865
866 If any portion of this section is held invalid or unenforceable under any
867 particular circumstance, the balance of the section is intended to apply,
868 and the section as a whole is intended to apply in other circumstances.
869
870 It is not the purpose of this section to induce you to infringe any
871 patents or other property right claims or to contest validity of any
872 such claims; this section has the sole purpose of protecting the
873 integrity of the free software distribution system which is
874 implemented by public license practices.  Many people have made
875 generous contributions to the wide range of software distributed
876 through that system in reliance on consistent application of that
877 system; it is up to the author/donor to decide if he or she is willing
878 to distribute software through any other system and a licensee cannot
879 impose that choice.
880
881 This section is intended to make thoroughly clear what is believed to
882 be a consequence of the rest of this License.
883
884   12. If the distribution and/or use of the Library is restricted in
885 certain countries either by patents or by copyrighted interfaces, the
886 original copyright holder who places the Library under this License may add
887 an explicit geographical distribution limitation excluding those countries,
888 so that distribution is permitted only in or among countries not thus
889 excluded.  In such case, this License incorporates the limitation as if
890 written in the body of this License.
891
892   13. The Free Software Foundation may publish revised and/or new
893 versions of the Lesser General Public License from time to time.
894 Such new versions will be similar in spirit to the present version,
895 but may differ in detail to address new problems or concerns.
896
897 Each version is given a distinguishing version number.  If the Library
898 specifies a version number of this License which applies to it and
899 "any later version", you have the option of following the terms and
900 conditions either of that version or of any later version published by
901 the Free Software Foundation.  If the Library does not specify a
902 license version number, you may choose any version ever published by
903 the Free Software Foundation.
904
905   14. If you wish to incorporate parts of the Library into other free
906 programs whose distribution conditions are incompatible with these,
907 write to the author to ask for permission.  For software which is
908 copyrighted by the Free Software Foundation, write to the Free
909 Software Foundation; we sometimes make exceptions for this.  Our
910 decision will be guided by the two goals of preserving the free status
911 of all derivatives of our free software and of promoting the sharing
912 and reuse of software generally.
913
914                             NO WARRANTY
915
916   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
917 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
918 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
919 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
920 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
921 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
922 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
923 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
924 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
925
926   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
927 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
928 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
929 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
930 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
931 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
932 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
933 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
934 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
935 DAMAGES.
936
937                      END OF TERMS AND CONDITIONS
938
939            How to Apply These Terms to Your New Libraries
940
941   If you develop a new library, and you want it to be of the greatest
942 possible use to the public, we recommend making it free software that
943 everyone can redistribute and change.  You can do so by permitting
944 redistribution under these terms (or, alternatively, under the terms of the
945 ordinary General Public License).
946
947   To apply these terms, attach the following notices to the library.  It is
948 safest to attach them to the start of each source file to most effectively
949 convey the exclusion of warranty; and each file should have at least the
950 "copyright" line and a pointer to where the full notice is found.
951
952     <one line to give the library's name and a brief idea of what it does.>
953     Copyright (C) <year>  <name of author>
954
955     This library is free software; you can redistribute it and/or
956     modify it under the terms of the GNU Lesser General Public
957     License as published by the Free Software Foundation; either
958     version 2.1 of the License, or (at your option) any later version.
959
960     This library is distributed in the hope that it will be useful,
961     but WITHOUT ANY WARRANTY; without even the implied warranty of
962     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
963     Lesser General Public License for more details.
964
965     You should have received a copy of the GNU Lesser General Public
966     License along with this library; if not, write to the Free Software
967     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
968
969 Also add information on how to contact you by electronic and paper mail.
970
971 You should also get your employer (if you work as a programmer) or your
972 school, if any, to sign a "copyright disclaimer" for the library, if
973 necessary.  Here is a sample; alter the names:
974
975   Yoyodyne, Inc., hereby disclaims all copyright interest in the
976   library `Frob' (a library for tweaking knobs) written by James Random Hacker.
977
978   <signature of Ty Coon>, 1 April 1990
979   Ty Coon, President of Vice
980
981 That's all there is to it!
982
983
984 ============================================================================
985 The Apache Software License, Version 1.1
986
987 /*
988  * ============================================================================
989  *                   The Apache Software License, Version 1.1
990  * ============================================================================
991  * 
992  *    Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
993  * 
994  * Redistribution and use in source and binary forms, with or without modifica-
995  * tion, are permitted provided that the following conditions are met:
996  * 
997  * 1. Redistributions of  source code must  retain the above copyright  notice,
998  *    this list of conditions and the following disclaimer.
999  * 
1000  * 2. Redistributions in binary form must reproduce the above copyright notice,
1001  *    this list of conditions and the following disclaimer in the documentation
1002  *    and/or other materials provided with the distribution.
1003  * 
1004  * 3. The end-user documentation included with the redistribution, if any, must
1005  *    include  the following  acknowledgment:  "This product includes  software
1006  *    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
1007  *    Alternately, this  acknowledgment may  appear in the software itself,  if
1008  *    and wherever such third-party acknowledgments normally appear.
1009  * 
1010  * 4. The names "Ant" and  "Apache Software Foundation"  must not be used to
1011  *    endorse  or promote  products derived  from this  software without  prior
1012  *    written permission. For written permission, please contact
1013  *    apache@apache.org.
1014  * 
1015  * 5. Products  derived from this software may not  be called "Apache", nor may
1016  *    "Apache" appear  in their name,  without prior written permission  of the
1017  *    Apache Software Foundation.
1018  * 
1019  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
1020  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
1021  * FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
1022  * APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
1023  * INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
1024  * DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
1025  * OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
1026  * ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
1027  * (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
1028  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1029  * 
1030  * This software  consists of voluntary contributions made  by many individuals
1031  * on behalf of the  Apache Software Foundation.  For more  information  on the 
1032  * Apache Software Foundation, please see <http://www.apache.org/>.
1033  *
1034  */
1035
1036
1037
1038
1039 =============================================================================
1040 The ZLIB License
1041
1042 This software is provided 'as-is', without any express or implied
1043 warranty. In no event will the authors be held liable for any
1044 damages arising from the use of this software.
1045
1046 Permission is granted to anyone to use this software for any purpose,
1047 including commercial applications, and to alter it and redistribute
1048 it freely, subject to the following restrictions:
1049
1050 1. The origin of this software must not be misrepresented; you must
1051    not claim that you wrote the original software. If you use this
1052    software in a product, an acknowledgment in the product
1053    documentation would be appreciated but is not required.
1054
1055 2. Altered source versions must be plainly marked as such, and must
1056    not be misrepresented as being the original software.
1057
1058 3. This notice may not be removed or altered from any source
1059    distribution.
1060
1061
1062
1063 ================================================================================
1064 The Netscape Public License
1065
1066
1067      AMENDMENTS
1068
1069      The Netscape Public License Version 1.1 ("NPL") consists of the
1070      Mozilla Public License Version 1.1 with the following Amendments,
1071      including Exhibit A-Netscape Public License.  Files identified with
1072      "Exhibit A-Netscape Public License" are governed by the Netscape
1073      Public License Version 1.1.
1074
1075      Additional Terms applicable to the Netscape Public License.
1076           I. Effect.
1077           These additional terms described in this Netscape Public
1078           License -- Amendments shall apply to the Mozilla Communicator
1079           client code and to all Covered Code under this License.
1080
1081           II. "Netscape's Branded Code" means Covered Code that Netscape
1082           distributes and/or permits others to distribute under one or more
1083           trademark(s) which are controlled by Netscape but which are not
1084           licensed for use under this License.
1085
1086           III. Netscape and logo.
1087           This License does not grant any rights to use the trademarks
1088           "Netscape", the "Netscape N and horizon" logo or the "Netscape
1089           lighthouse" logo, "Netcenter", "Gecko", "Java" or "JavaScript",
1090           "Smart Browsing" even if such marks are included in the Original
1091           Code or Modifications.
1092
1093           IV. Inability to Comply Due to Contractual Obligation.
1094           Prior to licensing the Original Code under this License, Netscape
1095           has licensed third party code for use in Netscape's Branded Code.
1096           To the extent that Netscape is limited contractually from making
1097           such third party code available under this License, Netscape may
1098           choose to reintegrate such code into Covered Code without being
1099           required to distribute such code in Source Code form, even if
1100           such code would otherwise be considered "Modifications" under
1101           this License.
1102
1103           V. Use of Modifications and Covered Code by Initial Developer.
1104                V.1. In General.
1105                The obligations of Section 3 apply to Netscape, except to
1106                the extent specified in this Amendment, Section V.2 and V.3.
1107
1108                V.2. Other Products.
1109                Netscape may include Covered Code in products other than the
1110                Netscape's Branded Code which are released by Netscape
1111                during the two (2) years following the release date of the
1112                Original Code, without such additional products becoming
1113                subject to the terms of this License, and may license such
1114                additional products on different terms from those contained
1115                in this License.
1116
1117                V.3. Alternative Licensing.
1118                Netscape may license the Source Code of Netscape's Branded
1119                Code, including Modifications incorporated therein, without
1120                such Netscape Branded Code becoming subject to the terms of
1121                this License, and may license such Netscape Branded Code on
1122                different terms from those contained in this License.
1123
1124           VI. Litigation.
1125           Notwithstanding the limitations of Section 11 above, the
1126           provisions regarding litigation in Section 11(a), (b) and (c) of
1127           the License shall apply to all disputes relating to this License.
1128
1129      EXHIBIT A-Netscape Public License.
1130
1131           "The contents of this file are subject to the Netscape Public
1132           License Version 1.1 (the "License"); you may not use this file
1133           except in compliance with the License. You may obtain a copy of
1134           the License at http://www.mozilla.org/NPL/
1135
1136           Software distributed under the License is distributed on an "AS
1137           IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
1138           implied. See the License for the specific language governing
1139           rights and limitations under the License.
1140
1141           The Original Code is Mozilla Communicator client code, released
1142           March 31, 1998.
1143
1144           The Initial Developer of the Original Code is Netscape
1145           Communications Corporation. Portions created by Netscape are
1146           Copyright (C) 1998-1999 Netscape Communications Corporation. All
1147           Rights Reserved.
1148
1149           Contributor(s): ______________________________________.
1150
1151           Alternatively, the contents of this file may be used under the
1152           terms of the _____ license (the "[___] License"), in which case
1153           the provisions of [______] License are applicable  instead of
1154           those above.  If you wish to allow use of your version of this
1155           file only under the terms of the [____] License and not to allow
1156           others to use your version of this file under the NPL, indicate
1157           your decision by deleting  the provisions above and replace  them
1158           with the notice and other provisions required by the [___]
1159           License.  If you do not delete the provisions above, a recipient
1160           may use your version of this file under either the NPL or the
1161           [___] License."
1162
1163      ----------------------------------------------------------------------
1164
1165                           MOZILLA PUBLIC LICENSE
1166                                 Version 1.1
1167
1168                               ---------------
1169
1170 1. Definitions.
1171
1172      1.0.1. "Commercial Use" means distribution or otherwise making the
1173      Covered Code available to a third party.
1174
1175      1.1. "Contributor" means each entity that creates or contributes to
1176      the creation of Modifications.
1177
1178      1.2. "Contributor Version" means the combination of the Original
1179      Code, prior Modifications used by a Contributor, and the Modifications
1180      made by that particular Contributor.
1181
1182      1.3. "Covered Code" means the Original Code or Modifications or the
1183      combination of the Original Code and Modifications, in each case
1184      including portions thereof.
1185
1186      1.4. "Electronic Distribution Mechanism" means a mechanism generally
1187      accepted in the software development community for the electronic
1188      transfer of data.
1189
1190      1.5. "Executable" means Covered Code in any form other than Source
1191      Code.
1192
1193      1.6. "Initial Developer" means the individual or entity identified
1194      as the Initial Developer in the Source Code notice required by Exhibit
1195      A.
1196
1197      1.7. "Larger Work" means a work which combines Covered Code or
1198      portions thereof with code not governed by the terms of this License.
1199
1200      1.8. "License" means this document.
1201
1202      1.8.1. "Licensable" means having the right to grant, to the maximum
1203      extent possible, whether at the time of the initial grant or
1204      subsequently acquired, any and all of the rights conveyed herein.
1205
1206      1.9. "Modifications" means any addition to or deletion from the
1207      substance or structure of either the Original Code or any previous
1208      Modifications. When Covered Code is released as a series of files, a
1209      Modification is:
1210           A. Any addition to or deletion from the contents of a file
1211           containing Original Code or previous Modifications.
1212
1213           B. Any new file that contains any part of the Original Code or
1214           previous Modifications.
1215
1216      1.10. "Original Code" means Source Code of computer software code
1217      which is described in the Source Code notice required by Exhibit A as
1218      Original Code, and which, at the time of its release under this
1219      License is not already Covered Code governed by this License.
1220
1221      1.10.1. "Patent Claims" means any patent claim(s), now owned or
1222      hereafter acquired, including without limitation,  method, process,
1223      and apparatus claims, in any patent Licensable by grantor.
1224
1225      1.11. "Source Code" means the preferred form of the Covered Code for
1226      making modifications to it, including all modules it contains, plus
1227      any associated interface definition files, scripts used to control
1228      compilation and installation of an Executable, or source code
1229      differential comparisons against either the Original Code or another
1230      well known, available Covered Code of the Contributor's choice. The
1231      Source Code can be in a compressed or archival form, provided the
1232      appropriate decompression or de-archiving software is widely available
1233      for no charge.
1234
1235      1.12. "You" (or "Your")  means an individual or a legal entity
1236      exercising rights under, and complying with all of the terms of, this
1237      License or a future version of this License issued under Section 6.1.
1238      For legal entities, "You" includes any entity which controls, is
1239      controlled by, or is under common control with You. For purposes of
1240      this definition, "control" means (a) the power, direct or indirect,
1241      to cause the direction or management of such entity, whether by
1242      contract or otherwise, or (b) ownership of more than fifty percent
1243      (50%) of the outstanding shares or beneficial ownership of such
1244      entity.
1245
1246 2. Source Code License.
1247
1248      2.1. The Initial Developer Grant.
1249      The Initial Developer hereby grants You a world-wide, royalty-free,
1250      non-exclusive license, subject to third party intellectual property
1251      claims:
1252           (a)  under intellectual property rights (other than patent or
1253           trademark) Licensable by Initial Developer to use, reproduce,
1254           modify, display, perform, sublicense and distribute the Original
1255           Code (or portions thereof) with or without Modifications, and/or
1256           as part of a Larger Work; and
1257
1258           (b) under Patents Claims infringed by the making, using or
1259           selling of Original Code, to make, have made, use, practice,
1260           sell, and offer for sale, and/or otherwise dispose of the
1261           Original Code (or portions thereof).
1262
1263           (c) the licenses granted in this Section 2.1(a) and (b) are
1264           effective on the date Initial Developer first distributes
1265           Original Code under the terms of this License.
1266
1267           (d) Notwithstanding Section 2.1(b) above, no patent license is
1268           granted: 1) for code that You delete from the Original Code; 2)
1269           separate from the Original Code;  or 3) for infringements caused
1270           by: i) the modification of the Original Code or ii) the
1271           combination of the Original Code with other software or devices.
1272
1273      2.2. Contributor Grant.
1274      Subject to third party intellectual property claims, each Contributor
1275      hereby grants You a world-wide, royalty-free, non-exclusive license
1276
1277           (a)  under intellectual property rights (other than patent or
1278           trademark) Licensable by Contributor, to use, reproduce, modify,
1279           display, perform, sublicense and distribute the Modifications
1280           created by such Contributor (or portions thereof) either on an
1281           unmodified basis, with other Modifications, as Covered Code
1282           and/or as part of a Larger Work; and
1283
1284           (b) under Patent Claims infringed by the making, using, or
1285           selling of  Modifications made by that Contributor either alone
1286           and/or in combination with its Contributor Version (or portions
1287           of such combination), to make, use, sell, offer for sale, have
1288           made, and/or otherwise dispose of: 1) Modifications made by that
1289           Contributor (or portions thereof); and 2) the combination of
1290           Modifications made by that Contributor with its Contributor
1291           Version (or portions of such combination).
1292
1293           (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
1294           effective on the date Contributor first makes Commercial Use of
1295           the Covered Code.
1296
1297           (d)    Notwithstanding Section 2.2(b) above, no patent license is
1298           granted: 1) for any code that Contributor has deleted from the
1299           Contributor Version; 2)  separate from the Contributor Version;
1300           3)  for infringements caused by: i) third party modifications of
1301           Contributor Version or ii)  the combination of Modifications made
1302           by that Contributor with other software  (except as part of the
1303           Contributor Version) or other devices; or 4) under Patent Claims
1304           infringed by Covered Code in the absence of Modifications made by
1305           that Contributor.
1306
1307 3. Distribution Obligations.
1308
1309      3.1. Application of License.
1310      The Modifications which You create or to which You contribute are
1311      governed by the terms of this License, including without limitation
1312      Section 2.2. The Source Code version of Covered Code may be
1313      distributed only under the terms of this License or a future version
1314      of this License released under Section 6.1, and You must include a
1315      copy of this License with every copy of the Source Code You
1316      distribute. You may not offer or impose any terms on any Source Code
1317      version that alters or restricts the applicable version of this
1318      License or the recipients' rights hereunder. However, You may include
1319      an additional document offering the additional rights described in
1320      Section 3.5.
1321
1322      3.2. Availability of Source Code.
1323      Any Modification which You create or to which You contribute must be
1324      made available in Source Code form under the terms of this License
1325      either on the same media as an Executable version or via an accepted
1326      Electronic Distribution Mechanism to anyone to whom you made an
1327      Executable version available; and if made available via Electronic
1328      Distribution Mechanism, must remain available for at least twelve (12)
1329      months after the date it initially became available, or at least six
1330      (6) months after a subsequent version of that particular Modification
1331      has been made available to such recipients. You are responsible for
1332      ensuring that the Source Code version remains available even if the
1333      Electronic Distribution Mechanism is maintained by a third party.
1334
1335      3.3. Description of Modifications.
1336      You must cause all Covered Code to which You contribute to contain a
1337      file documenting the changes You made to create that Covered Code and
1338      the date of any change. You must include a prominent statement that
1339      the Modification is derived, directly or indirectly, from Original
1340      Code provided by the Initial Developer and including the name of the
1341      Initial Developer in (a) the Source Code, and (b) in any notice in an
1342      Executable version or related documentation in which You describe the
1343      origin or ownership of the Covered Code.
1344
1345      3.4. Intellectual Property Matters
1346           (a) Third Party Claims.
1347           If Contributor has knowledge that a license under a third party's
1348           intellectual property rights is required to exercise the rights
1349           granted by such Contributor under Sections 2.1 or 2.2,
1350           Contributor must include a text file with the Source Code
1351           distribution titled "LEGAL" which describes the claim and the
1352           party making the claim in sufficient detail that a recipient will
1353           know whom to contact. If Contributor obtains such knowledge after
1354           the Modification is made available as described in Section 3.2,
1355           Contributor shall promptly modify the LEGAL file in all copies
1356           Contributor makes available thereafter and shall take other steps
1357           (such as notifying appropriate mailing lists or newsgroups)
1358           reasonably calculated to inform those who received the Covered
1359           Code that new knowledge has been obtained.
1360
1361           (b) Contributor APIs.
1362           If Contributor's Modifications include an application programming
1363           interface and Contributor has knowledge of patent licenses which
1364           are reasonably necessary to implement that API, Contributor must
1365           also include this information in the LEGAL file.
1366
1367                (c)    Representations.
1368           Contributor represents that, except as disclosed pursuant to
1369           Section 3.4(a) above, Contributor believes that Contributor's
1370           Modifications are Contributor's original creation(s) and/or
1371           Contributor has sufficient rights to grant the rights conveyed by
1372           this License.
1373
1374      3.5. Required Notices.
1375      You must duplicate the notice in Exhibit A in each file of the Source
1376      Code.  If it is not possible to put such notice in a particular Source
1377      Code file due to its structure, then You must include such notice in a
1378      location (such as a relevant directory) where a user would be likely
1379      to look for such a notice.  If You created one or more Modification(s)
1380      You may add your name as a Contributor to the notice described in
1381      Exhibit A.  You must also duplicate this License in any documentation
1382      for the Source Code where You describe recipients' rights or ownership
1383      rights relating to Covered Code.  You may choose to offer, and to
1384      charge a fee for, warranty, support, indemnity or liability
1385      obligations to one or more recipients of Covered Code. However, You
1386      may do so only on Your own behalf, and not on behalf of the Initial
1387      Developer or any Contributor. You must make it absolutely clear than
1388      any such warranty, support, indemnity or liability obligation is
1389      offered by You alone, and You hereby agree to indemnify the Initial
1390      Developer and every Contributor for any liability incurred by the
1391      Initial Developer or such Contributor as a result of warranty,
1392      support, indemnity or liability terms You offer.
1393
1394      3.6. Distribution of Executable Versions.
1395      You may distribute Covered Code in Executable form only if the
1396      requirements of Section 3.1-3.5 have been met for that Covered Code,
1397      and if You include a notice stating that the Source Code version of
1398      the Covered Code is available under the terms of this License,
1399      including a description of how and where You have fulfilled the
1400      obligations of Section 3.2. The notice must be conspicuously included
1401      in any notice in an Executable version, related documentation or
1402      collateral in which You describe recipients' rights relating to the
1403      Covered Code. You may distribute the Executable version of Covered
1404      Code or ownership rights under a license of Your choice, which may
1405      contain terms different from this License, provided that You are in
1406      compliance with the terms of this License and that the license for the
1407      Executable version does not attempt to limit or alter the recipient's
1408      rights in the Source Code version from the rights set forth in this
1409      License. If You distribute the Executable version under a different
1410      license You must make it absolutely clear that any terms which differ
1411      from this License are offered by You alone, not by the Initial
1412      Developer or any Contributor. You hereby agree to indemnify the
1413      Initial Developer and every Contributor for any liability incurred by
1414      the Initial Developer or such Contributor as a result of any such
1415      terms You offer.
1416
1417      3.7. Larger Works.
1418      You may create a Larger Work by combining Covered Code with other code
1419      not governed by the terms of this License and distribute the Larger
1420      Work as a single product. In such a case, You must make sure the
1421      requirements of this License are fulfilled for the Covered Code.
1422
1423 4. Inability to Comply Due to Statute or Regulation.
1424
1425      If it is impossible for You to comply with any of the terms of this
1426      License with respect to some or all of the Covered Code due to
1427      statute, judicial order, or regulation then You must: (a) comply with
1428      the terms of this License to the maximum extent possible; and (b)
1429      describe the limitations and the code they affect. Such description
1430      must be included in the LEGAL file described in Section 3.4 and must
1431      be included with all distributions of the Source Code. Except to the
1432      extent prohibited by statute or regulation, such description must be
1433      sufficiently detailed for a recipient of ordinary skill to be able to
1434      understand it.
1435
1436 5. Application of this License.
1437
1438      This License applies to code to which the Initial Developer has
1439      attached the notice in Exhibit A and to related Covered Code.
1440
1441 6. Versions of the License.
1442
1443      6.1. New Versions.
1444      Netscape Communications Corporation ("Netscape") may publish revised
1445      and/or new versions of the License from time to time. Each version
1446      will be given a distinguishing version number.
1447
1448      6.2. Effect of New Versions.
1449      Once Covered Code has been published under a particular version of the
1450      License, You may always continue to use it under the terms of that
1451      version. You may also choose to use such Covered Code under the terms
1452      of any subsequent version of the License published by Netscape. No one
1453      other than Netscape has the right to modify the terms applicable to
1454      Covered Code created under this License.
1455
1456      6.3. Derivative Works.
1457      If You create or use a modified version of this License (which you may
1458      only do in order to apply it to code which is not already Covered Code
1459      governed by this License), You must (a) rename Your license so that
1460      the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
1461      "MPL", "NPL" or any confusingly similar phrase do not appear in your
1462      license (except to note that your license differs from this License)
1463      and (b) otherwise make it clear that Your version of the license
1464      contains terms which differ from the Mozilla Public License and
1465      Netscape Public License. (Filling in the name of the Initial
1466      Developer, Original Code or Contributor in the notice described in
1467      Exhibit A shall not of themselves be deemed to be modifications of
1468      this License.)
1469
1470 7. DISCLAIMER OF WARRANTY.
1471
1472      COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
1473      WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
1474      WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
1475      DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
1476      THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
1477      IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
1478      YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
1479      COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
1480      OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
1481      ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
1482
1483 8. TERMINATION.
1484
1485      8.1.  This License and the rights granted hereunder will terminate
1486      automatically if You fail to comply with terms herein and fail to cure
1487      such breach within 30 days of becoming aware of the breach. All
1488      sublicenses to the Covered Code which are properly granted shall
1489      survive any termination of this License. Provisions which, by their
1490      nature, must remain in effect beyond the termination of this License
1491      shall survive.
1492
1493      8.2.  If You initiate litigation by asserting a patent infringement
1494      claim (excluding declatory judgment actions) against Initial Developer
1495      or a Contributor (the Initial Developer or Contributor against whom
1496      You file such action is referred to as "Participant")  alleging that:
1497
1498      (a)  such Participant's Contributor Version directly or indirectly
1499      infringes any patent, then any and all rights granted by such
1500      Participant to You under Sections 2.1 and/or 2.2 of this License
1501      shall, upon 60 days notice from Participant terminate prospectively,
1502      unless if within 60 days after receipt of notice You either: (i)
1503      agree in writing to pay Participant a mutually agreeable reasonable
1504      royalty for Your past and future use of Modifications made by such
1505      Participant, or (ii) withdraw Your litigation claim with respect to
1506      the Contributor Version against such Participant.  If within 60 days
1507      of notice, a reasonable royalty and payment arrangement are not
1508      mutually agreed upon in writing by the parties or the litigation claim
1509      is not withdrawn, the rights granted by Participant to You under
1510      Sections 2.1 and/or 2.2 automatically terminate at the expiration of
1511      the 60 day notice period specified above.
1512
1513      (b)  any software, hardware, or device, other than such Participant's
1514      Contributor Version, directly or indirectly infringes any patent, then
1515      any rights granted to You by such Participant under Sections 2.1(b)
1516      and 2.2(b) are revoked effective as of the date You first made, used,
1517      sold, distributed, or had made, Modifications made by that
1518      Participant.
1519
1520      8.3.  If You assert a patent infringement claim against Participant
1521      alleging that such Participant's Contributor Version directly or
1522      indirectly infringes any patent where such claim is resolved (such as
1523      by license or settlement) prior to the initiation of patent
1524      infringement litigation, then the reasonable value of the licenses
1525      granted by such Participant under Sections 2.1 or 2.2 shall be taken
1526      into account in determining the amount or value of any payment or
1527      license.
1528
1529      8.4.  In the event of termination under Sections 8.1 or 8.2 above,
1530      all end user license agreements (excluding distributors and resellers)
1531      which have been validly granted by You or any distributor hereunder
1532      prior to termination shall survive termination.
1533
1534 9. LIMITATION OF LIABILITY.
1535
1536      UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
1537      (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
1538      DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
1539      OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
1540      ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
1541      CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
1542      WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
1543      COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
1544      INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
1545      LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
1546      RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
1547      PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
1548      EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
1549      THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
1550
1551 10. U.S. GOVERNMENT END USERS.
1552
1553      The Covered Code is a "commercial item," as that term is defined in
1554      48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
1555      software" and "commercial computer software documentation," as such
1556      terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
1557      C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
1558      all U.S. Government End Users acquire Covered Code with only those
1559      rights set forth herein.
1560
1561 11. MISCELLANEOUS.
1562
1563      This License represents the complete agreement concerning subject
1564      matter hereof. If any provision of this License is held to be
1565      unenforceable, such provision shall be reformed only to the extent
1566      necessary to make it enforceable. This License shall be governed by
1567      California law provisions (except to the extent applicable law, if
1568      any, provides otherwise), excluding its conflict-of-law provisions.
1569      With respect to disputes in which at least one party is a citizen of,
1570      or an entity chartered or registered to do business in the United
1571      States of America, any litigation relating to this License shall be
1572      subject to the jurisdiction of the Federal Courts of the Northern
1573      District of California, with venue lying in Santa Clara County,
1574      California, with the losing party responsible for costs, including
1575      without limitation, court costs and reasonable attorneys' fees and
1576      expenses. The application of the United Nations Convention on
1577      Contracts for the International Sale of Goods is expressly excluded.
1578      Any law or regulation which provides that the language of a contract
1579      shall be construed against the drafter shall not apply to this
1580      License.
1581
1582 12. RESPONSIBILITY FOR CLAIMS.
1583
1584      As between Initial Developer and the Contributors, each party is
1585      responsible for claims and damages arising, directly or indirectly,
1586      out of its utilization of rights under this License and You agree to
1587      work with Initial Developer and Contributors to distribute such
1588      responsibility on an equitable basis. Nothing herein is intended or
1589      shall be deemed to constitute any admission of liability.
1590
1591 13. MULTIPLE-LICENSED CODE.
1592
1593      Initial Developer may designate portions of the Covered Code as
1594      "Multiple-Licensed".  "Multiple-Licensed" means that the Initial
1595      Developer permits you to utilize portions of the Covered Code under
1596      Your choice of the NPL or the alternative licenses, if any, specified
1597      by the Initial Developer in the file described in Exhibit A.
1598
1599 EXHIBIT A -Mozilla Public License.
1600
1601      ``The contents of this file are subject to the Mozilla Public License
1602      Version 1.1 (the "License"); you may not use this file except in
1603      compliance with the License. You may obtain a copy of the License at
1604      http://www.mozilla.org/MPL/
1605
1606      Software distributed under the License is distributed on an "AS IS"
1607      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
1608      License for the specific language governing rights and limitations
1609      under the License.
1610
1611      The Original Code is ______________________________________.
1612
1613      The Initial Developer of the Original Code is ________________________.
1614      Portions created by ______________________ are Copyright (C) ______
1615      _______________________. All Rights Reserved.
1616
1617      Contributor(s): ______________________________________.
1618
1619      Alternatively, the contents of this file may be used under the terms
1620      of the _____ license (the  "[___] License"), in which case the
1621      provisions of [______] License are applicable instead of those
1622      above.  If you wish to allow use of your version of this file only
1623      under the terms of the [____] License and not to allow others to use
1624      your version of this file under the MPL, indicate your decision by
1625      deleting  the provisions above and replace  them with the notice and
1626      other provisions required by the [___] License.  If you do not delete
1627      the provisions above, a recipient may use your version of this file
1628      under either the MPL or the [___] License."
1629
1630      [NOTE: The text of this Exhibit A may differ slightly from the text of
1631      the notices in the Source Code files of the Original Code. You should
1632      use the text of this Exhibit A rather than the text found in the
1633      Original Code Source Code for Your Modifications.]
1634
1635
1636
1637 ================================================================================
1638 The Mozilla Public License
1639
1640                           MOZILLA PUBLIC LICENSE
1641                                 Version 1.1
1642
1643                               ---------------
1644
1645 1. Definitions.
1646
1647      1.0.1. "Commercial Use" means distribution or otherwise making the
1648      Covered Code available to a third party.
1649
1650      1.1. "Contributor" means each entity that creates or contributes to
1651      the creation of Modifications.
1652
1653      1.2. "Contributor Version" means the combination of the Original
1654      Code, prior Modifications used by a Contributor, and the Modifications
1655      made by that particular Contributor.
1656
1657      1.3. "Covered Code" means the Original Code or Modifications or the
1658      combination of the Original Code and Modifications, in each case
1659      including portions thereof.
1660
1661      1.4. "Electronic Distribution Mechanism" means a mechanism generally
1662      accepted in the software development community for the electronic
1663      transfer of data.
1664
1665      1.5. "Executable" means Covered Code in any form other than Source
1666      Code.
1667
1668      1.6. "Initial Developer" means the individual or entity identified
1669      as the Initial Developer in the Source Code notice required by Exhibit
1670      A.
1671
1672      1.7. "Larger Work" means a work which combines Covered Code or
1673      portions thereof with code not governed by the terms of this License.
1674
1675      1.8. "License" means this document.
1676
1677      1.8.1. "Licensable" means having the right to grant, to the maximum
1678      extent possible, whether at the time of the initial grant or
1679      subsequently acquired, any and all of the rights conveyed herein.
1680
1681      1.9. "Modifications" means any addition to or deletion from the
1682      substance or structure of either the Original Code or any previous
1683      Modifications. When Covered Code is released as a series of files, a
1684      Modification is:
1685           A. Any addition to or deletion from the contents of a file
1686           containing Original Code or previous Modifications.
1687
1688           B. Any new file that contains any part of the Original Code or
1689           previous Modifications.
1690
1691      1.10. "Original Code" means Source Code of computer software code
1692      which is described in the Source Code notice required by Exhibit A as
1693      Original Code, and which, at the time of its release under this
1694      License is not already Covered Code governed by this License.
1695
1696      1.10.1. "Patent Claims" means any patent claim(s), now owned or
1697      hereafter acquired, including without limitation,  method, process,
1698      and apparatus claims, in any patent Licensable by grantor.
1699
1700      1.11. "Source Code" means the preferred form of the Covered Code for
1701      making modifications to it, including all modules it contains, plus
1702      any associated interface definition files, scripts used to control
1703      compilation and installation of an Executable, or source code
1704      differential comparisons against either the Original Code or another
1705      well known, available Covered Code of the Contributor's choice. The
1706      Source Code can be in a compressed or archival form, provided the
1707      appropriate decompression or de-archiving software is widely available
1708      for no charge.
1709
1710      1.12. "You" (or "Your")  means an individual or a legal entity
1711      exercising rights under, and complying with all of the terms of, this
1712      License or a future version of this License issued under Section 6.1.
1713      For legal entities, "You" includes any entity which controls, is
1714      controlled by, or is under common control with You. For purposes of
1715      this definition, "control" means (a) the power, direct or indirect,
1716      to cause the direction or management of such entity, whether by
1717      contract or otherwise, or (b) ownership of more than fifty percent
1718      (50%) of the outstanding shares or beneficial ownership of such
1719      entity.
1720
1721 2. Source Code License.
1722
1723      2.1. The Initial Developer Grant.
1724      The Initial Developer hereby grants You a world-wide, royalty-free,
1725      non-exclusive license, subject to third party intellectual property
1726      claims:
1727           (a)  under intellectual property rights (other than patent or
1728           trademark) Licensable by Initial Developer to use, reproduce,
1729           modify, display, perform, sublicense and distribute the Original
1730           Code (or portions thereof) with or without Modifications, and/or
1731           as part of a Larger Work; and
1732
1733           (b) under Patents Claims infringed by the making, using or
1734           selling of Original Code, to make, have made, use, practice,
1735           sell, and offer for sale, and/or otherwise dispose of the
1736           Original Code (or portions thereof).
1737
1738           (c) the licenses granted in this Section 2.1(a) and (b) are
1739           effective on the date Initial Developer first distributes
1740           Original Code under the terms of this License.
1741
1742           (d) Notwithstanding Section 2.1(b) above, no patent license is
1743           granted: 1) for code that You delete from the Original Code; 2)
1744           separate from the Original Code;  or 3) for infringements caused
1745           by: i) the modification of the Original Code or ii) the
1746           combination of the Original Code with other software or devices.
1747
1748      2.2. Contributor Grant.
1749      Subject to third party intellectual property claims, each Contributor
1750      hereby grants You a world-wide, royalty-free, non-exclusive license
1751
1752           (a)  under intellectual property rights (other than patent or
1753           trademark) Licensable by Contributor, to use, reproduce, modify,
1754           display, perform, sublicense and distribute the Modifications
1755           created by such Contributor (or portions thereof) either on an
1756           unmodified basis, with other Modifications, as Covered Code
1757           and/or as part of a Larger Work; and
1758
1759           (b) under Patent Claims infringed by the making, using, or
1760           selling of  Modifications made by that Contributor either alone
1761           and/or in combination with its Contributor Version (or portions
1762           of such combination), to make, use, sell, offer for sale, have
1763           made, and/or otherwise dispose of: 1) Modifications made by that
1764           Contributor (or portions thereof); and 2) the combination of
1765           Modifications made by that Contributor with its Contributor
1766           Version (or portions of such combination).
1767
1768           (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
1769           effective on the date Contributor first makes Commercial Use of
1770           the Covered Code.
1771
1772           (d)    Notwithstanding Section 2.2(b) above, no patent license is
1773           granted: 1) for any code that Contributor has deleted from the
1774           Contributor Version; 2)  separate from the Contributor Version;
1775           3)  for infringements caused by: i) third party modifications of
1776           Contributor Version or ii)  the combination of Modifications made
1777           by that Contributor with other software  (except as part of the
1778           Contributor Version) or other devices; or 4) under Patent Claims
1779           infringed by Covered Code in the absence of Modifications made by
1780           that Contributor.
1781
1782 3. Distribution Obligations.
1783
1784      3.1. Application of License.
1785      The Modifications which You create or to which You contribute are
1786      governed by the terms of this License, including without limitation
1787      Section 2.2. The Source Code version of Covered Code may be
1788      distributed only under the terms of this License or a future version
1789      of this License released under Section 6.1, and You must include a
1790      copy of this License with every copy of the Source Code You
1791      distribute. You may not offer or impose any terms on any Source Code
1792      version that alters or restricts the applicable version of this
1793      License or the recipients' rights hereunder. However, You may include
1794      an additional document offering the additional rights described in
1795      Section 3.5.
1796
1797      3.2. Availability of Source Code.
1798      Any Modification which You create or to which You contribute must be
1799      made available in Source Code form under the terms of this License
1800      either on the same media as an Executable version or via an accepted
1801      Electronic Distribution Mechanism to anyone to whom you made an
1802      Executable version available; and if made available via Electronic
1803      Distribution Mechanism, must remain available for at least twelve (12)
1804      months after the date it initially became available, or at least six
1805      (6) months after a subsequent version of that particular Modification
1806      has been made available to such recipients. You are responsible for
1807      ensuring that the Source Code version remains available even if the
1808      Electronic Distribution Mechanism is maintained by a third party.
1809
1810      3.3. Description of Modifications.
1811      You must cause all Covered Code to which You contribute to contain a
1812      file documenting the changes You made to create that Covered Code and
1813      the date of any change. You must include a prominent statement that
1814      the Modification is derived, directly or indirectly, from Original
1815      Code provided by the Initial Developer and including the name of the
1816      Initial Developer in (a) the Source Code, and (b) in any notice in an
1817      Executable version or related documentation in which You describe the
1818      origin or ownership of the Covered Code.
1819
1820      3.4. Intellectual Property Matters
1821           (a) Third Party Claims.
1822           If Contributor has knowledge that a license under a third party's
1823           intellectual property rights is required to exercise the rights
1824           granted by such Contributor under Sections 2.1 or 2.2,
1825           Contributor must include a text file with the Source Code
1826           distribution titled "LEGAL" which describes the claim and the
1827           party making the claim in sufficient detail that a recipient will
1828           know whom to contact. If Contributor obtains such knowledge after
1829           the Modification is made available as described in Section 3.2,
1830           Contributor shall promptly modify the LEGAL file in all copies
1831           Contributor makes available thereafter and shall take other steps
1832           (such as notifying appropriate mailing lists or newsgroups)
1833           reasonably calculated to inform those who received the Covered
1834           Code that new knowledge has been obtained.
1835
1836           (b) Contributor APIs.
1837           If Contributor's Modifications include an application programming
1838           interface and Contributor has knowledge of patent licenses which
1839           are reasonably necessary to implement that API, Contributor must
1840           also include this information in the LEGAL file.
1841
1842                (c)    Representations.
1843           Contributor represents that, except as disclosed pursuant to
1844           Section 3.4(a) above, Contributor believes that Contributor's
1845           Modifications are Contributor's original creation(s) and/or
1846           Contributor has sufficient rights to grant the rights conveyed by
1847           this License.
1848
1849      3.5. Required Notices.
1850      You must duplicate the notice in Exhibit A in each file of the Source
1851      Code.  If it is not possible to put such notice in a particular Source
1852      Code file due to its structure, then You must include such notice in a
1853      location (such as a relevant directory) where a user would be likely
1854      to look for such a notice.  If You created one or more Modification(s)
1855      You may add your name as a Contributor to the notice described in
1856      Exhibit A.  You must also duplicate this License in any documentation
1857      for the Source Code where You describe recipients' rights or ownership
1858      rights relating to Covered Code.  You may choose to offer, and to
1859      charge a fee for, warranty, support, indemnity or liability
1860      obligations to one or more recipients of Covered Code. However, You
1861      may do so only on Your own behalf, and not on behalf of the Initial
1862      Developer or any Contributor. You must make it absolutely clear than
1863      any such warranty, support, indemnity or liability obligation is
1864      offered by You alone, and You hereby agree to indemnify the Initial
1865      Developer and every Contributor for any liability incurred by the
1866      Initial Developer or such Contributor as a result of warranty,
1867      support, indemnity or liability terms You offer.
1868
1869      3.6. Distribution of Executable Versions.
1870      You may distribute Covered Code in Executable form only if the
1871      requirements of Section 3.1-3.5 have been met for that Covered Code,
1872      and if You include a notice stating that the Source Code version of
1873      the Covered Code is available under the terms of this License,
1874      including a description of how and where You have fulfilled the
1875      obligations of Section 3.2. The notice must be conspicuously included
1876      in any notice in an Executable version, related documentation or
1877      collateral in which You describe recipients' rights relating to the
1878      Covered Code. You may distribute the Executable version of Covered
1879      Code or ownership rights under a license of Your choice, which may
1880      contain terms different from this License, provided that You are in
1881      compliance with the terms of this License and that the license for the
1882      Executable version does not attempt to limit or alter the recipient's
1883      rights in the Source Code version from the rights set forth in this
1884      License. If You distribute the Executable version under a different
1885      license You must make it absolutely clear that any terms which differ
1886      from this License are offered by You alone, not by the Initial
1887      Developer or any Contributor. You hereby agree to indemnify the
1888      Initial Developer and every Contributor for any liability incurred by
1889      the Initial Developer or such Contributor as a result of any such
1890      terms You offer.
1891
1892      3.7. Larger Works.
1893      You may create a Larger Work by combining Covered Code with other code
1894      not governed by the terms of this License and distribute the Larger
1895      Work as a single product. In such a case, You must make sure the
1896      requirements of this License are fulfilled for the Covered Code.
1897
1898 4. Inability to Comply Due to Statute or Regulation.
1899
1900      If it is impossible for You to comply with any of the terms of this
1901      License with respect to some or all of the Covered Code due to
1902      statute, judicial order, or regulation then You must: (a) comply with
1903      the terms of this License to the maximum extent possible; and (b)
1904      describe the limitations and the code they affect. Such description
1905      must be included in the LEGAL file described in Section 3.4 and must
1906      be included with all distributions of the Source Code. Except to the
1907      extent prohibited by statute or regulation, such description must be
1908      sufficiently detailed for a recipient of ordinary skill to be able to
1909      understand it.
1910
1911 5. Application of this License.
1912
1913      This License applies to code to which the Initial Developer has
1914      attached the notice in Exhibit A and to related Covered Code.
1915
1916 6. Versions of the License.
1917
1918      6.1. New Versions.
1919      Netscape Communications Corporation ("Netscape") may publish revised
1920      and/or new versions of the License from time to time. Each version
1921      will be given a distinguishing version number.
1922
1923      6.2. Effect of New Versions.
1924      Once Covered Code has been published under a particular version of the
1925      License, You may always continue to use it under the terms of that
1926      version. You may also choose to use such Covered Code under the terms
1927      of any subsequent version of the License published by Netscape. No one
1928      other than Netscape has the right to modify the terms applicable to
1929      Covered Code created under this License.
1930
1931      6.3. Derivative Works.
1932      If You create or use a modified version of this License (which you may
1933      only do in order to apply it to code which is not already Covered Code
1934      governed by this License), You must (a) rename Your license so that
1935      the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
1936      "MPL", "NPL" or any confusingly similar phrase do not appear in your
1937      license (except to note that your license differs from this License)
1938      and (b) otherwise make it clear that Your version of the license
1939      contains terms which differ from the Mozilla Public License and
1940      Netscape Public License. (Filling in the name of the Initial
1941      Developer, Original Code or Contributor in the notice described in
1942      Exhibit A shall not of themselves be deemed to be modifications of
1943      this License.)
1944
1945 7. DISCLAIMER OF WARRANTY.
1946
1947      COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
1948      WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
1949      WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
1950      DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
1951      THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
1952      IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
1953      YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
1954      COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
1955      OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
1956      ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
1957
1958 8. TERMINATION.
1959
1960      8.1.  This License and the rights granted hereunder will terminate
1961      automatically if You fail to comply with terms herein and fail to cure
1962      such breach within 30 days of becoming aware of the breach. All
1963      sublicenses to the Covered Code which are properly granted shall
1964      survive any termination of this License. Provisions which, by their
1965      nature, must remain in effect beyond the termination of this License
1966      shall survive.
1967
1968      8.2.  If You initiate litigation by asserting a patent infringement
1969      claim (excluding declatory judgment actions) against Initial Developer
1970      or a Contributor (the Initial Developer or Contributor against whom
1971      You file such action is referred to as "Participant")  alleging that:
1972
1973      (a)  such Participant's Contributor Version directly or indirectly
1974      infringes any patent, then any and all rights granted by such
1975      Participant to You under Sections 2.1 and/or 2.2 of this License
1976      shall, upon 60 days notice from Participant terminate prospectively,
1977      unless if within 60 days after receipt of notice You either: (i)
1978      agree in writing to pay Participant a mutually agreeable reasonable
1979      royalty for Your past and future use of Modifications made by such
1980      Participant, or (ii) withdraw Your litigation claim with respect to
1981      the Contributor Version against such Participant.  If within 60 days
1982      of notice, a reasonable royalty and payment arrangement are not
1983      mutually agreed upon in writing by the parties or the litigation claim
1984      is not withdrawn, the rights granted by Participant to You under
1985      Sections 2.1 and/or 2.2 automatically terminate at the expiration of
1986      the 60 day notice period specified above.
1987
1988      (b)  any software, hardware, or device, other than such Participant's
1989      Contributor Version, directly or indirectly infringes any patent, then
1990      any rights granted to You by such Participant under Sections 2.1(b)
1991      and 2.2(b) are revoked effective as of the date You first made, used,
1992      sold, distributed, or had made, Modifications made by that
1993      Participant.
1994
1995      8.3.  If You assert a patent infringement claim against Participant
1996      alleging that such Participant's Contributor Version directly or
1997      indirectly infringes any patent where such claim is resolved (such as
1998      by license or settlement) prior to the initiation of patent
1999      infringement litigation, then the reasonable value of the licenses
2000      granted by such Participant under Sections 2.1 or 2.2 shall be taken
2001      into account in determining the amount or value of any payment or
2002      license.
2003
2004      8.4.  In the event of termination under Sections 8.1 or 8.2 above,
2005      all end user license agreements (excluding distributors and resellers)
2006      which have been validly granted by You or any distributor hereunder
2007      prior to termination shall survive termination.
2008
2009 9. LIMITATION OF LIABILITY.
2010
2011      UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
2012      (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
2013      DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
2014      OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
2015      ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
2016      CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
2017      WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
2018      COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
2019      INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
2020      LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
2021      RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
2022      PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
2023      EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
2024      THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
2025
2026 10. U.S. GOVERNMENT END USERS.
2027
2028      The Covered Code is a "commercial item," as that term is defined in
2029      48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
2030      software" and "commercial computer software documentation," as such
2031      terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
2032      C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
2033      all U.S. Government End Users acquire Covered Code with only those
2034      rights set forth herein.
2035
2036 11. MISCELLANEOUS.
2037
2038      This License represents the complete agreement concerning subject
2039      matter hereof. If any provision of this License is held to be
2040      unenforceable, such provision shall be reformed only to the extent
2041      necessary to make it enforceable. This License shall be governed by
2042      California law provisions (except to the extent applicable law, if
2043      any, provides otherwise), excluding its conflict-of-law provisions.
2044      With respect to disputes in which at least one party is a citizen of,
2045      or an entity chartered or registered to do business in the United
2046      States of America, any litigation relating to this License shall be
2047      subject to the jurisdiction of the Federal Courts of the Northern
2048      District of California, with venue lying in Santa Clara County,
2049      California, with the losing party responsible for costs, including
2050      without limitation, court costs and reasonable attorneys' fees and
2051      expenses. The application of the United Nations Convention on
2052      Contracts for the International Sale of Goods is expressly excluded.
2053      Any law or regulation which provides that the language of a contract
2054      shall be construed against the drafter shall not apply to this
2055      License.
2056
2057 12. RESPONSIBILITY FOR CLAIMS.
2058
2059      As between Initial Developer and the Contributors, each party is
2060      responsible for claims and damages arising, directly or indirectly,
2061      out of its utilization of rights under this License and You agree to
2062      work with Initial Developer and Contributors to distribute such
2063      responsibility on an equitable basis. Nothing herein is intended or
2064      shall be deemed to constitute any admission of liability.
2065
2066 13. MULTIPLE-LICENSED CODE.
2067
2068      Initial Developer may designate portions of the Covered Code as
2069      "Multiple-Licensed".  "Multiple-Licensed" means that the Initial
2070      Developer permits you to utilize portions of the Covered Code under
2071      Your choice of the NPL or the alternative licenses, if any, specified
2072      by the Initial Developer in the file described in Exhibit A.
2073
2074 EXHIBIT A -Mozilla Public License.
2075
2076      ``The contents of this file are subject to the Mozilla Public License
2077      Version 1.1 (the "License"); you may not use this file except in
2078      compliance with the License. You may obtain a copy of the License at
2079      http://www.mozilla.org/MPL/
2080
2081      Software distributed under the License is distributed on an "AS IS"
2082      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
2083      License for the specific language governing rights and limitations
2084      under the License.
2085
2086      The Original Code is ______________________________________.
2087
2088      The Initial Developer of the Original Code is ________________________.
2089      Portions created by ______________________ are Copyright (C) ______
2090      _______________________. All Rights Reserved.
2091
2092      Contributor(s): ______________________________________.
2093
2094      Alternatively, the contents of this file may be used under the terms
2095      of the _____ license (the  "[___] License"), in which case the
2096      provisions of [______] License are applicable instead of those
2097      above.  If you wish to allow use of your version of this file only
2098      under the terms of the [____] License and not to allow others to use
2099      your version of this file under the MPL, indicate your decision by
2100      deleting  the provisions above and replace  them with the notice and
2101      other provisions required by the [___] License.  If you do not delete
2102      the provisions above, a recipient may use your version of this file
2103      under either the MPL or the [___] License."
2104
2105      [NOTE: The text of this Exhibit A may differ slightly from the text of
2106      the notices in the Source Code files of the Original Code. You should
2107      use the text of this Exhibit A rather than the text found in the
2108      Original Code Source Code for Your Modifications.]
2109