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