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