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