Commit b75161c0 authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-11-02 gabriel

* The initial commit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d727ae6
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>jgraduate</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>LICENSE</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>\n
Apache License\n
Version 2.0, January 2004\n
http://www.apache.org/licenses/\n
\n
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n
\n
1. Definitions.\n
\n
"License" shall mean the terms and conditions for use, reproduction,\n
and distribution as defined by Sections 1 through 9 of this document.\n
\n
"Licensor" shall mean the copyright owner or entity authorized by\n
the copyright owner that is granting the License.\n
\n
"Legal Entity" shall mean the union of the acting entity and all\n
other entities that control, are controlled by, or are under common\n
control with that entity. For the purposes of this definition,\n
"control" means (i) the power, direct or indirect, to cause the\n
direction or management of such entity, whether by contract or\n
otherwise, or (ii) ownership of fifty percent (50%) or more of the\n
outstanding shares, or (iii) beneficial ownership of such entity.\n
\n
"You" (or "Your") shall mean an individual or Legal Entity\n
exercising permissions granted by this License.\n
\n
"Source" form shall mean the preferred form for making modifications,\n
including but not limited to software source code, documentation\n
source, and configuration files.\n
\n
"Object" form shall mean any form resulting from mechanical\n
transformation or translation of a Source form, including but\n
not limited to compiled object code, generated documentation,\n
and conversions to other media types.\n
\n
"Work" shall mean the work of authorship, whether in Source or\n
Object form, made available under the License, as indicated by a\n
copyright notice that is included in or attached to the work\n
(an example is provided in the Appendix below).\n
\n
"Derivative Works" shall mean any work, whether in Source or Object\n
form, that is based on (or derived from) the Work and for which the\n
editorial revisions, annotations, elaborations, or other modifications\n
represent, as a whole, an original work of authorship. For the purposes\n
of this License, Derivative Works shall not include works that remain\n
separable from, or merely link (or bind by name) to the interfaces of,\n
the Work and Derivative Works thereof.\n
\n
"Contribution" shall mean any work of authorship, including\n
the original version of the Work and any modifications or additions\n
to that Work or Derivative Works thereof, that is intentionally\n
submitted to Licensor for inclusion in the Work by the copyright owner\n
or by an individual or Legal Entity authorized to submit on behalf of\n
the copyright owner. For the purposes of this definition, "submitted"\n
means any form of electronic, verbal, or written communication sent\n
to the Licensor or its representatives, including but not limited to\n
communication on electronic mailing lists, source code control systems,\n
and issue tracking systems that are managed by, or on behalf of, the\n
Licensor for the purpose of discussing and improving the Work, but\n
excluding communication that is conspicuously marked or otherwise\n
designated in writing by the copyright owner as "Not a Contribution."\n
\n
"Contributor" shall mean Licensor and any individual or Legal Entity\n
on behalf of whom a Contribution has been received by Licensor and\n
subsequently incorporated within the Work.\n
\n
2. Grant of Copyright License. Subject to the terms and conditions of\n
this License, each Contributor hereby grants to You a perpetual,\n
worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
copyright license to reproduce, prepare Derivative Works of,\n
publicly display, publicly perform, sublicense, and distribute the\n
Work and such Derivative Works in Source or Object form.\n
\n
3. Grant of Patent License. Subject to the terms and conditions of\n
this License, each Contributor hereby grants to You a perpetual,\n
worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
(except as stated in this section) patent license to make, have made,\n
use, offer to sell, sell, import, and otherwise transfer the Work,\n
where such license applies only to those patent claims licensable\n
by such Contributor that are necessarily infringed by their\n
Contribution(s) alone or by combination of their Contribution(s)\n
with the Work to which such Contribution(s) was submitted. If You\n
institute patent litigation against any entity (including a\n
cross-claim or counterclaim in a lawsuit) alleging that the Work\n
or a Contribution incorporated within the Work constitutes direct\n
or contributory patent infringement, then any patent licenses\n
granted to You under this License for that Work shall terminate\n
as of the date such litigation is filed.\n
\n
4. Redistribution. You may reproduce and distribute copies of the\n
Work or Derivative Works thereof in any medium, with or without\n
modifications, and in Source or Object form, provided that You\n
meet the following conditions:\n
\n
(a) You must give any other recipients of the Work or\n
Derivative Works a copy of this License; and\n
\n
(b) You must cause any modified files to carry prominent notices\n
stating that You changed the files; and\n
\n
(c) You must retain, in the Source form of any Derivative Works\n
that You distribute, all copyright, patent, trademark, and\n
attribution notices from the Source form of the Work,\n
excluding those notices that do not pertain to any part of\n
the Derivative Works; and\n
\n
(d) If the Work includes a "NOTICE" text file as part of its\n
distribution, then any Derivative Works that You distribute must\n
include a readable copy of the attribution notices contained\n
within such NOTICE file, excluding those notices that do not\n
pertain to any part of the Derivative Works, in at least one\n
of the following places: within a NOTICE text file distributed\n
as part of the Derivative Works; within the Source form or\n
documentation, if provided along with the Derivative Works; or,\n
within a display generated by the Derivative Works, if and\n
wherever such third-party notices normally appear. The contents\n
of the NOTICE file are for informational purposes only and\n
do not modify the License. You may add Your own attribution\n
notices within Derivative Works that You distribute, alongside\n
or as an addendum to the NOTICE text from the Work, provided\n
that such additional attribution notices cannot be construed\n
as modifying the License.\n
\n
You may add Your own copyright statement to Your modifications and\n
may provide additional or different license terms and conditions\n
for use, reproduction, or distribution of Your modifications, or\n
for any such Derivative Works as a whole, provided Your use,\n
reproduction, and distribution of the Work otherwise complies with\n
the conditions stated in this License.\n
\n
5. Submission of Contributions. Unless You explicitly state otherwise,\n
any Contribution intentionally submitted for inclusion in the Work\n
by You to the Licensor shall be under the terms and conditions of\n
this License, without any additional terms or conditions.\n
Notwithstanding the above, nothing herein shall supersede or modify\n
the terms of any separate license agreement you may have executed\n
with Licensor regarding such Contributions.\n
\n
6. Trademarks. This License does not grant permission to use the trade\n
names, trademarks, service marks, or product names of the Licensor,\n
except as required for reasonable and customary use in describing the\n
origin of the Work and reproducing the content of the NOTICE file.\n
\n
7. Disclaimer of Warranty. Unless required by applicable law or\n
agreed to in writing, Licensor provides the Work (and each\n
Contributor provides its Contributions) on an "AS IS" BASIS,\n
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n
implied, including, without limitation, any warranties or conditions\n
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n
PARTICULAR PURPOSE. You are solely responsible for determining the\n
appropriateness of using or redistributing the Work and assume any\n
risks associated with Your exercise of permissions under this License.\n
\n
8. Limitation of Liability. In no event and under no legal theory,\n
whether in tort (including negligence), contract, or otherwise,\n
unless required by applicable law (such as deliberate and grossly\n
negligent acts) or agreed to in writing, shall any Contributor be\n
liable to You for damages, including any direct, indirect, special,\n
incidental, or consequential damages of any character arising as a\n
result of this License or out of the use or inability to use the\n
Work (including but not limited to damages for loss of goodwill,\n
work stoppage, computer failure or malfunction, or any and all\n
other commercial damages or losses), even if such Contributor\n
has been advised of the possibility of such damages.\n
\n
9. Accepting Warranty or Additional Liability. While redistributing\n
the Work or Derivative Works thereof, You may choose to offer,\n
and charge a fee for, acceptance of support, warranty, indemnity,\n
or other liability obligations and/or rights consistent with this\n
License. However, in accepting such obligations, You may act only\n
on Your own behalf and on Your sole responsibility, not on behalf\n
of any other Contributor, and only if You agree to indemnify,\n
defend, and hold each Contributor harmless for any liability\n
incurred by, or claims asserted against, such Contributor by reason\n
of your accepting any such warranty or additional liability.\n
\n
END OF TERMS AND CONDITIONS\n
\n
APPENDIX: How to apply the Apache License to your work.\n
\n
To apply the Apache License to your work, attach the following\n
boilerplate notice, with the fields enclosed by brackets "[]"\n
replaced with your own identifying information. (Don\'t include\n
the brackets!) The text should be enclosed in the appropriate\n
comment syntax for the file format. We also recommend that a\n
file or class name and description of purpose be included on the\n
same "printed page" as the copyright notice for easier\n
identification within third-party archives.\n
\n
Copyright [yyyy] [name of copyright owner]\n
\n
Licensed under the Apache License, Version 2.0 (the "License");\n
you may not use this file except in compliance with the License.\n
You may obtain a copy of the License at\n
\n
http://www.apache.org/licenses/LICENSE-2.0\n
\n
Unless required by applicable law or agreed to in writing, software\n
distributed under the License is distributed on an "AS IS" BASIS,\n
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
See the License for the specific language governing permissions and\n
limitations under the License.\n
</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>README</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>jGraduate - A jQuery plugin for picking gradients\n
\n
Licensed under the Apache License 2. See LICENSE for more information.\n
</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>css</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>jPicker-1.0.12.css</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>.jPicker_Picker {\r\n
display: inline-block;\r\n
height: 24px; /* change this value if using a different sized color picker icon */\r\n
position: relative; /* make this element an absolute positioning container */\r\n
text-align: left; /* make the zero width children position to the left of container */\r\n
width: 25px; /* change this value if using a different sized color picker icon */\r\n
}\r\n
.jPicker_Color, .jPicker_Alpha {\r\n
background-position: 2px 2px;\r\n
display: block;\r\n
height: 100%;\r\n
left: 0px;\r\n
position: absolute;\r\n
top: 0px;\r\n
width: 100%;\r\n
}\r\n
.jPicker_Icon {\r\n
background-repeat: no-repeat;\r\n
cursor: pointer;\r\n
display: block;\r\n
height: 100%;\r\n
left: 0px;\r\n
position: absolute;\r\n
top: 0px;\r\n
width: 100%;\r\n
}\r\n
.jPicker_Container {\r\n
display: none;\r\n
z-index: 10; /* make sure container draws above color picker icon in Firefox/Safari/Chrome/Opera/etc. -\r\n
IE calculates z-index so this won\'t work - we will hide all color picker icons placed after the selected one in code when shown in IE */\r\n
}\r\n
.jPicker_table {\r\n
background-color: #efefef;\r\n
border: 1px outset #666;\r\n
font-family: Arial, Helvetica, Sans-Serif;\r\n
font-size: 12px;\r\n
margin: 0px;\r\n
padding: 5px;\r\n
width: 550px;\r\n
}\r\n
.jPicker_table td {\r\n
margin: 0px;\r\n
padding: 0px;\r\n
vertical-align: top;\r\n
}\r\n
.jPicker_MoveBar {\r\n
background-color: #dddddd;\r\n
border: 1px outset #aaa;\r\n
cursor: move;\r\n
height: 12px;\r\n
}\r\n
.jPicker_Title {\r\n
font-size: 11px !important;\r\n
font-weight: bold;\r\n
margin: -2px 0px 0px 0px;\r\n
padding: 0px;\r\n
text-align: center;\r\n
width: 100%;\r\n
}\r\n
.jPicker_ColorMap {\r\n
border: 2px inset #eee;\r\n
cursor: crosshair;\r\n
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */\r\n
margin: 0px 5px 0px 5px;\r\n
overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of viewing box */\r\n
padding: 0px;\r\n
position: relative; /* make this element an absolute positioning container */\r\n
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */\r\n
}\r\n
div[class="jPicker_ColorMap"] {\r\n
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */\r\n
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */\r\n
}\r\n
.jPicker_ColorBar {\r\n
border: 2px inset #eee;\r\n
cursor: n-resize;\r\n
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */\r\n
margin: 12px 10px 0px 5px;\r\n
padding: 0px;\r\n
position: relative;\r\n
width: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */\r\n
}\r\n
div[class="jPicker_ColorBar"] {\r\n
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */\r\n
width: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */\r\n
}\r\n
.jPicker_ColorMap_l1, .jPicker_ColorMap_l2, .jPicker_ColorMap_l3, .jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3, .jPicker_ColorBar_l4, .jPicker_ColorBar_l5, .jPicker_ColorBar_l6 {\r\n
background-color: transparent;\r\n
background-image: none;\r\n
display: block;\r\n
height: 256px; /* must specific pixel height. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar\r\n
would not be drawn if its overflow is set to hidden. */\r\n
left: 0px;\r\n
position: absolute;\r\n
top: 0px;\r\n
}\r\n
.jPicker_ColorMap_l1, .jPicker_ColorMap_l2, .jPicker_ColorMap_l3 {\r\n
width: 256px; /* must specific pixel width. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar\r\n
would not be drawn if its overflow is set to hidden. */\r\n
}\r\n
.jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3, .jPicker_ColorBar_l4, .jPicker_ColorBar_l5, .jPicker_ColorBar_l6 {\r\n
width: 20px; /* must specific pixel width. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar\r\n
would not be drawn if its overflow is set to hidden. */\r\n
}\r\n
.jPicker_ColorMap_l1, .jPicker_ColorMap_l2, .jPicker_ColorBar_l6 {\r\n
background-repeat: no-repeat;\r\n
}\r\n
.jPicker_ColorMap_l3, .jPicker_ColorBar_l5 {\r\n
background-repeat: repeat;\r\n
}\r\n
.jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3, .jPicker_ColorBar_l4 {\r\n
background-repeat: repeat-x;\r\n
}\r\n
.jPicker_ColorMap_Arrow {\r\n
display: block;\r\n
position: absolute;\r\n
}\r\n
.jPicker_ColorBar_Arrow {\r\n
display: block;\r\n
left: -10px; /* (arrow width / 2) - (element width / 2) - position arrows\' center in elements\' center */\r\n
position: absolute;\r\n
}\r\n
.jPicker_Preview {\r\n
font-size: x-small;\r\n
text-align: center;\r\n
}\r\n
.jPicker_Preview div {\r\n
border: 2px inset #eee;\r\n
height: 62px;\r\n
margin: 0px auto;\r\n
padding: 0px;\r\n
width: 62px;\r\n
}\r\n
.jPicker_Preview div span {\r\n
border: 1px solid #000;\r\n
display: block;\r\n
height: 30px;\r\n
margin: 0px auto;\r\n
padding: 0px;\r\n
width: 60px;\r\n
}\r\n
.jPicker_Preview div span.jPicker_Active {\r\n
border-bottom-width: 0px;\r\n
}\r\n
.jPicker_Preview div span.jPicker_Current {\r\n
border-top-width: 0px;\r\n
cursor: pointer;\r\n
}\r\n
.jPicker_OkCancel {\r\n
text-align: center;\r\n
width: 120px;\r\n
}\r\n
.jPicker_OkCancel input {\r\n
width: 100px;\r\n
}\r\n
.jPicker_OkCancel input.jPicker_Ok {\r\n
margin: 12px 0px 5px 0px;\r\n
}\r\n
.jPicker_Text {\r\n
text-align: left;\r\n
}\r\n
.jPicker_HueText, .jPicker_SaturationText, .jPicker_BrightnessText, .jPicker_RedText, .jPicker_GreenText, .jPicker_BlueText, .jPicker_AlphaText {\r\n
background-color: #fff;\r\n
border: 1px inset #aaa;\r\n
margin: 0px 0px 0px 5px;\r\n
text-align: left;\r\n
width: 30px;\r\n
}\r\n
.jPicker_HexText {\r\n
background-color: #fff;\r\n
border: 1px inset #aaa;\r\n
margin: 0px 0px 0px 5px;\r\n
width: 65px;\r\n
}\r\n
.jPicker_Grid {\r\n
text-align: center;\r\n
}\r\n
span.jPicker_QuickColor {\r\n
border: 1px inset #aaa;\r\n
cursor: pointer;\r\n
display: block;\r\n
float: left;\r\n
height: 13px;\r\n
line-height: 13px;\r\n
margin: 2px 2px 1px 2px;\r\n
padding: 0px;\r\n
width: 15px;\r\n
}\r\n
span[class="jPicker_QuickColor"] {\r\n
width: 13px;\r\n
}</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>jgraduate.css</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
/* \n
* jGraduate Default CSS\n
* \n
* Copyright (c) 2009 Jeff Schiller\n
*\n
* Licensed under the Apache License Version 2\n
*/\n
\n
h2.jGraduate_Title {\n
font-family: Arial, Helvetica, Sans-Serif;\n
font-size: 11px !important;\n
font-weight: bold;\n
margin: -13px 0px 0px 0px;\n
padding: 0px;\n
text-align: center;\n
}\n
\n
.jGraduate_Picker {\n
\tfont-family: Arial, Helvetica, Sans-Serif;\n
\tfont-size: 12px;\n
\tborder-style: solid;\n
\tborder-color: lightgrey black black lightgrey;\n
\tborder-width: 1px;\n
\tbackground-color: #EFEFEF;\n
\tposition: absolute;\n
\tpadding: 10px;\n
}\n
\n
.jGraduate_tabs li {\n
\tbackground-color: #ccc;\n
\tdisplay: inline;\n
\tborder: solid 1px grey;\n
\tpadding: 3px;\n
\tmargin: 2px;\n
\tcursor: pointer;\n
}\n
\n
li.jGraduate_tab_current {\n
\tbackground-color: #EFEFEF;\n
\tdisplay: inline;\n
\tpadding: 3px;\n
\tmargin: 2px;\n
\tborder: solid 1px black;\n
\tcursor: pointer;\n
}\n
\n
.jGraduate_colPick {\n
\tdisplay: none;\n
}\n
\n
.jGraduate_lgPick {\t\n
\tdisplay: none;\n
\tborder: outset 1px #666;\n
\tpadding: 10px 7px 5px 5px;\n
\toverflow: auto;\n
}\n
\n
.jGraduate_rgPick {\t\n
\tdisplay: none;\n
\tborder: outset 1px #666;\n
\tpadding: 10px 7px 5px 5px;\n
\toverflow: auto;\n
/*\tposition: relative;*/\n
}\n
\n
.jGraduate_tabs {\n
\tposition: relative;\n
\tbackground-color: #EFEFEF;\n
\tpadding: 0px;\n
\tmargin: 0px;\n
\tmargin-bottom: 5px;\n
}\n
\n
div.jGraduate_Swatch {\n
\tfloat: left;\n
\tmargin: 8px;\n
}\n
div.jGraduate_GradContainer {\n
\tborder: 2px inset #EEE;\n
\tbackground-image: url(../images/map-opacity.png); \n
\tbackground-position: 0px 0px;\n
\theight: 256px;\n
}\n
\n
.jGraduate_AlphaArrows {\n
\tposition: absolute;\n
\tmargin-top: -10px;\n
\tmargin-left: 250.5px;\n
}\n
\n
div.jGraduate_Opacity {\n
\tborder: 2px inset #eee;\n
\tmargin-top: 14px;\n
\tbackground-color: black;\n
\tbackground-image: url(../images/Maps.png);\n
\tbackground-position: 0px -2816px;\n
\theight: 20px;\n
\tcursor: ew-resize;\n
}\n
\n
div.lg_jGraduate_OpacityField {\n
\tposition: absolute;\n
\tbottom: 25px;\n
\tleft: 292px;\n
}\n
\n
div.jGraduate_Form {\n
\tfloat: left;\n
\twidth: 140px;\n
\tmargin: -3px 3px 0px 4px;\n
}\n
\n
div.jGraduate_StopSection {\n
\twidth: 120px;\n
\ttext-align: center;\n
}\n
\n
div.jGraduate_RadiusField {\n
\t\n
\ttext-align: center;\n
\tfloat: left;\n
}\n
\n
div.jGraduate_RadiusField input {\n
\tmargin-top: 10px;\n
}\n
\n
.jGraduate_RadiusField .jGraduate_Form_Section {\n
\twidth: 250px;\n
\tpadding: 2px;\n
\theight: 80px;\n
\toverflow: visible;\n
}\n
\n
.jGraduate_Form_Section input[type=text] {\n
\twidth: 38px;\n
}\n
\n
.jGraduate_Radius {\n
\tborder:1px solid #BBB;\n
\tcursor:ew-resize;\n
\theight:20px;\n
\tmargin-top:14px;\n
\tposition: relative;\n
}\n
\n
\n
.jGraduate_RadiusArrows {\n
\ttop: 0;\n
\tleft: 0;\n
\tposition: absolute;\n
\tmargin-top: -10px;\n
\tmargin-left: 250.5px;\n
}\n
\n
\n
div.jGraduate_OkCancel {\n
\tfloat: left;\n
\twidth: 113px;\n
}\n
\n
input.jGraduate_Ok, input.jGraduate_Cancel {\n
\tdisplay: block;\n
\twidth: 100px;\n
\tmargin-left: -4px;\n
\tmargin-right: -4px;\n
}\n
input.jGraduate_Ok {\n
\tmargin: 9px -4px 5px -4px;\n
}\n
\n
.colorBox {\n
\tfloat: left;\n
\theight: 16px;\n
\twidth: 16px;\n
\tborder: 1px solid #808080;\n
\tcursor: pointer;\n
\tmargin: 4px 4px 4px 30px;\n
}\n
\n
.colorBox + label {\n
\tfloat: left;\n
\tmargin-top: 7px;\n
}\n
\n
label.jGraduate_Form_Heading {\n
\tposition: relative;\n
\ttop: 10px;\n
\tbackground-color: #EFEFEF;\n
\tpadding: 2px;\n
\tfont-weight: bold;\n
\tfont-size: 13px;\n
}\n
\n
div.jGraduate_Form_Section {\n
\tborder-style: solid;\n
\tborder-width: 1px;\n
\tborder-color: grey;\n
\t-moz-border-radius: 5px;\n
\t-webkit-border-radius: 5px;\n
\tpadding: 15px 5px 5px 5px;\n
\tmargin: 2px;\n
\twidth: 110px;\n
\ttext-align: center;\n
\toverflow: auto;\n
}\n
\n
div.jGraduate_LightBox {\n
\tposition: fixed;\n
\ttop: 0px;\n
\tleft: 0px;\n
\tright: 0px;\n
\tbottom: 0px;\n
\tbackground-color: #000;\n
\topacity: 0.5;\n
\tdisplay: none;\n
}\n
\n
div.jGraduate_stopPicker {\n
\tposition: absolute;\n
\tdisplay: none;\n
\tbackground: #E8E8E8;\n
}\n
\n
\n
.jGraduate_rgPick {\n
\twidth: 530px;\n
}\n
\n
.jGraduate_rgPick div.jGraduate_Form {\n
\twidth: 270px;\n
\tposition: absolute;\n
\tleft: 284px;\n
\twidth: 266px;\n
\ttop: 130px;\n
\tmargin: -3px 3px 0px 4px;\n
}\n
\n
.jGraduate_Colorblocks {\n
\tdisplay: table;\n
\tborder-spacing: 0 5px;\n
}\n
\n
.jGraduate_colorblock {\n
\tdisplay: table-row;\n
}\n
\n
.jGraduate_Colorblocks .jGraduate_colorblock > * {\n
\tdisplay: table-cell;\n
\tvertical-align: middle;\n
\tmargin: 0;\n
\tfloat: none;\n
}\n
\n
.jGraduate_rgPick div.jGraduate_StopSection {\n
\tfloat: left;\n
\twidth: 133px;\n
\tmargin: 0;\n
}\n
\n
.jGraduate_rgPick .jGraduate_OkCancel {\n
\tposition: absolute;\n
\tright: 0;\n
}\n
\n
.rg_jGraduate_OpacityField {\n
\tposition: absolute;\n
\tleft: 288px;\n
\tbottom: 24px;\n
}
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>images</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003722.23</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>AlphaBar.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABQAAAEACAYAAACzuVY0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAACDVJREFUeNrcXCGQJUUMTVJtkEgkDkudQiKRSBwSi8MicVgcFofE4jBX
dRaHReJwYefX/qmeTN5Lev7eQTFVV7d/Z7ZnOv2SvLz0fHV3lel4/fr1/FFevXrlT/8pOX/4POaL
p2MeJDsPDzTg0iCdAS8f48km84D+ZJPD53D+ZLPJpjczxSfUB6aub2fKZEC/cjN9wuF7BQ5l5Xxn
yktP2hlQ3yUOT08/FnAWz2+DWTx/5QnvT6UvOWV9xIaeeBNc+Q2H7zdstg/wdP4w2BUcSuHv6YAV
eNvgHmzFwFNlg++/u4LDLAdpN9q8uOstg55lPbsC+A2HH0xG9Qd8O11lfSRaIxuy6XqCW69WubNI
0HNQXp59l9nsZHOUl7VpR13B4aXAuxJgvWBqeo+HHzKuUuAwcqHDlL0R98prxnSiO/UywNqCrayK
SFk8RJxbExxqxg9XIeIAp4qmnE2bLQb1FJSDLcEczMsfzVN4SX5oTfuVVMQaf+zdINzxlNmGSnL1
7Xd3HO7GTriMFlwnzcva5X8VmxhkKr4QKzXGQ1ZA+spNNhx+/EC97M821Sx8dcJWKx5ax+mbN/Yx
fTDyJN6M4Ld4aPOJaJNnTm3Ad6PvK8MhwqQzBAziqwg61L7zE/piBoT18ieTc8cc4iTH0Lx8lRbr
KdoUSb2bYhUFWE/ySGe1IT/UZ9+1if9JgsP9GlQve+IxzIZleauEotFSrCKcma1WntA3HH6a4MwB
l1nih53q0wGjaNXLmf9qJ0lVi6IN5rDPYM7LMuXlSnPd/ybieDQ8wEH9Qkuz6HLMBdnnUzw0sHpa
JPhDXv6sUduh82le7kQRbUQk6HrWIOkwbQyia3liX4bBg24z4/AAkQlnGrjOnZNrxhy0wN58UxYv
T8BmcdCAOVKylKHfCAOz4Nv7uQ2HnycagoO87BXnHuDOVQkBGe0gNA7FQwcPUOJQSbRW4BA+52Wf
cLgPOmmuSnSd9AnZkwqaYkbnVtKlVmS+4jZeqE3x3C0efgFw5okG4YnNKZ3TgmllPj3PBsp9SgIt
oy46+7IUrKCq9+weDw93DnlXYz082TRqFClzcDK9Dv/xAYzbKcuyw7JVroKtE03iFg+/nC9I9EMH
51s6NkqnkYdLV3Zm6ZOlWZmBbYRl2UKk0RmHc961kJcPi5bUMcqkKm/688mHY3AQkoMrIm+R2xhh
pdkiOLD73k/5CnBmB5qsJ5psGrEre7X6BKOgGoj+RipilfalSeSRIuDqrNtkdUimy/jku5rlmEHc
qbJf6klIZmHECPn47RpL7GFE6FHCYvWOw6/noBlwhvghrKcRx65sBpViFByksUiKCKdmAJW6N58u
5kjqEAE5REOOufu2ZXlZCkUpY7COtC8tpGRtcEXNdNeIRU3+lbXehsNvEl1GkzpEEo3BA9ehLSQW
aSIq9p9Hk1drl3iOJFhW+0KY13jE4d0mc445PMGUlz3UMR7ZV7cCVWZfI6W/gVoP6WF6f0Il6psW
Qfak3Ww4/DaJhxryMtpvM9d+sJ9iINx749pTTkG2dFB+nAA/imjNdFlPhfGQlzP+Z6Hv5yFvO6oC
lFAORvmo3NepkY31WEbBFIT4tyHd5js57reRQus6fA423cMXqt6ZuylrZUoyBSt0xTQlDHJX7+SQ
eN09HiKbSKinK93mlFMynHVYg2Yc20jJ5USeSqsAJ4MudX82HH5P+iVIg4i9A+9oDpWXpPSvAxsB
oM6waSOxm5NVZpFn76ccFiNwaiW90qw2tEEkgFg/d1pJUrXUkcysqA9jgQtmi2NJ8o81jc15+Yeg
ZXmSY5To2M6ijTQUY4QGRfzQijRACyTWedSGsnS6KdoHy/RDAZz85HpCpog0CEeuhy5SQuFEyGY8
IclKCZhP3rLh8Mfgu0iXkaT2i/xQRzOrdUo3QTq2NEVyR8EB9pdYEEAKaKYforw755Co6xxkFsvw
RGo+Z0wMkSVH7Y1iEVOypI0cgm5w44c/JTbzEA8lqZc9O88qKTRlYer8ADyG6Q7Opt19LwDZ+Bxg
pzpEQl9PEv5npDdgqKyQwq6IN6aCpAruyTsrGqMwboD1s+Ixq1BvefnnBGceelAOegMSbOrVfhvE
rQX0A5QtSiUHSFXrSaPyFBCdTvttRPgeJU3ydur7rPMoDbeUbMorzVYpyOlpn4MvVPZpA2fD4S/A
Zlm8i3vYT3s6u9xGGunh0BtFzs6SeyoPDqZJd7hMxCbaB5vlEAu+a4kWlnJsNl2mT6T7satelBDK
p1H78kLI7eiyt3j4a6jdsnpZmrqOjCKPIA0HpYP2+8tVk7B8T8rJ72jkYXVKtJlJsleOvTfaYVyV
OuJVX6/a577coLGGXnPqL/8WuAqql6Nuo6FXKqyVuVLWSlWAr7504CurXA16LnxAf7nSwoThsFLf
OlNv1XqVO6ZuuPK+XqsXsOHwDcnL2d5hatOVr1/QBhLKRL9aovnqi/lKqtSDbqOAq2ScW+T83sAh
pyihGN5Vh1lOUdLikCo/D/JHVbBIc9GGw9/l3D/O6hTp4rDTNtKmK8J9X6uuuNTkWoo6I/A/fyAe
KprylRDWDl+I5nmX21TBoJzJhsM/iE38Cg672kzr6AjjHbt61A+90F+7hPSwD3b23YxTd/Kyrn79
QumaV/Jy60s2qmKxE2x3fvjnCs6S/YmteNiFz7Ivd0mUrg7YPsaj34HxEt9vwyP24oClDnblCVl1
dcvLfy3iUJI6ZgmHS5DquN4abIS//bFeBRAc6qJvvyVP+TcGXFqwDYd/P+K7V79n6b9tw/9HPHy3
A/ojN/lHgAEAu8/LmSCgrTcAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>256</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2195</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>20</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003722.59</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Bars.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAAEAABAACAYAAACzl4viAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAP9JREFUeNrs3FsPgjAMhuFuF/z/30sgtQUPiVcb4CH7XmKeTNebtbMR
FM3drVocAABamMcjRpONQqxo9brGkzrnKgchSxWFmrJuY2C2eO6+JfffbKOQG9Brrm8Uok65piUb
xZzFG4Ot9dnj81959sSGUetE6Qk5ONEV8gPqdcEHZ7smTgf/+2vXBH+uWqeDv8aZt2TrRFcvaZh4
H9njoP/R/+h/9D+d/redUtU8BaluAACCODkAAE0KOQAASfbvf0kEAGi1vtf1PwMAUMTJAQBIUsgB
AGiy/1qdRACAWOvbbn3b7/8AAJDDyQEAqFLIAQBIcv9bERIBAGKtz/wmwAB6qrlXgltEeAAAAABJ
RU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>4096</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>349</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003723.82</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>NoColor.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAIAAAD9iXMrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAK5JREFUeNqMkbERhiAMhcN/OoMrWLiCrRM4hbM5gQUNK1A4g432FPHl
F85EGzkuF16+C3ngDvq0fhKmib3nbeN9NxuK96hmjsfRzTPFSCndHZDHCB1VnCqRuo6JRPrnVNcG
gpI5FBTq2pbX9YZQzZxFqe9dCBoqPgqKToBoWQRFXiDLpYTrKAQaBkTJla3q7U7maxpjK3PWHVtb
yq9+gmumB3pxT+j9Aogf//cUYADj4Ht5eajeZAAAAABJRU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>13</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>268</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>13</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003722.41</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bar-opacity.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAChJREFUeNpiPHPmDAMMGBsbw9lMDDgA6RKM////h3POnj1LCzsAAgwA
QtYIcFfEyzkAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>134</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>8</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003722.77</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>map-opacity.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAC1JREFUeNpiPHPmDAM2YGxsjFWciYFEMKqBGMD4//9/rBJnz54dDSX6
aQAIMABCtQiAsDRF+wAAAABJRU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>16</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>139</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003723.34</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>mappoint.gif</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/gif</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">R0lGODlhDwAPAJECAAAAAP///////wAAACH5BAEAAAIALAAAAAAPAA8AAAIulA2Zx5IB4WIANnlq
aAa7zXXAFzLBUx5nlYpsu4LpSZb0J5s3fu2IFplwFEJDAQA7</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>93</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>15</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003722.96</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>mappoint_c.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAJ5JREFUeNqkU4ENgDAIA7OXvGL+pP6kV3gUsgVmM3VLlIQsIG0JIIsI
1cbMt6TWcZ0LT6AWIZKwF6aPAJrUR8Ae6pvVXQQGELCovqSce4otL6aQn6wMqllR41njFVr2OHeA
6oXQFUGJsBPLk6sHercdX1B+nnaHaG+uqmHRpn8gydABFGAaWrW+n9P+veevF8Z4x53bptfb/vJX
nQIMAEGb5PDljJOZAAAAAElFTkSuQmCC</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>252</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>15</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003723.14</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>mappoint_f.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAKFJREFUeNqcU1sSgCAIhMbbdajoUJ2iQ5EYFiFa087sh7jLwwiZGTwQ
sQlmHfpYikyjhDYJVqFcGtMKLRbV3QnUwAYkZ0+JV4Gen21L4kzSbL76rvdXe8m0i0GrFMSKQXwJ
xiBTdYsE1yhK6swLhiXerexm3iPN17ZDTOfs5a0YvoHrt578xZvRzxYuSubsH8kuiBDtHr/sNnR3
+89fdQgwAB1fwHzYeLmXAAAAAElFTkSuQmCC</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>255</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>15</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003724.01</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>picker.gif</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/gif</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">R0lGODlhGQAYAKIEANjY2P////Dw8BseI////wAAAAAAAAAAACH5BAEAAAQALAAAAAAZABgAAANX
KLDc/kvBSWO4OOssVyBgKI5i0HxkOpoMqr6s984x4M5kfePlyae6X84n7LWKRhltE+jYcLXJblh5
0qpWWGMAma4Yg/DDawybHeRQFCJgcrDwijPuECQAADs=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>24</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>146</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>25</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003724.2</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>preview-opacity.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAClJREFUeNpiPHPmDAMSMDY2RuYyMeAFNJVm/P//PzL/7Nmzg8VpAAEG
ALE5CHQT4Ca/AAAAAElFTkSuQmCC</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>135</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>10</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003721.04</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>rangearrows.gif</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/gif</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">R0lGODlhKAAJAJECAHRyav///////wAAACH5BAEAAAIALAAAAAAoAAkAAAIvFC6py+17gAlUvosT
oOHwnoXMxnmfJWZkuZYp1lYx+j5zS9f2ueb6XjEgfqKIoAAAOw==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>9</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>94</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003724.39</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>rangearrows2.gif</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/gif</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">R0lGODlhCQAoAKEBAHRyav///////////yH5BAEAAAIALAAAAAAJACgAAAIuFI5gwR3nGoxvOSVs
zRls3oHiSJbmiabqyrbuC8cxJnp0J3HepV17NAEaEgdBAQA7</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>40</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>93</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>9</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003716.39</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>jpicker-1.0.12.min.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/x-javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
(function(e,a){var d=function(t,k){var o=this,j=t.find("img"),B=0,A=100,s=100,z=0,w=100,r=100,q=0,p=0,m,n=function(x){var y=t.offset();m={left:y.left+parseInt(t.css("border-left-width")),top:y.top+parseInt(t.css("border-top-width"))};u(x);o.draw();e(document).bind("mousemove",l).bind("mouseup",h);x.stopPropagation();x.preventDefault();return false;},l=function(x){u(x);o.draw();x.stopPropagation();x.preventDefault();return false;},h=function(x){e(document).unbind("mouseup",h).unbind("mousemove",l);x.stopPropagation();x.preventDefault();return false;},u=function(E){var C=E.pageX-m.left,x=E.pageY-m.top,D=t.w,y=t.h;if(C<0){C=0;}else{if(C>D){C=D;}}if(x<0){x=0;}else{if(x>y){x=y;}}o.set_X(((C/D)*s)+B);o.set_Y(((x/y)*r)+z);e.isFunction(o.valuesChanged)&&o.valuesChanged(o);};e.extend(true,o,{settings:k,valuesChanged:e.isFunction(arguments[2])&&arguments[2]||null,get_X:function(){return q;},set_X:function(x){x=Math.floor(x);if(q==x){return;}if(x<B){x=B;}else{if(x>A){x=A;}}q=x;},get_Y:function(){return p;},set_Y:function(x){x=Math.floor(x);if(p==x){return;}if(x<z){x=z;}else{if(x>w){x=w;}}p=x;},set_RangeX:function(y,x){if(B==y&&A==x){return;}if(y>x){return;}B=y;A=x;s=A-B;},set_RangeY:function(y,x){if(z==y&&w==x){return;}if(y>x){return;}z=y;w=x;r=w-z;},draw:function(){var D=0,x=0,F=t.w,C=t.h,E=j.w,y=j.h;if(s>0){if(q==A){D=F;}else{D=Math.floor((q/s)*F);}}if(r>0){if(p==w){x=C;}else{x=Math.floor((p/r)*C);}}if(E>F){D=(F>>1)-(E>>1);}else{D-=E>>1;}if(y>C){x=(C>>1)-(y>>1);}else{x-=y>>1;}j.css({left:D+"px",top:x+"px"});},destroy:function(){e(document).unbind("mouseup",h).unbind("mousemove",l);t.unbind("mousedown",n);t=null;j=null;o.valuesChanged=null;}});var v=o.settings;j.src=v.arrow&&v.arrow.image;j.w=v.arrow&&v.arrow.width||j.width();j.h=v.arrow&&v.arrow.height||j.height();t.w=v.map&&v.map.width||t.width();t.h=v.map&&v.map.height||t.height();t.bind("mousedown",n);o.draw();e.isFunction(o.valuesChanged)&&o.valuesChanged(o);},b=function(m){var l=this,w=function(A){if(A.target.value==""){return;}if(!u.get_R()){s.red.val(0);}if(!u.get_G()){s.green.val(0);}if(!u.get_B()){s.blue.val(0);}if(!u.get_A()){s.alpha.val(100);}q(A);l.setValuesFromHsva();e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},p=function(A){if(A.target.value==""){return;}if(!u.get_H()){s.hue.val(0);}if(!u.get_S()){s.saturation.val(0);}if(!u.get_V()){s.value.val(0);}if(!u.get_A()){s.alpha.val(100);}o(A);l.setValuesFromRgba();e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},r=function(A){if(A.target.value==""){return;}if(!u.get_R()){s.red.val(0);}if(!u.get_G()){s.green.val(0);}if(!u.get_B()){s.blue.val(0);}if(!u.get_H()){s.hue.val(0);}if(!u.get_S()){s.saturation.val(0);}if(!u.get_V()){s.value.val(0);}y(A);l.setValuesFromRgba();e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},t=function(A){if(A.target.value==""){l.setValuesFromRgba();}e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},k=function(A){if(A.target.value==""){l.setValuesFromHsva();}e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},x=function(A){if(A.target.value==""){s.alpha.val(100);}e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},z=function(A){v(A);l.setValuesFromHex();e.isFunction(l.valuesChanged)&&l.valuesChanged(l);},j=function(A){if(A.target.value==""){l.setValuesFromHex();}},o=function(D){if(!n(D)){return D;}var C=h(s.red.val(),0,255),B=h(s.green.val(),0,255),A=h(s.blue.val(),0,255);s.red.val(C!=null?C:"");s.green.val(B!=null?B:"");s.blue.val(A!=null?A:"");},y=function(B){if(!n(B)){return B;}var A=h(s.alpha.val(),0,100);s.alpha.val(A!=null?A:"");},q=function(D){if(!n(D)){return D;}var A=h(s.hue.val(),0,360),B=h(s.saturation.val(),0,100),C=h(s.value.val(),0,100);s.hue.val(A!=null?A:"");s.saturation.val(B!=null?B:"");s.value.val(C!=null?C:"");},v=function(A){if(!n(A)){return A;}s.hex.val(s.hex.val().replace(/[^a-fA-F0-9]/g,"").toLowerCase().substring(0,8));},n=function(A){switch(A.keyCode){case 9:case 16:case 29:case 37:case 38:case 40:return false;case"c".charCodeAt():case"v".charCodeAt():if(A.ctrlKey){return false;}}return true;},h=function(C,B,A){if(C==""||isNaN(C)){return B;}if(C>A){return A;}if(C<B){return B;}return C;};e.extend(true,l,{color:new f(),fields:{hue:m.find(".jPicker_HueText"),saturation:m.find(".jPicker_SaturationText"),value:m.find(".jPicker_BrightnessText"),red:m.find(".jPicker_RedText"),green:m.find(".jPicker_GreenText"),blue:m.find(".jPicker_BlueText"),hex:m.find(".jPicker_HexText"),alpha:m.find(".jPicker_AlphaText")},valuesChanged:e.isFunction(arguments[1])&&arguments[1]||null,bindedHexKeyUp:function(A){z(A);},setValuesFromRgba:function(){u.fromRgba(s.red.val(),s.green.val(),s.blue.val(),s.alpha.val());var B=u.get_Rgba(),A=u.get_H(),C=u.get_S(),D=u.get_V(),E=u.get_A();s.hex.val(B!=null?B:"");s.hue.val(A!=null?A:"");s.saturation.val(C!=null?C:"");s.value.val(D!=null?D:"");s.alpha.val(E!=null?E:"");},setValuesFromHsva:function(){u.fromHsva(s.hue.val(),s.saturation.val(),s.value.val(),s.alpha.val());var B=u.get_Rgba(),E=u.get_R(),C=u.get_G(),A=u.get_B(),D=u.get_A();s.hex.val(B!=null?B:"");s.red.val(E!=null?E:"");s.green.val(C!=null?C:"");s.blue.val(A!=null?A:"");s.alpha.val(D!=null?D:"");},setValuesFromHex:function(){u.fromHex(s.hex.val());var C=u.get_Rgba(),H=u.get_R(),F=u.get_G(),A=u.get_B(),G=u.get_A(),B=u.get_H(),D=u.get_S(),E=u.get_V();s.red.val(H!=null?H:"");s.green.val(F!=null?F:"");s.blue.val(A!=null?A:"");s.alpha.val(G!=null?G:"");s.hue.val(B!=null?B:"");s.saturation.val(D!=null?D:"");s.value.val(E!=null?E:"");},destroy:function(){s.hue.add(s.saturation).add(s.value).unbind("keyup",events.hsvKeyUp).unbind("blur",t);s.red.add(s.green).add(s.blue).unbind("keyup",events.rgbKeyUp).unbind("blur",k);s.alpha.unbind("keyup",alphaKeyUp).unbind("blur",x);s.hex.unbind("keyup",z);s=null;u=null;l.valuesChanged=null;}});var s=l.fields,u=l.color;s.hue.add(s.saturation).add(s.value).bind("keyup",w).bind("blur",t);s.red.add(s.green).add(s.blue).bind("keyup",p).bind("blur",k);s.alpha.bind("keyup",r).bind("blur",x);s.hex.bind("keyup",z).bind("blur",j);if(s.hex.val()!=""){u.fromHex(s.hex.val());l.setValuesFromHex();}};e.jPicker={List:[],Color:function(q){var m=this,j,l,n,o,k,t,p;e.extend(true,m,{get_R:function(){return j;},get_G:function(){return l;},get_B:function(){return n;},get_A:function(){return o;},get_Rgba:function(){return j!=null&&l!=null&&n!=null&&o!=null?g.rgbaToHex({r:j,g:l,b:n,a:o}):null;},get_Hex:function(){var h=m.get_Rgba();return h&&h.substring(0,6)||null;},get_H:function(){return k;},get_S:function(){return t;},get_V:function(){return p;},get_Hsv:function(){return{h:k,s:t,v:p};},fromRgba:function(v,s,h,u){j=v;l=s;n=h;o=u;var r=g.rgbToHsv({r:v,g:s,b:h});k=r.h;t=r.s;p=r.v;},fromHsva:function(h,s,u,v){k=h;t=s;p=u;o=v;var r=g.hsvToRgb({h:h,s:s,v:u});j=r.r;l=r.g;n=r.b;},fromHex:function(s){if(s==null||s==""){j=null;l=null;n=null;o=null;k=null;t=null;p=null;return;}var r=g.hexToRgba(s);j=r.r;l=r.g;n=r.b;o=r.a;var h=g.rgbToHsv({r:r.r,g:r.g,b:r.b});k=h.h;t=h.s;p=h.v;}});if(q){if(q.hex!=null&&q.hex!=""){m.fromHex(q.hex);}else{if(!isNaN(q.r)){m.fromRgba(q.r,q.g,q.b,q.a||100);}else{if(!isNaN(q.h)){m.fromHsva(q.h,q.s,q.v,q.a||100);}}}}},ColorMethods:{hexToRgba:function(m){m=this.validateHex(m);if(m==""){return{r:null,g:null,b:null,a:null};}var l="00",k="00",h="00",j="100";if(m.length==6){m+="ff";}if(m.length>6){l=m.substring(0,2);k=m.substring(2,4);h=m.substring(4,6);j=m.substring(6,m.length);}else{if(m.length>4){l=m.substring(4,m.length);m=m.substring(0,4);}if(m.length>2){k=m.substring(2,m.length);m=m.substring(0,2);}if(m.length>0){h=m.substring(0,m.length);}}return{r:this.hexToInt(l),g:this.hexToInt(k),b:this.hexToInt(h),a:Math.floor((this.hexToInt(j)*100)/255)};},validateHex:function(h){h=h.toLowerCase().replace(/[^a-f0-9]/g,"");if(h.length>8){h=h.substring(0,8);}return h;},rgbaToHex:function(h){return this.intToHex(h.r)+this.intToHex(h.g)+this.intToHex(h.b)+this.intToHex(Math.floor((h.a*255)/100));},intToHex:function(j){var h=Math.floor(j).toString(16);if(h.length==1){h=("0"+h);}return h.toLowerCase();},hexToInt:function(h){return parseInt(h,16);},rgbToHsv:function(l){var o=l.r/255,n=l.g/255,j=l.b/255,k={h:0,s:0,v:0},m=0,h=0,p;if(o>=n&&o>=j){h=o;m=n>j?j:n;}else{if(n>=j&&n>=o){h=n;m=o>j?j:o;}else{h=j;m=n>o?o:n;}}k.v=h;k.s=h?(h-m)/h:0;if(!k.s){k.h=0;}else{p=h-m;if(o==h){k.h=(n-j)/p;}else{if(n==h){k.h=2+(j-o)/p;}else{k.h=4+(o-n)/p;}}k.h=parseInt(k.h*60);if(k.h<0){k.h+=360;}}k.s=Math.floor(k.s*100);k.v=Math.floor(k.v*100);return k;},hsvToRgb:function(n){var r={r:0,g:0,b:0,a:100},m=n.h,x=n.s,u=n.v;if(x==0){if(u==0){r.r=r.g=r.b=0;}else{r.r=r.g=r.b=Math.floor(u*255/100);}}else{if(m==360){m=0;}m/=60;x=x/100;u=u/100;var l=Math.floor(m),o=m-l,k=u*(1-x),j=u*(1-(x*o)),w=u*(1-(x*(1-o)));switch(l){case 0:r.r=u;r.g=w;r.b=k;break;case 1:r.r=j;r.g=u;r.b=k;break;case 2:r.r=k;r.g=u;r.b=w;break;case 3:r.r=k;r.g=j;r.b=u;break;case 4:r.r=w;r.g=k;r.b=u;break;case 5:r.r=u;r.g=k;r.b=j;break;}r.r=Math.floor(r.r*255);r.g=Math.floor(r.g*255);r.b=Math.floor(r.b*255);}return r;}}};var f=e.jPicker.Color,c=e.jPicker.List,g=e.jPicker.ColorMethods;e.fn.jPicker=function(j){var h=arguments;return this.each(function(){var w=e(this),y=e.extend(true,{},e.fn.jPicker.defaults,j);if(w.get(0).nodeName.toLowerCase()=="input"){e.extend(true,y,{window:{bindToInput:true,expandable:true,input:w}});if(g.validateHex(w.val())){y.color.active=new f({hex:w.val(),a:y.color.active.get_A()});y.color.current=new f({hex:w.val(),a:y.color.active.get_A()});}}if(y.window.expandable){w.after(\'<span class="jPicker_Picker"><span class="jPicker_Color">&nbsp;</span><span class="jPicker_Alpha">&nbsp;</span><span class="jPicker_Icon" title="Click To Open Color Picker">&nbsp;</span><span class="jPicker_Container">&nbsp;</span></span>\');}else{y.window.liveUpdate=false;}var U=parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters,ay=null,av=null,au=null,T=null,S=null,R=null,Q=null,P=null,O=null,V=null,aa=null,aA=null,ak=null,am=null,ao=null,I=null,aw=null,G=null,Y=null,az=null,M=null,L=null,at=null,aq=null,A=null,l=null,J=null,ap=null,ab=null,ai=null,o=null,m=null,C=null,u=null,an=function(aE){K.active=az.color;var aF=K.active,aG=q.clientPath,aD=aF.get_Hex(),aC=function(aH){ad(aH,100);aH.css({backgroundColor:"transparent",backgroundPosition:"0px 0px",filter:""});};aC(ay);aC(av);aC(au);aC(T);aC(S);aC(R);aC(Q);aC(P);aC(O);aa.add(aA).add(ak).add(am).add(ao).add(I).removeAttr("checked");switch(aE){case"h":aa.attr({checked:true});ay.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});av.css({backgroundColor:"transparent"});x(av,-256);ad(av,100);x(Q,-256);ad(O,0);break;case"s":aA.attr({checked:true});x(ay,-512);x(av,-768);z(R,aF.get_Hex());x(Q,-512);ad(O,0);break;case"v":ak.attr({checked:true});z(ay,"000000");x(av,-1024);R.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});x(Q,-768);ad(O,0);break;case"r":am.attr({checked:true});x(av,-1536);x(ay,-1280);x(Q,-1024);x(R,-1280);x(S,-1536);x(T,-1792);ad(O,0);break;case"g":ao.attr({checked:true});x(av,-2048);x(ay,-1792);x(Q,-2048);x(R,-2304);x(S,-2560);x(T,-2816);ad(O,0);break;case"b":I.attr({checked:true});x(av,-2560);x(ay,-2304);x(Q,-3072);x(R,-3328);x(S,-3584);x(T,-3840);ad(O,0);break;case"a":aw.attr({checked:true});x(ay,-512);x(av,-768);ad(av,0);z(R,aF.get_Hex());ad(Q,0);ad(P,0);ad(O,100);break;default:throw ("Invalid Mode");break;}switch(aE){case"h":G.set_RangeX(0,100);G.set_RangeY(0,100);Y.set_RangeY(0,360);break;case"s":case"v":case"a":G.set_RangeX(0,360);G.set_RangeY(0,100);Y.set_RangeY(0,100);break;case"r":case"g":case"b":G.set_RangeX(0,255);G.set_RangeY(0,255);Y.set_RangeY(0,255);break;}K.mode=aE;v();G.draw();Y.draw();ah();if(aj.expandable&&aj.liveUpdate){o.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});ad(m,100-aF.get_A());if(aj.bindToInput){aj.input.val(aF.get_Rgba()||"").css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent",color:aF.get_V()>75?"#000000":"#ffffff"});}}e.isFunction(w.liveCallback)&&w.liveCallback(aF);},n=function(){v();G.draw();Y.draw();ah();K.active=az.color;var aD=K.active;if(aj.expandable&&aj.liveUpdate){var aC=aD.get_Hex();o.css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent"});ad(m,100-aD.get_A());if(aj.bindToInput){aj.input.val(az.fields.hex.val()||"").css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent",color:aD.get_V()>75?"#000000":"#ffffff"});}}e.isFunction(w.liveCallback)&&w.liveCallback(aD);},B=function(){if(!az||!G||!Y){return;}K.active=az.color;var aC=az.fields,aE=K.active;switch(K.mode){case"h":aC.saturation.val(G.get_X());aC.value.val(100-G.get_Y());if(aE.get_H()==null){aC.hue.val(0);}break;case"s":case"a":aC.hue.val(G.get_X());aC.value.val(100-G.get_Y());if(aE.get_S()==null){aC.saturation.val(0);}break;case"v":aC.hue.val(G.get_X());aC.saturation.val(100-G.get_Y());if(aE.get_V()==null){aC.value.val(0);}break;case"r":aC.green.val(255-G.get_Y());aC.blue.val(G.get_X());if(aE.get_R()==null){aC.red.val(0);}break;case"g":aC.red.val(255-G.get_Y());aC.blue.val(G.get_X());if(aE.get_G()==null){aC.green.val(0);}break;case"b":aC.red.val(G.get_X());aC.green.val(255-G.get_Y());if(aE.get_B()==null){aC.blue.val(0);}break;}if(aE.get_A()==null){aC.alpha.val(100);az.setValuesFromHsva();v();Y.draw();}switch(K.mode){case"h":case"s":case"v":case"a":az.setValuesFromHsva();break;case"r":case"g":case"b":az.setValuesFromRgba();break;}ah();if(aj.expandable&&aj.liveUpdate){var aD=aE.get_Hex();o.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});ad(m,100-aE.get_A());if(aj.bindToInput){aj.input.val(aE.get_Rgba()||"").css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent",color:aE.get_V()>75?"#000000":"#ffffff"});}}e.isFunction(w.liveCallback)&&w.liveCallback(aE);},al=function(){if(!az||!G||!Y){return;}K.active=az.color;var aC=az.fields,aE=K.active;switch(K.mode){case"h":aC.hue.val(360-Y.get_Y());if(aE.get_S()==null){aC.saturation.val(0);}if(aE.get_V()==null){aC.value.val(0);}break;case"s":aC.saturation.val(100-Y.get_Y());if(aE.get_H()==null){aC.hue.val(0);}if(aE.get_V()==null){aC.value.val(0);}break;case"v":aC.value.val(100-Y.get_Y());if(aE.get_H()==null){aC.hue.val(0);}if(aE.get_S()==null){aC.saturation.val(0);}break;case"r":aC.red.val(255-Y.get_Y());if(aE.get_G()==null){aC.green.val(0);}if(aE.get_B()==null){aC.blue.val(0);}break;case"g":aC.green.val(255-Y.get_Y());if(aE.get_R()==null){aC.red.val(0);}if(aE.get_B()==null){aC.blue.val(0);}break;case"b":aC.blue.val(255-Y.get_Y());if(aE.get_R()==null){aC.red.val(0);}if(aE.get_G()==null){aC.green.val(0);}break;case"a":aC.alpha.val(100-Y.get_Y());if(aE.get_R()==null){aC.red.val(0);}if(aE.get_G()==null){aC.green.val(0);}if(aE.get_B()==null){aC.blue.val(0);}break;}if(aE.get_A()==null){aC.alpha.val(100);}switch(K.mode){case"h":case"s":case"v":az.setValuesFromHsva();break;case"r":case"g":case"b":case"a":az.setValuesFromRgba();break;}ah();if(aj.expandable&&aj.liveUpdate){var aD=aE.get_Hex();o.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});ad(m,100-aE.get_A());if(aj.bindToInput){aj.input.val(aE.get_Rgba()||"").css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent",color:aE.get_V()>75?"#000000":"#ffffff"});}}e.isFunction(w.liveCallback)&&w.liveCallback(aE);},v=function(){K.active=az.color;var aF=0,aE=K.active;switch(w.settings.color.mode){case"h":aF=360-aE.get_H();break;case"s":aF=100-aE.get_S();break;case"v":aF=100-aE.get_V();break;case"r":aF=255-aE.get_R();break;case"g":aF=255-aE.get_G();break;case"b":aF=255-aE.get_B();break;case"a":aF=100-aE.get_A();break;}Y.set_Y(aF);var aD=0,aC=0;switch(w.settings.color.mode){case"h":aD=aE.get_S();aC=100-aE.get_V();break;case"s":case"a":aD=aE.get_H();aC=100-aE.get_V();break;case"v":aD=aE.get_H();aC=100-aE.get_S();break;case"r":aD=aE.get_B();aC=255-aE.get_G();break;case"g":aD=aE.get_B();aC=255-aE.get_R();break;case"b":aD=aE.get_R();aC=255-aE.get_G();break;}G.set_X(aD);G.set_Y(aC);},ah=function(){aB();ar();Z();},aB=function(){try{var aC=az.color.get_Hex();A.css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent"});ad(A,az.color.get_A());}catch(aD){}},ar=function(){if(!K||!az){return;}K.active=az.color;var aC=K.active;switch(K.mode){case"h":z(ay,new f({h:aC.get_H(),s:100,v:100}).get_Hex());break;case"s":case"a":ad(av,100-aC.get_S());break;case"v":ad(av,aC.get_V());break;case"r":ad(av,aC.get_R()/255*100);break;case"g":ad(av,aC.get_G()/255*100);break;case"b":ad(av,aC.get_B()/255*100);break;}ad(au,100-aC.get_A());},Z=function(){if(!K||!az){return;}K.active=az.color;var aG=K.active;switch(K.mode){case"h":ad(P,100-aG.get_A());break;case"s":var aH=new f({h:aG.get_H(),s:100,v:aG.get_V()});z(R,aH.get_Hex());ad(P,100-aG.get_A());break;case"v":var aJ=new f({h:aG.get_H(),s:aG.get_S(),v:100});z(R,aJ.get_Hex());ad(P,100-aG.get_A());break;case"r":case"g":case"b":var aI=0,aK=0;if(K.mode=="r"){aI=aG.get_B();aK=aG.get_G();}else{if(K.mode=="g"){aI=aG.get_B();aK=aG.get_R();}else{if(K.mode=="b"){aI=aG.get_R();aK=aG.get_G();}}}var aC=aI/255*100,aF=aK/255*100,aE=(255-aI)/255*100,aD=(255-aK)/255*100;ad(T,aD>aE?aE:aD);ad(S,aD>aC?aC:aD);ad(R,aF>aC?aC:aF);ad(Q,aF>aE?aE:aF);ad(P,100-aG.get_A());break;case"a":z(R,aG.get_Hex());break;}},z=function(aC,aD){aC.css({backgroundColor:aD&&aD.length==6?"#"+aD:"transparent"});},t=function(aC,aD){aC.css({backgroundImage:"url("+aD+")"});},x=function(aC,aD){aC.css({backgroundPosition:"0px "+aD+"px"});},ad=function(aD,aC){aD.css({visibility:aC>0?"visible":"hidden"});if(aC>0&&aC<100){aD.css({opacity:aC/100});}else{if(aC==0||aC==100){aD.css({opacity:""});}}},E=function(){az.fields.hex.val(K.current.get_Rgba()||"");az.setValuesFromHex();e.isFunction(az.valuesChanged)&&az.valuesChanged(az);},D=function(aC){an(aC.target.value);},ae=function(){E();},s=function(){E();aj.expandable&&w.hide();e.isFunction(w.cancelCallback)&&w.cancelCallback(K.active);},X=function(){var aD=K.active;K.current=new f({hex:aD.get_Rgba()});var aC=aD.get_Hex();l.css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent"});ad(l,az.color.get_A());if(aj.expandable){o.css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent"});ad(m,100-aD.get_A());if(aj.bindToInput){aj.input.val(aD.get_Rgba()||"").css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent",color:aD.get_V()>75?"#000000":"#ffffff"});}}e.isFunction(w.commitCallback)&&w.commitCallback(aD);},p=function(){X();aj.expandable&&w.hide();},ag=function(){w.show();},W=function(aE){var aC=aj.element,aD=aj.page;M=parseInt(V.css("left"));L=parseInt(V.css("top"));at=aE.pageX;aq=aE.pageY;e(document).bind("mousemove",k).bind("mouseup",r);aE.stopPropagation();aE.preventDefault();return false;},k=function(aC){V.css({left:M-(at-aC.pageX)+"px",top:L-(aq-aC.pageY)+"px"});aC.stopPropagation();aC.preventDefault();return false;},r=function(aC){e(document).unbind("mousemove",k).unbind("mouseup",r);aC.stopPropagation();aC.preventDefault();return false;},F=function(aC){az.fields.hex.val(w.settings.window.input.val());az.bindedHexKeyUp(aC);},H=function(aC){az.fields.hex.val(new f({hex:e(this).attr("title")}).get_Rgba()||"");az.setValuesFromHex();e.isFunction(az.valuesChanged)&&az.valuesChanged(az);};e.extend(true,w,{id:w.attr("id"),settings:y,color:null,icon:null,commitCallback:e.isFunction(h[1])&&h[1]||null,liveCallback:e.isFunction(h[2])&&h[2]||null,cancelCallback:e.isFunction(h[3])&&h[3]||null,show:function(){if(document.all){var aD=false;for(i=0;i<c.length;i++){if(aD){c[i].color.add(c[i].icon).css({display:"none"});}if(c[i].id==w.id){aD=true;}}}K.current=new f({hex:K.active.get_Rgba()});var aC=K.active.get_Hex();l.css({backgroundColor:aC&&aC.length==6?"#"+aC:"transparent"});ad(l,K.active.get_A());V.css({display:"block"});v();},hide:function(){if(document.all){var aC=false;for(i=0;i<c.length;i++){if(aC){c[i].color.add(c[i].icon).css({display:"block"});}if(c[i].id==w.id){aC=true;}}}V.css({display:"none"});},destroy:function(){if(aj.expandable){C=V.find(".jPicker_Icon").unbind("click",ag);}if(aj.bindToInput){aj.input.unbind("keyup",F).unbind("change",F);}aa.add(aA).add(ak).add(am).add(ao).add(I).unbind("click",D);l.unbind("click",ae);ab.unbind("click",s);ap.unbind("click",p);if(aj.expandable){u.unbind("mousedown",W);}V.find(".jPicker_QuickColor").unbind("click",H);aa=null;aA=null;ak=null;am=null;ao=null;I=null;aw=null;ay=null;av=null;au=null;T=null;S=null;R=null;Q=null;P=null;O=null;J=null;A=null;l=null;ap=null;ab=null;ai=null;w.color=null;w.icon=null;G.destroy();G=null;Y.destroy();Y=null;az.destroy();az=null;w.commitCallback=null;w.cancelCallback=null;w.liveCallback=null;V.html("");for(i=0;i<c.length;i++){if(c[i].id==w.id){c.splice(i,1);}}}});var q=w.settings.images,aj=w.settings.window,af=w.settings.localization,K=w.settings.color;V=aj.expandable?w.next().find(".jPicker_Container"):w;if(aj.expandable){V.css({left:aj.position.x=="left"?"-526px":aj.position.x=="center"?"-259px":aj.position.x=="right"?"0px":aj.position.x=="screenCenter"?((e(document).width()>>1)-259)-w.next().offset().left+"px":aj.position.x,position:"absolute",top:aj.position.y=="top"?"-350px":aj.position.y=="center"?"-158px":aj.position.y=="bottom"?"25px":aj.position.y});}if((typeof(K.active)).toString().toLowerCase()=="string"){K.active=new f({hex:K.active});}V.html(\'<table class="jPicker_table"><tbody>\'+(aj.expandable?\'<tr><td class="jPicker_MoveBar" colspan="6">&nbsp;</td></tr>\':"")+\'<tr><td rowspan="9"><h2 class="jPicker_Title">\'+(aj.title||af.text.title)+\'</h2><div class="jPicker_ColorMap"><span class="jPicker_ColorMap_l1">&nbsp;</span><span class="jPicker_ColorMap_l2">&nbsp;</span><span class="jPicker_ColorMap_l3">&nbsp;</span><img src="\'+q.clientPath+q.colorMap.arrow.file+\'" class="jPicker_ColorMap_Arrow"/></div></td><td rowspan="9"><div class="jPicker_ColorBar"><span class="jPicker_ColorBar_l1">&nbsp;</span><span class="jPicker_ColorBar_l2">&nbsp;</span><span class="jPicker_ColorBar_l3">&nbsp;</span><span class="jPicker_ColorBar_l4">&nbsp;</span><span class="jPicker_ColorBar_l5">&nbsp;</span><span class="jPicker_ColorBar_l6">&nbsp;</span><img src="\'+q.clientPath+q.colorBar.arrow.file+\'" class="jPicker_ColorBar_Arrow"/></div></td><td colspan="3" class="jPicker_Preview">\'+af.text.newColor+\'<div class="jPicker_NewCurrent"><span class="jPicker_Active" title="\'+af.tooltips.colors.newColor+\'">&nbsp;</span><span class="jPicker_Current" title="\'+af.tooltips.colors.currentColor+\'">&nbsp;</span></div>\'+af.text.currentColor+\'</td><td rowspan="9" class="jPicker_OkCancel"><input type="button" class="jPicker_Ok" value="\'+af.text.ok+\'" title="\'+af.tooltips.buttons.ok+\'"/><input type="button" class="jPicker_Cancel" value="\'+af.text.cancel+\'" title="\'+af.tooltips.buttons.cancel+\'"/><hr/><div class="jPicker_Grid">&nbsp;</div></td></tr><tr><td><input type="radio" class="jPicker_HueRadio" id="jPicker_Hue_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="h" title="\'+af.tooltips.hue.radio+\'"/></td><td><label for="jPicker_Hue_\'+c.length+\'" title="\'+af.tooltips.hue.radio+\'">H:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_HueText" value="\'+K.active.get_H()+\'" title="\'+af.tooltips.hue.textbox+\'"/> &deg;</td></tr><tr><td><input type="radio" class="jPicker_SaturationRadio" id="jPicker_Saturation_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="s" title="\'+af.tooltips.saturation.radio+\'"/></td><td><label for="jPicker_Saturation_\'+c.length+\'" title="\'+af.tooltips.saturation.radio+\'">S:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_SaturationText" value="\'+K.active.get_S()+\'" title="\'+af.tooltips.saturation.textbox+\'"/> %</td></tr><tr><td><input type="radio" class="jPicker_BrightnessRadio" id="jPicker_Brightness_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="v" title="\'+af.tooltips.brightness.radio+\'"/><br/><br/></td><td><label for="jPicker_Brightness_\'+c.length+\'" title="\'+af.tooltips.brightness.radio+\'">B:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_BrightnessText" value="\'+K.active.get_V()+\'" title="\'+af.tooltips.brightness.textbox+\'"/> %</td></tr><tr><td><input type="radio" class="jPicker_RedRadio" id="jPicker_Red_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="r" title="\'+af.tooltips.red.radio+\'"/></td><td><label for="jPicker_Red_\'+c.length+\'" title="\'+af.tooltips.red.radio+\'">R:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_RedText" value="\'+K.active.get_R()+\'" title="\'+af.tooltips.red.textbox+\'"/></td></tr><tr><td><input type="radio" class="jPicker_GreenRadio" id="jPicker_Green_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="g" title="\'+af.tooltips.green.radio+\'"/></td><td><label for="jPicker_Green_\'+c.length+\'" title="\'+af.tooltips.green.radio+\'">G:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_GreenText" value="\'+K.active.get_G()+\'" title="\'+af.tooltips.green.textbox+\'"/></td></tr><tr><td><input type="radio" class="jPicker_BlueRadio" id="jPicker_Blue_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="b" title="\'+af.tooltips.blue.radio+\'"/></td><td><label for="jPicker_Blue_\'+c.length+\'" title="\'+af.tooltips.blue.radio+\'">B:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_BlueText" value="\'+K.active.get_B()+\'" title="\'+af.tooltips.blue.textbox+\'"/></td></tr><tr><td><input type="radio" class="jPicker_AlphaRadio" id="jPicker_Alpha_\'+c.length+\'" name="jPicker_Mode_\'+c.length+\'" value="a" title="\'+af.tooltips.alpha.radio+\'"/></td><td><label for="jPicker_Alpha_\'+c.length+\'" title="\'+af.tooltips.alpha.radio+\'">A:</label></td><td class="jPicker_Text"><input type="text" class="jPicker_AlphaText" value="\'+K.active.get_A()+\'" title="\'+af.tooltips.alpha.textbox+\'"/> %</td></tr><tr><td class="jPicker_HexCol"><label for="jPicker_Hex_\'+c.length+\'" title="\'+af.tooltips.hex.textbox+\'">#:</label></td><td class="jPicker_EnterHex" colspan="2"><input type="text" class="jPicker_HexText" id="jPicker_Hex_\'+c.length+\'" value="\'+K.active.get_Rgba()+\'" title="\'+af.tooltips.hex.textbox+\'"/></td></tr></tbody></table>\');aa=V.find(".jPicker_HueRadio");aA=V.find(".jPicker_SaturationRadio");ak=V.find(".jPicker_BrightnessRadio");am=V.find(".jPicker_RedRadio");ao=V.find(".jPicker_GreenRadio");I=V.find(".jPicker_BlueRadio");aw=V.find(".jPicker_AlphaRadio");ay=V.find(".jPicker_ColorMap_l1");av=V.find(".jPicker_ColorMap_l2");au=V.find(".jPicker_ColorMap_l3");T=V.find(".jPicker_ColorBar_l1");S=V.find(".jPicker_ColorBar_l2");R=V.find(".jPicker_ColorBar_l3");Q=V.find(".jPicker_ColorBar_l4");P=V.find(".jPicker_ColorBar_l5");O=V.find(".jPicker_ColorBar_l6");J=V.find(".jPicker_NewCurrent");var ac=K.active.get_Hex();A=V.find(".jPicker_Active").css({backgroundColor:ac&&ac.length==6?"#"+ac:"transparent"});l=V.find(".jPicker_Current").css({backgroundColor:ac&&ac.length==6?"#"+ac:"transparent"});ap=V.find(".jPicker_Ok");ab=V.find(".jPicker_Cancel");ai=V.find(".jPicker_Grid");w.color=e(".Picker_Color");w.icon=e(".jPicker_Icon");az=new b(V,n);G=new d(V.find(".jPicker_ColorMap"),{map:{width:q.colorMap.width,height:q.colorMap.height},arrow:{image:q.clientPath+q.colorMap.arrow.file,width:q.colorMap.arrow.width,height:q.colorMap.arrow.height}},B);Y=new d(V.find(".jPicker_ColorBar"),{map:{width:q.colorBar.width,height:q.colorBar.height},arrow:{image:q.clientPath+q.colorBar.arrow.file,width:q.colorBar.arrow.width,height:q.colorBar.arrow.height}},al);t(ay,q.clientPath+"Maps.png");t(av,q.clientPath+"Maps.png");t(au,q.clientPath+"map-opacity.png");t(T,q.clientPath+"Bars.png");t(S,q.clientPath+"Bars.png");t(R,q.clientPath+"Bars.png");t(Q,q.clientPath+"Bars.png");t(P,q.clientPath+"bar-opacity.png");t(O,q.clientPath+"AlphaBar.png");t(J,q.clientPath+"preview-opacity.png");if(aj.expandable){o=w.next().find(".jPicker_Color").css({backgroundColor:ac&&ac.length==6?"#"+ac:"transparent"});m=w.next().find(".jPicker_Alpha");t(m,q.clientPath+"bar-opacity.png");ad(m,100-K.active.get_A());C=w.next().find(".jPicker_Icon").css({backgroundImage:"url("+q.clientPath+q.picker.file+")"}).bind("click",ag);if(aj.bindToInput){aj.input.bind("keyup",F).bind("change",F);}}aa.add(aA).add(ak).add(am).add(ao).add(I).add(aw).bind("click",D);l.bind("click",ae);ab.bind("click",s);ap.bind("click",p);if(aj.expandable){u=V.find(".jPicker_MoveBar").bind("mousedown",W);}if(K.quickList&&K.quickList.length>0){ai.html("");for(i=0;i<K.quickList.length;i++){if((typeof(K.quickList[i])).toString().toLowerCase()=="string"){K.quickList[i]=new f({hex:K.quickList[i]});}var ax=K.quickList[i].get_Rgba();ai.append(\'<span class="jPicker_QuickColor" title="\'+(ax&&"#"+ax||"")+\'">&nbsp;</span>\');var N=K.quickList[i].get_Hex();V.find(".jPicker_QuickColor").eq(i).css({backgroundColor:N&&N.length==6?"#"+N:"transparent",backgroundImage:N?"none":"url("+q.clientPath+"NoColor.png)"}).click(H);}}an(K.mode);az.fields.hex.val(K.active.get_Rgba()||"");az.setValuesFromHex();v();ah();if(!aj.expandable){w.show();}c.push(w);});};e.fn.jPicker.defaults={window:{title:null,position:{x:"screenCenter",y:"top"},expandable:false,liveUpdate:true},color:{mode:"h",active:new f({hex:"#ffcc00ff"}),quickList:[new f({h:360,s:33,v:100}),new f({h:360,s:66,v:100}),new f({h:360,s:100,v:100}),new f({h:360,s:100,v:75}),new f({h:360,s:100,v:50}),new f({h:180,s:0,v:100}),new f({h:30,s:33,v:100}),new f({h:30,s:66,v:100}),new f({h:30,s:100,v:100}),new f({h:30,s:100,v:75}),new f({h:30,s:100,v:50}),new f({h:180,s:0,v:90}),new f({h:60,s:33,v:100}),new f({h:60,s:66,v:100}),new f({h:60,s:100,v:100}),new f({h:60,s:100,v:75}),new f({h:60,s:100,v:50}),new f({h:180,s:0,v:80}),new f({h:90,s:33,v:100}),new f({h:90,s:66,v:100}),new f({h:90,s:100,v:100}),new f({h:90,s:100,v:75}),new f({h:90,s:100,v:50}),new f({h:180,s:0,v:70}),new f({h:120,s:33,v:100}),new f({h:120,s:66,v:100}),new f({h:120,s:100,v:100}),new f({h:120,s:100,v:75}),new f({h:120,s:100,v:50}),new f({h:180,s:0,v:60}),new f({h:150,s:33,v:100}),new f({h:150,s:66,v:100}),new f({h:150,s:100,v:100}),new f({h:150,s:100,v:75}),new f({h:150,s:100,v:50}),new f({h:180,s:0,v:50}),new f({h:180,s:33,v:100}),new f({h:180,s:66,v:100}),new f({h:180,s:100,v:100}),new f({h:180,s:100,v:75}),new f({h:180,s:100,v:50}),new f({h:180,s:0,v:40}),new f({h:210,s:33,v:100}),new f({h:210,s:66,v:100}),new f({h:210,s:100,v:100}),new f({h:210,s:100,v:75}),new f({h:210,s:100,v:50}),new f({h:180,s:0,v:30}),new f({h:240,s:33,v:100}),new f({h:240,s:66,v:100}),new f({h:240,s:100,v:100}),new f({h:240,s:100,v:75}),new f({h:240,s:100,v:50}),new f({h:180,s:0,v:20}),new f({h:270,s:33,v:100}),new f({h:270,s:66,v:100}),new f({h:270,s:100,v:100}),new f({h:270,s:100,v:75}),new f({h:270,s:100,v:50}),new f({h:180,s:0,v:10}),new f({h:300,s:33,v:100}),new f({h:300,s:66,v:100}),new f({h:300,s:100,v:100}),new f({h:300,s:100,v:75}),new f({h:300,s:100,v:50}),new f({h:180,s:0,v:0}),new f({h:330,s:33,v:100}),new f({h:330,s:66,v:100}),new f({h:330,s:100,v:100}),new f({h:330,s:100,v:75}),new f({h:330,s:100,v:50}),new f()]},images:{clientPath:"/jPicker/images/",colorMap:{width:256,height:256,arrow:{file:"mappoint.gif",width:15,height:15}},colorBar:{width:20,height:256,arrow:{file:"rangearrows.gif",width:40,height:9}},picker:{file:"picker.gif",width:25,height:24}},localization:{text:{title:"Drag Markers To Pick A Color",newColor:"new",currentColor:"current",ok:"OK",cancel:"Cancel"},tooltips:{colors:{newColor:"New Color - Press &ldquo;OK&rdquo; To Commit",currentColor:"Click To Revert To Original Color"},buttons:{ok:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},hue:{radio:"Set To &ldquo;Hue&rdquo; Color Mode",textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)"},saturation:{radio:"Set To &ldquo;Saturation&rdquo; Color Mode",textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)"},brightness:{radio:"Set To &ldquo;Brightness&rdquo; Color Mode",textbox:"Enter A &ldquo;Brightness&rdquo; Value (0-100%)"},red:{radio:"Set To &ldquo;Red&rdquo; Color Mode",textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)"},green:{radio:"Set To &ldquo;Green&rdquo; Color Mode",textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)"},blue:{radio:"Set To &ldquo;Blue&rdquo; Color Mode",textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)"},alpha:{radio:"Set To &ldquo;Alpha&rdquo; Color Mode",textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)"},hex:{textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)"}}}};})(jQuery,"1.0.12");
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>32141</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003716.63</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>jquery.jgraduate.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/x-javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\n
* jGraduate 0.3.x\n
*\n
* jQuery Plugin for a gradient picker\n
*\n
* Copyright (c) 2010 Jeff Schiller\n
* http://blog.codedread.com/\n
* Copyright (c) 2010 Alexis Deveria\n
* http://a.deveria.com/\n
*\n
* Apache 2 License\n
\n
jGraduate( options, okCallback, cancelCallback )\n
\n
where options is an object literal:\n
\t{\n
\t\twindow: { title: "Pick the start color and opacity for the gradient" },\n
\t\timages: { clientPath: "images/" },\n
\t\tpaint: a Paint object\n
\t}\n
\n
- the Paint object is:\n
\tPaint {\n
\t\ttype: String, // one of "none", "solidColor", "linearGradient", "radialGradient"\n
\t\talpha: Number representing opacity (0-100),\n
\t\tsolidColor: String representing #RRGGBB hex of color,\n
\t\tlinearGradient: object of interface SVGLinearGradientElement,\n
\t\tradialGradient: object of interface SVGRadialGradientElement,\n
\t}\n
\n
$.jGraduate.Paint() -> constructs a \'none\' color\n
$.jGraduate.Paint({copy: o}) -> creates a copy of the paint o\n
$.jGraduate.Paint({hex: "#rrggbb"}) -> creates a solid color paint with hex = "#rrggbb"\n
$.jGraduate.Paint({linearGradient: o, a: 50}) -> creates a linear gradient paint with opacity=0.5\n
$.jGraduate.Paint({radialGradient: o, a: 7}) -> creates a radial gradient paint with opacity=0.07\n
$.jGraduate.Paint({hex: "#rrggbb", linearGradient: o}) -> throws an exception?\n
\n
- picker accepts the following object as input:\n
\t{\n
\t\tokCallback: function to call when Ok is pressed\n
\t\tcancelCallback: function to call when Cancel is pressed\n
\t\tpaint: object describing the paint to display initially, if not set, then default to opaque white\n
\t}\n
\n
- okCallback receives a Paint object\n
\n
*\n
*/\n
\n
(function() {\n
\n
var ns = { svg: \'http://www.w3.org/2000/svg\', xlink: \'http://www.w3.org/1999/xlink\' };\n
if(!window.console) {\n
window.console = new function() {\n
this.log = function(str) {};\n
this.dir = function(str) {};\n
};\n
}\n
$.cloneNode = function(el) {\n
\tif(!window.opera) return el.cloneNode(true);\n
\t// manually create a copy of the element\n
\topera.postError(ns.svg, el.nodeName);\n
\tvar new_el = document.createElementNS(ns.svg, el.nodeName);\n
\t$.each(el.attributes, function(i, attr) {\n
\t\tnew_el.setAttributeNS(ns.svg, attr.nodeName, attr.nodeValue);\n
\t});\n
\t$.each(el.childNodes, function(i, child) {\n
\t\tif(child.nodeType == 1) {\n
\t\t\tnew_el.appendChild($.cloneNode(child));\n
\t\t}\n
\t});\n
\treturn new_el;\n
}\n
\n
$.jGraduate = { \n
\tPaint:\n
\t\tfunction(opt) {\n
\t\t\tvar options = opt || {};\n
\t\t\tthis.alpha = options.alpha || 100;\n
\t\t\t// copy paint object\n
\t\tif (options.copy) {\n
\t\t\tthis.type = options.copy.type;\n
\t\t\tthis.alpha = options.copy.alpha;\n
\t\t\t\tthis.solidColor = null;\n
\t\t\t\tthis.linearGradient = null;\n
\t\t\t\tthis.radialGradient = null;\n
\n
\t\t\tswitch(this.type) {\n
\t\t\t\tcase "none":\n
\t\t\t\t\tbreak;\n
\t\t\t\tcase "solidColor":\n
\t\t\t\t\tthis.solidColor = options.copy.solidColor;\n
\t\t\t\t\tbreak;\n
\t\t\t\tcase "linearGradient":\n
\t\t\t\t\tthis.linearGradient = $.cloneNode(options.copy.linearGradient);\n
\t\t\t\t\tbreak;\n
\t\t\t\tcase "radialGradient":\n
\t\t\t\t\tthis.radialGradient = $.cloneNode(options.copy.radialGradient);\n
\t\t\t\t\tbreak;\n
\t\t\t}\n
\t\t}\n
\t\t// create linear gradient paint\n
\t\telse if (options.linearGradient) {\n
\t\t\tthis.type = "linearGradient";\n
\t\t\tthis.solidColor = null;\n
\t\t\tthis.radialGradient = null;\n
\t\t\tthis.linearGradient = $.cloneNode(options.linearGradient);\n
\t\t}\n
\t\t// create linear gradient paint\n
\t\telse if (options.radialGradient) {\n
\t\t\tthis.type = "radialGradient";\n
\t\t\tthis.solidColor = null;\n
\t\t\tthis.linearGradient = null;\n
\t\t\tthis.radialGradient = $.cloneNode(options.radialGradient);\n
\t\t}\n
\t\t// create solid color paint\n
\t\telse if (options.solidColor) {\n
\t\t\tthis.type = "solidColor";\n
\t\t\tthis.solidColor = options.solidColor;\n
\t\t}\n
\t\t// create empty paint\n
\t \telse {\n
\t \t\tthis.type = "none";\n
\t\t\tthis.solidColor = null;\n
\t\t\tthis.linearGradient = null;\n
\t\t\tthis.radialGradient = null;\n
\t \t}\n
\t\t}\n
};\n
\n
jQuery.fn.jGraduateDefaults = {\n
\tpaint: new $.jGraduate.Paint(),\n
\twindow: {\n
\t\tpickerTitle: "Drag markers to pick a paint"\n
\t},\n
\timages: {\n
\t\tclientPath: "images/"\n
\t}\n
};\n
\n
jQuery.fn.jGraduate =\n
\tfunction(options) {\n
\t \tvar $arguments = arguments;\n
\t\treturn this.each( function() {\n
\t\t\tvar $this = $(this), $settings = $.extend(true, {}, jQuery.fn.jGraduateDefaults, options),\n
\t\t\t\tid = $this.attr(\'id\'),\n
\t\t\t\tidref = \'#\'+$this.attr(\'id\')+\' \';\n
\t\t\t\n
if (!idref)\n
{\n
alert(\'Container element must have an id attribute to maintain unique id strings for sub-elements.\');\n
return;\n
}\n
\n
var okClicked = function() {\n
\t // TODO: Fix this ugly hack\n
\t if($this.paint.type == "radialGradient") {\n
\t \t$this.paint.linearGradient = null;\n
\t } else if($this.paint.type == "linearGradient") {\n
\t \t$this.paint.radialGradient = null;\t \n
\t } else if($this.paint.type == "solidColor") {\n
\t \t$this.paint.linearGradient = null;\n
\t \t$this.paint.radialGradient = null;\n
\t }\n
\t$.isFunction($this.okCallback) && $this.okCallback($this.paint);\n
\t$this.hide();\n
},\n
cancelClicked = function() {\n
\t$.isFunction($this.cancelCallback) && $this.cancelCallback();\n
\t$this.hide();\n
};\n
\n
$.extend(true, $this, // public properties, methods, and callbacks\n
{\n
\t// make a copy of the incoming paint\n
paint: new $.jGraduate.Paint({copy: $settings.paint}),\n
okCallback: $.isFunction($arguments[1]) && $arguments[1] || null,\n
cancelCallback: $.isFunction($arguments[2]) && $arguments[2] || null\n
});\n
\n
\t\t\tvar pos = $this.position(),\n
\t\t\t\tcolor = null;\n
\n
\t\t\tif ($this.paint.type == "none") {\n
\t\t\t\t$this.paint = $.jGraduate.Paint({solidColor: \'ffffff\'});\n
\t\t\t}\n
\t\t\t\n
$this.addClass(\'jGraduate_Picker\');\n
$this.html(\'<ul class="jGraduate_tabs">\' +\n
\t\t\t\t\'<li class="jGraduate_tab_color jGraduate_tab_current" data-type="col">Solid Color</li>\' +\n
\t\t\t\t\'<li class="jGraduate_tab_lingrad" data-type="lg">Linear Gradient</li>\' +\n
\t\t\t\t\'<li class="jGraduate_tab_radgrad" data-type="rg">Radial Gradient</li>\' +\n
\t\t\t\'</ul>\' +\n
\t\t\t\'<div class="jGraduate_colPick"></div>\' +\n
\t\t\t\'<div class="jGraduate_lgPick"></div>\' +\n
\t\t\t\'<div class="jGraduate_rgPick"></div>\');\n
\t\t\tvar colPicker = $(idref + \'> .jGraduate_colPick\');\n
\t\t\tvar lgPicker = $(idref + \'> .jGraduate_lgPick\');\n
\t\t\tvar rgPicker = $(idref + \'> .jGraduate_rgPick\');\n
\t\t\t\n
lgPicker.html(\n
\t\'<div id="\' + id + \'_jGraduate_Swatch" class="jGraduate_Swatch">\' +\n
\t\t\'<h2 class="jGraduate_Title">\' + $settings.window.pickerTitle + \'</h2>\' +\n
\t\t\'<div id="\' + id + \'_lg_jGraduate_GradContainer" class="jGraduate_GradContainer"></div>\' +\n
\t\t\'<div id="\' + id + \'_lg_jGraduate_Opacity" class="jGraduate_Opacity" title="Click to set overall opacity of the gradient paint">\' +\n
\t\t\t\'<img id="\' + id + \'_lg_jGraduate_AlphaArrows" class="jGraduate_AlphaArrows" src="\' + $settings.images.clientPath + \'rangearrows2.gif"></img>\' +\n
\t\t\'</div>\' +\n
\t\'</div>\' + \n
\t\'<div class="jGraduate_Form">\' +\n
\t\t\'<div class="jGraduate_StopSection">\' +\n
\t \t\t\'<label class="jGraduate_Form_Heading">Begin Stop</label>\' +\n
\t \t\t\'<div class="jGraduate_Form_Section">\' +\n
\t \t\t\t\'<label>x:</label>\' +\n
\t\t\t\t\'<input type="text" id="\' + id + \'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/>\' +\n
\t\t\t\t\'<label> y:</label>\' +\n
\t\t\t\t\'<input type="text" id="\' + id + \'_jGraduate_y1" size="3" title="Enter starting y value between 0.0 and 1.0"/>\' +\n
\t \t \t\t\'<div id="\' + id + \'_jGraduate_colorBoxBegin" class="colorBox"></div>\' +\n
\t\t \t\t\'<label id="\' + id + \'_jGraduate_beginOpacity"> 100%</label>\' +\n
\t \t\t\t\'</div>\' +\n
\t \t\t\'</div>\' +\n
\t \t\t\'<div class="jGraduate_StopSection">\' +\n
\t \t\t\'<label class="jGraduate_Form_Heading">End Stop</label>\' +\n
\t \t\t\'<div class="jGraduate_Form_Section">\' +\n
\t \t \t\t\'<label>x:</label>\' +\n
\t\t \t \t\'<input type="text" id="\' + id + \'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/>\' +\n
\t\t \t \t\'<label> y:</label>\' +\n
\t\t \t\t\'<input type="text" id="\' + id + \'_jGraduate_y2" size="3" title="Enter ending y value between 0.0 and 1.0"/>\' +\n
\t \t\t\t\'<div id="\' + id + \'_jGraduate_colorBoxEnd" class="colorBox"></div>\' +\n
\t\t\t \t\'<label id="\' + id + \'_jGraduate_endOpacity">100%</label>\' +\n
\t \t \t\'</div>\' +\n
\t \t \'</div>\' +\n
\t \t \'<div class="lg_jGraduate_OpacityField">\' +\n
\t \t \t\'<label class="lg_jGraduate_OpacityLabel">A: </label>\' +\n
\t \t \t\'<input type="text" id="\' + id + \'_lg_jGraduate_OpacityInput" class="jGraduate_OpacityInput" size="3" value="100"/>%\' +\n
\t \t \'</div>\' +\n
\t \t\'</div>\' +\n
\t \'<div class="jGraduate_OkCancel">\' +\n
\t\t\'<input type="button" id="\' + id + \'_lg_jGraduate_Ok" class="jGraduate_Ok" value="OK"/>\' +\n
\t\t\'<input type="button" id="\' + id + \'_lg_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/>\' +\n
\t\'</div>\' +\n
\t\'<div class="jGraduate_LightBox"></div>\' +\n
\t\'<div id="\' + id + \'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>\');\n
\t\n
rgPicker.html(\n
\t\'<div class="jGraduate_Swatch">\' +\n
\t\t\'<h2 class="jGraduate_Title">\' + $settings.window.pickerTitle + \'</h2>\' +\n
\t\t\'<div id="\' + id + \'_rg_jGraduate_GradContainer" class="jGraduate_GradContainer"></div>\' +\n
\t\t\'<div id="\' + id + \'_rg_jGraduate_Opacity" class="jGraduate_Opacity" title="Click to set overall opacity of the gradient paint">\' +\n
\t\t\t\'<img id="\' + id + \'_rg_jGraduate_AlphaArrows" class="jGraduate_AlphaArrows" src="\' + $settings.images.clientPath + \'rangearrows2.gif"></img>\' +\n
\t\t\'</div>\' +\n
\t\'</div>\' + \n
\t\t\t\t\'<div id="jGraduate_radColors" class="jGraduate_StopSection">\' +\n
\t\t\t\t\t\'<label class="jGraduate_Form_Heading">Colors</label>\' +\n
\t\t\t\t\t\'<div class="jGraduate_Form_Section jGraduate_Colorblocks">\' +\n
\t\t\t\t\t\t\'<div class="jGraduate_colorblock"><span>Center:</span>\' +\n
\t\t\t\t\t\t\'<div id="\' + id + \'_jGraduate_colorBoxCenter" class="colorBox"></div>\' +\n
\t\t\t\t\t\t\'<label id="\' + id + \'_rg_jGraduate_centerOpacity"> 100%</label></div>\' +\n
\n
\t\t\t\t\t\t\'<div class="jGraduate_colorblock"><span>Outer:</span>\' +\n
\t\t\t\t\t\t\t\'<div id="\' + id + \'_jGraduate_colorBoxOuter" class="colorBox"></div>\' +\n
\t\t\t\t\t\t\t\'<label id="\' + id + \'_jGraduate_outerOpacity"> 100%</label></div>\' +\n
\t\t\t\t\t\'</div>\' +\n
\t\t\t\t\'</div>\' +\n
\t\t\t\t\'<div class="jGraduate_StopSection">\' +\n
\t\t\t\t\'</div>\' +\n
\t\'<div class="jGraduate_Form">\' +\n
\t \t\t\'<div class="jGraduate_StopSection">\' +\n
\t \t\t\'<label class="jGraduate_Form_Heading">Center Point</label>\' +\n
\t \t\t\'<div class="jGraduate_Form_Section">\' +\n
\t \t \t\t\'<label>x:</label>\' +\n
\t\t \t \t\'<input type="text" id="\' + id + \'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/>\' +\n
\t\t \t \t\'<label> y:</label>\' +\n
\t\t \t\t\'<input type="text" id="\' + id + \'_jGraduate_cy" size="3" title="Enter y value between 0.0 and 1.0"/>\' +\n
\t \t \t\'</div>\' +\n
\t \t \'</div>\' +\n
\t \t\t\'<div class="jGraduate_StopSection">\' +\n
\t \t\t\'<label class="jGraduate_Form_Heading">Focal Point</label>\' +\n
\t \t\t\'<div class="jGraduate_Form_Section">\' +\n
\t \t \t\t\'<label>Match center: <input type="checkbox" checked="checked" id="\' + id + \'_jGraduate_match_ctr"/></label><br/>\' +\n
\t \t \t\t\'<label>x:</label>\' +\n
\t\t \t \t\'<input type="text" id="\' + id + \'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/>\' +\n
\t\t \t \t\'<label> y:</label>\' +\n
\t\t \t\t\'<input type="text" id="\' + id + \'_jGraduate_fy" size="3" title="Enter y value between 0.0 and 1.0"/>\' +\n
\t \t \t\'</div>\' +\n
\t \t \'</div>\' +\n
\t \t\t\'<div class="jGraduate_RadiusField">\' +\n
\t \t\t\'<label class="jGraduate_Form_Heading">Radius</label>\' +\n
\t \t\t\'<div class="jGraduate_Form_Section">\' +\n
\t\t\t\t\t\t\t\'<div id="\' + id + \'_jGraduate_RadiusContainer" class="jGraduate_RadiusContainer"></div>\' +\n
\t\t\t\t\t\t\t\'<input type="text" id="\' + id + \'_jGraduate_RadiusInput" size="3" value="100"/>%\' +\n
\t\t\t\t\t\t\t\'<div id="\' + id + \'_jGraduate_Radius" class="jGraduate_Radius" title="Click to set radius">\' +\n
\t\t\t\t\t\t\t\t\'<img id="\' + id + \'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="\' + $settings.images.clientPath + \'rangearrows2.gif"></img>\' +\n
\t\t\t\t\t\t\t\'</div>\' +\n
\t \t \t\'</div>\' +\n
\t \t \'</div>\' +\n
\t \t\'</div>\' +\n
\t\t\t\t\'<div class="rg_jGraduate_OpacityField">\' +\n
\t\t\t\t\t\'<label class="rg_jGraduate_OpacityLabel">A: </label>\' +\n
\t\t\t\t\t\'<input type="text" id="\' + id + \'_rg_jGraduate_OpacityInput" class="jGraduate_OpacityInput" size="3" value="100"/>%\' +\n
\t\t\t\t\'</div>\' +\n
\t \'<div class="jGraduate_OkCancel">\' +\n
\t\t\'<input type="button" id="\' + id + \'_rg_jGraduate_Ok" class="jGraduate_Ok" value="OK"/>\' +\n
\t\t\'<input type="button" id="\' + id + \'_rg_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/>\' +\n
\t\'</div>\' +\n
\t\'<div class="jGraduate_LightBox"></div>\' +\n
\t\'<div id="\' + id + \'_rg_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>\');\n
\t\t\t\n
\t\t\t// --------------\n
// Set up all the SVG elements (the gradient, stops and rectangle)\n
var MAX = 256, MARGINX = 0, MARGINY = 0, STOP_RADIUS = 15/2,\n
\tSIZEX = MAX - 2*MARGINX, SIZEY = MAX - 2*MARGINY;\n
\t\n
$.each([\'lg\', \'rg\'], function(i) {\n
\tvar grad_id = id + \'_\' + this;\n
\t\t\t\tvar container = document.getElementById(grad_id+\'_jGraduate_GradContainer\');\n
\t\t\t\tvar svg = container.appendChild(document.createElementNS(ns.svg, \'svg\'));\n
\t\t\t\tsvg.id = grad_id + \'_jgraduate_svg\'; \n
\t\t\t\tsvg.setAttribute(\'width\', MAX);\n
\t\t\t\tsvg.setAttribute(\'height\', MAX);\n
\t\t\t\tsvg.setAttribute("xmlns", ns.svg);\n
});\n
\t\t\t\n
\t\t\t\n
\t\t\t// Linear gradient\n
\t\t\t(function() {\n
\t\t\t\tvar svg = document.getElementById(id + \'_lg_jgraduate_svg\');\n
\t\t\t\t\n
\t\t\t\t// if we are sent a gradient, import it \n
\t\t\t\tif ($this.paint.type == "linearGradient") {\n
\t\t\t\t\t$this.paint.linearGradient.id = id+\'_jgraduate_grad\';\n
\t\t\t\t\t$this.paint.linearGradient = svg.appendChild($.cloneNode($this.paint.linearGradient));\n
\t\t\t\t} else { // we create a gradient\n
\t\t\t\t\tvar grad = svg.appendChild(document.createElementNS(ns.svg, \'linearGradient\'));\n
\t\t\t\t\tgrad.id = id+\'_jgraduate_grad\';\n
\t\t\t\t\tgrad.setAttribute(\'x1\',\'0.0\');\n
\t\t\t\t\tgrad.setAttribute(\'y1\',\'0.0\');\n
\t\t\t\t\tgrad.setAttribute(\'x2\',\'1.0\');\n
\t\t\t\t\tgrad.setAttribute(\'y2\',\'1.0\');\n
\t\t\t\t\t\n
\t\t\t\t\tvar begin = grad.appendChild(document.createElementNS(ns.svg, \'stop\'));\n
\t\t\t\t\tbegin.setAttribute(\'offset\', \'0.0\');\n
\t\t\t\t\tbegin.setAttribute(\'stop-color\', \'#ff0000\');\n
\t\n
\t\t\t\t\tvar end = grad.appendChild(document.createElementNS(ns.svg, \'stop\'));\n
\t\t\t\t\tend.setAttribute(\'offset\', \'1.0\');\n
\t\t\t\t\tend.setAttribute(\'stop-color\', \'#ffff00\');\n
\t\t\t\t\n
\t\t\t\t\t$this.paint.linearGradient = grad;\n
\t\t\t\t}\n
\t\n
\t\t\t\tvar gradalpha = $this.paint.alpha;\n
\t\t\t\t$(\'#\' + id + \'_lg_jGraduate_OpacityInput\').val(gradalpha);\n
\t\t\t\tvar posx = parseInt(255*(gradalpha/100)) - 4.5;\n
\t\t\t\t$(\'#\' + id + \'_lg_jGraduate_AlphaArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\n
\t\t\t\tvar x1 = parseFloat($this.paint.linearGradient.getAttribute(\'x1\')||0.0),\n
\t\t\t\t\ty1 = parseFloat($this.paint.linearGradient.getAttribute(\'y1\')||0.0),\n
\t\t\t\t\tx2 = parseFloat($this.paint.linearGradient.getAttribute(\'x2\')||1.0),\n
\t\t\t\t\ty2 = parseFloat($this.paint.linearGradient.getAttribute(\'y2\')||0.0);\n
\t\t\t\t\n
\t\t\t\tvar rect = document.createElementNS(ns.svg, \'rect\');\n
\t\t\t\trect.id = id + \'_lg_jgraduate_rect\';\n
\t\t\t\trect.setAttribute(\'x\', MARGINX);\n
\t\t\t\trect.setAttribute(\'y\', MARGINY);\n
\t\t\t\trect.setAttribute(\'width\', SIZEY);\n
\t\t\t\trect.setAttribute(\'height\', SIZEY);\n
\t\t\t\trect.setAttribute(\'fill\', \'url(#\'+id+\'_jgraduate_grad)\');\n
\t\t\t\trect.setAttribute(\'fill-opacity\', \'1.0\');\n
\t\t\t\trect = svg.appendChild(rect);\n
\t\t\t\t$(\'#\' + id + \'_lg_jgraduate_rect\').attr(\'fill-opacity\', gradalpha/100);\n
\t\t\t\t\n
\t\t\t\t// stop visuals created here\n
\t\t\t\tvar beginStop = document.createElementNS(ns.svg, \'image\');\n
\t\t\t\tbeginStop.id = id + "_stop1";\n
\t\t\t\tbeginStop.setAttribute(\'class\', \'stop\');\n
\t\t\t\tbeginStop.setAttributeNS(ns.xlink, \'href\', $settings.images.clientPath + \'mappoint.gif\');\n
\t\t\t\tbeginStop.setAttributeNS(ns.xlink, "title", "Begin Stop");\n
\t\t\t\tbeginStop.appendChild(document.createElementNS(ns.svg, \'title\')).appendChild(\n
\t\t\t\t\tdocument.createTextNode("Begin Stop"));\n
\t\t\t\tbeginStop.setAttribute(\'width\', 18);\n
\t\t\t\tbeginStop.setAttribute(\'height\', 18);\n
\t\t\t\tbeginStop.setAttribute(\'x\', MARGINX + SIZEX*x1 - STOP_RADIUS);\n
\t\t\t\tbeginStop.setAttribute(\'y\', MARGINY + SIZEY*y1 - STOP_RADIUS);\n
\t\t\t\tbeginStop.setAttribute(\'cursor\', \'move\');\n
\t\t\t\t// must append only after setting all attributes due to Webkit Bug 27952\n
\t\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=27592\n
\t\t\t\tbeginStop = svg.appendChild(beginStop);\n
\t\t\t\t\n
\t\t\t\tvar endStop = document.createElementNS(ns.svg, \'image\');\n
\t\t\t\tendStop.id = id + "_stop2";\n
\t\t\t\tendStop.setAttribute(\'class\', \'stop\');\n
\t\t\t\tendStop.setAttributeNS(ns.xlink, \'href\', $settings.images.clientPath + \'mappoint.gif\');\n
\t\t\t\tendStop.setAttributeNS(ns.xlink, "title", "End Stop");\n
\t\t\t\tendStop.appendChild(document.createElementNS(ns.svg, \'title\')).appendChild(\n
\t\t\t\t\tdocument.createTextNode("End Stop"));\n
\t\t\t\tendStop.setAttribute(\'width\', 18);\n
\t\t\t\tendStop.setAttribute(\'height\', 18);\n
\t\t\t\tendStop.setAttribute(\'x\', MARGINX + SIZEX*x2 - STOP_RADIUS);\n
\t\t\t\tendStop.setAttribute(\'y\', MARGINY + SIZEY*y2 - STOP_RADIUS);\n
\t\t\t\tendStop.setAttribute(\'cursor\', \'move\');\n
\t\t\t\tendStop = svg.appendChild(endStop);\n
\t\t\t\t\n
\t\t\t\t// bind GUI elements\n
\t\t\t\t$(\'#\'+id+\'_lg_jGraduate_Ok\').bind(\'click\', function() {\n
\t\t\t\t\t$this.paint.type = "linearGradient";\n
\t\t\t\t\t$this.paint.solidColor = null;\n
\t\t\t\t\tokClicked();\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_lg_jGraduate_Cancel\').bind(\'click\', function(paint) {\n
\t\t\t\t\tcancelClicked();\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar x1 = $this.paint.linearGradient.getAttribute(\'x1\');\n
\t\t\t\tif(!x1) x1 = "0.0";\n
\t\t\t\tvar x1Input = $(\'#\'+id+\'_jGraduate_x1\');\n
\t\t\t\tx1Input.val(x1);\n
\t\t\t\tx1Input.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0; \n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'x1\', this.value);\n
\t\t\t\t\tbeginStop.setAttribute(\'x\', MARGINX + SIZEX*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\n
\t\t\t\tvar y1 = $this.paint.linearGradient.getAttribute(\'y1\');\n
\t\t\t\tif(!y1) y1 = "0.0";\n
\t\t\t\tvar y1Input = $(\'#\'+id+\'_jGraduate_y1\');\n
\t\t\t\ty1Input.val(y1);\n
\t\t\t\ty1Input.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0; \n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'y1\', this.value);\n
\t\t\t\t\tbeginStop.setAttribute(\'y\', MARGINY + SIZEY*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar x2 = $this.paint.linearGradient.getAttribute(\'x2\');\n
\t\t\t\tif(!x2) x2 = "1.0";\n
\t\t\t\tvar x2Input = $(\'#\'+id+\'_jGraduate_x2\');\n
\t\t\t\tx2Input.val(x2);\n
\t\t\t\tx2Input.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 1.0;\n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'x2\', this.value);\n
\t\t\t\t\tendStop.setAttribute(\'x\', MARGINX + SIZEX*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar y2 = $this.paint.linearGradient.getAttribute(\'y2\');\n
\t\t\t\tif(!y2) y2 = "0.0";\n
\t\t\t\ty2Input = $(\'#\'+id+\'_jGraduate_y2\');\n
\t\t\t\ty2Input.val(y2);\n
\t\t\t\ty2Input.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0;\n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'y2\', this.value);\n
\t\t\t\t\tendStop.setAttribute(\'y\', MARGINY + SIZEY*this.value - STOP_RADIUS);\n
\t\t\t\t}); \n
\t\t\t\t\n
\t\t\t\tvar stops = $this.paint.linearGradient.getElementsByTagNameNS(ns.svg, \'stop\');\n
\t\t\t\tvar numstops = stops.length;\n
\t\t\t\t// if there are not at least two stops, then \n
\t\t\t\tif (numstops < 2) {\n
\t\t\t\t\twhile (numstops < 2) {\n
\t\t\t\t\t\t$this.paint.linearGradient.appendChild( document.createElementNS(ns.svg, \'stop\') );\n
\t\t\t\t\t\t++numstops;\n
\t\t\t\t\t}\n
\t\t\t\t\tstops = $this.paint.linearGradient.getElementsByTagNameNS(ns.svg, \'stop\');\n
\t\t\t\t}\n
\t\t\t\t\n
\t\t\t\tvar setLgOpacitySlider = function(e, div) {\n
\t\t\t\t\tvar offset = div.offset();\n
\t\t\t\t\tvar x = (e.pageX - offset.left - parseInt(div.css(\'border-left-width\')));\n
\t\t\t\t\tif (x > 255) x = 255;\n
\t\t\t\t\tif (x < 0) x = 0;\n
\t\t\t\t\tvar posx = x - 4.5;\n
\t\t\t\t\tx /= 255;\n
\t\t\t\t\t$(\'#\' + id + \'_lg_jGraduate_AlphaArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\t$(\'#\' + id + \'_lg_jgraduate_rect\').attr(\'fill-opacity\', x);\n
\t\t\t\t\tx = parseInt(x*100);\n
\t\t\t\t\t$(\'#\' + id + \'_lg_jGraduate_OpacityInput\').val(x);\n
\t\t\t\t\t$this.paint.alpha = x;\n
\t\t\t\t};\n
\t\t\t\t\n
\t\t\t\t// handle dragging on the opacity slider\n
\t\t\t\tvar bSlidingOpacity = false;\n
\t\t\t\t$(\'#\' + id + \'_lg_jGraduate_Opacity\').mousedown(function(evt) {\n
\t\t\t\t\tsetLgOpacitySlider(evt, $(this));\n
\t\t\t\t\tbSlidingOpacity = true;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t}).mousemove(function(evt) {\n
\t\t\t\t\tif (bSlidingOpacity) {\n
\t\t\t\t\t\tsetLgOpacitySlider(evt, $(this));\n
\t\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t\t}\n
\t\t\t\t}).mouseup(function(evt) {\n
\t\t\t\t\tsetLgOpacitySlider(evt, $(this));\n
\t\t\t\t\tbSlidingOpacity = false;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\t// handle dragging the stop around the swatch\n
\t\t\t\tvar draggingStop = null;\n
\t\t\t\tvar startx = -1, starty = -1;\n
\t\t\t\t// for whatever reason, Opera does not allow $(\'image.stop\') here,\n
\t\t\t\t// and Firefox 1.5 does not allow $(\'.stop\')\n
\t\t\t\t$(\'.stop, #color_picker_lg_jGraduate_GradContainer image\').mousedown(function(evt) {\n
\t\t\t\t\tdraggingStop = this;\n
\t\t\t\t\tstartx = evt.clientX;\n
\t\t\t\t\tstarty = evt.clientY;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_lg_jgraduate_svg\').mousemove(function(evt) {\n
\t\t\t\t\tif (null != draggingStop) {\n
\t\t\t\t\t\tvar dx = evt.clientX - startx;\n
\t\t\t\t\t\tvar dy = evt.clientY - starty;\n
\t\t\t\t\t\tstartx += dx;\n
\t\t\t\t\t\tstarty += dy;\n
\t\t\t\t\t\tvar x = parseFloat(draggingStop.getAttribute(\'x\')) + dx;\n
\t\t\t\t\t\tvar y = parseFloat(draggingStop.getAttribute(\'y\')) + dy;\n
\t\n
\t\t\t\t\t\t// clamp stop to the swatch\n
\t\t\t\t\t\tif (x < MARGINX - STOP_RADIUS) x = MARGINX - STOP_RADIUS;\n
\t\t\t\t\t\tif (y < MARGINY - STOP_RADIUS) y = MARGINY - STOP_RADIUS;\n
\t\t\t\t\t\tif (x > MARGINX + SIZEX - STOP_RADIUS) x = MARGINX + SIZEX - STOP_RADIUS;\n
\t\t\t\t\t\tif (y > MARGINY + SIZEY - STOP_RADIUS) y = MARGINY + SIZEY - STOP_RADIUS;\n
\t\t\t\t\t\t\t\t\t\t\t\n
\t\t\t\t\t\tdraggingStop.setAttribute(\'x\', x);\n
\t\t\t\t\t\tdraggingStop.setAttribute(\'y\', y);\n
\t\n
\t\t\t\t\t\t// calculate stop offset \t\t\n
\t\t\t\t\t\tvar fracx = (x - MARGINX + STOP_RADIUS)/SIZEX;\n
\t\t\t\t\t\tvar fracy = (y - MARGINY + STOP_RADIUS)/SIZEY;\n
\t\t\t\t\t\t\n
\t\t\t\t\t\tif (draggingStop.id == (id+\'_stop1\')) {\n
\t\t\t\t\t\t\tx1Input.val(fracx);\n
\t\t\t\t\t\t\ty1Input.val(fracy);\n
\t\t\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'x1\', fracx);\n
\t\t\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'y1\', fracy);\n
\t\t\t\t\t\t}\n
\t\t\t\t\t\telse {\n
\t\t\t\t\t\t\tx2Input.val(fracx);\n
\t\t\t\t\t\t\ty2Input.val(fracy);\n
\t\t\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'x2\', fracx);\n
\t\t\t\t\t\t\t$this.paint.linearGradient.setAttribute(\'y2\', fracy);\n
\t\t\t\t\t\t}\n
\t\t\t\t\t\t\n
\t\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t\t}\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_lg_jgraduate_svg\').mouseup(function(evt) {\n
\t\t\t\t\tdraggingStop = null;\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar beginColor = stops[0].getAttribute(\'stop-color\');\n
\t\t\t\tif(!beginColor) beginColor = \'#000\';\n
\t\t\t\tbeginColorBox = $(\'#\'+id+\'_jGraduate_colorBoxBegin\');\n
\t\t\t\tbeginColorBox.css({\'background-color\':beginColor});\n
\t\n
\t\t\t\tvar beginOpacity = stops[0].getAttribute(\'stop-opacity\');\n
\t\t\t\tif(!beginOpacity) beginOpacity = \'1.0\';\n
\t\t\t\t$(\'#\'+id+\'lg_jGraduate_beginOpacity\').html( (beginOpacity*100)+\'%\' );\n
\t\n
\t\t\t\tvar endColor = stops[stops.length-1].getAttribute(\'stop-color\');\n
\t\t\t\tif(!endColor) endColor = \'#000\';\n
\t\t\t\tendColorBox = $(\'#\'+id+\'_jGraduate_colorBoxEnd\');\n
\t\t\t\tendColorBox.css({\'background-color\':endColor});\n
\t\n
\t\t\t\tvar endOpacity = stops[stops.length-1].getAttribute(\'stop-opacity\');\n
\t\t\t\tif(!endOpacity) endOpacity = \'1.0\';\n
\t\t\t\t$(\'#\'+id+\'jGraduate_endOpacity\').html( (endOpacity*100)+\'%\' );\n
\t\t\t\t\n
\t\t\t\t$(\'#\'+id+\'_jGraduate_colorBoxBegin\').click(function() {\n
\t\t\t\t\t$(\'div.jGraduate_LightBox\').show();\t\t\t\n
\t\t\t\t\tvar colorbox = $(this);\n
\t\t\t\t\tvar thisAlpha = (parseFloat(beginOpacity)*255).toString(16);\n
\t\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\t\tcolor = beginColor.substr(1) + thisAlpha;\n
\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').css({\'left\': 100, \'bottom\': 15}).jPicker({\n
\t\t\t\t\t\t\twindow: { title: "Pick the start color and opacity for the gradient" },\n
\t\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t\t}, function(color){\n
\t\t\t\t\t\t\tbeginColor = color.get_Hex() ? (\'#\'+color.get_Hex()) : "none";\n
\t\t\t\t\t\t\tbeginOpacity = color.get_A() ? color.get_A()/100 : 1;\n
\t\t\t\t\t\t\tcolorbox.css(\'background\', beginColor);\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_beginOpacity\').html(parseInt(beginOpacity*100)+\'%\');\n
\t\t\t\t\t\t\tstops[0].setAttribute(\'stop-color\', beginColor);\n
\t\t\t\t\t\t\tstops[0].setAttribute(\'stop-opacity\', beginOpacity);\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t}, null, function() {\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t});\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_jGraduate_colorBoxEnd\').click(function() {\n
\t\t\t\t\t$(\'div.jGraduate_LightBox\').show();\n
\t\t\t\t\tvar colorbox = $(this);\n
\t\t\t\t\tvar thisAlpha = (parseFloat(endOpacity)*255).toString(16);\n
\t\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\t\tcolor = endColor.substr(1) + thisAlpha;\n
\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').css({\'left\': 100, \'top\': 15}).jPicker({\n
\t\t\t\t\t\t\twindow: { title: "Pick the end color and opacity for the gradient" },\n
\t\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t\t}, function(color){\n
\t\t\t\t\t\t\tendColor = color.get_Hex() ? (\'#\'+color.get_Hex()) : "none";\n
\t\t\t\t\t\t\tendOpacity = color.get_A() ? color.get_A()/100 : 1;\n
\t\t\t\t\t\t\tcolorbox.css(\'background\', endColor);\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_endOpacity\').html(parseInt(endOpacity*100)+\'%\');\n
\t\t\t\t\t\t\tstops[1].setAttribute(\'stop-color\', endColor);\n
\t\t\t\t\t\t\tstops[1].setAttribute(\'stop-opacity\', endOpacity);\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t}, null, function() {\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t});\n
\t\t\t\t}); \n
\t\t\t\t\n
\t\t\t\t// --------------\n
\t\t\t\tvar thisAlpha = ($this.paint.alpha*255/100).toString(16);\n
\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\tcolor = $this.paint.solidColor == "none" ? "" : $this.paint.solidColor + thisAlpha;\n
\t\t\t\tcolPicker.jPicker(\n
\t\t\t\t\t{\n
\t\t\t\t\t\twindow: { title: $settings.window.pickerTitle },\n
\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t},\n
\t\t\t\t\tfunction(color) {\n
\t\t\t\t\t\t$this.paint.type = "solidColor";\n
\t\t\t\t\t\t$this.paint.alpha = color.get_A() ? color.get_A() : 100;\n
\t\t\t\t\t\t$this.paint.solidColor = color.get_Hex() ? color.get_Hex() : "none";\n
\t\t\t\t\t\t$this.paint.linearGradient = null;\n
\t\t\t\t\t\tokClicked(); \n
\t\t\t\t\t},\n
\t\t\t\t\tnull,\n
\t\t\t\t\tfunction(){ cancelClicked(); }\n
\t\t\t\t\t);\n
\t\t\t}());\t\n
\t\t\t\n
\t\t\t\n
\t\t\t// Radial gradient\n
\t\t\t(function() {\n
\t\t\t\tvar svg = document.getElementById(id + \'_rg_jgraduate_svg\');\n
\t\t\t\t\n
\t\t\t\t// if we are sent a gradient, import it \n
\t\t\t\tif ($this.paint.type == "radialGradient") {\n
\t\t\t\t\t$this.paint.radialGradient.id = id+\'_rg_jgraduate_grad\';\n
\t\t\t\t\t$this.paint.radialGradient = svg.appendChild($.cloneNode($this.paint.radialGradient));\n
\t\t\t\t} else { // we create a gradient\n
\t\t\t\t\tvar grad = svg.appendChild(document.createElementNS(ns.svg, \'radialGradient\'));\n
\t\t\t\t\tgrad.id = id+\'_rg_jgraduate_grad\';\n
\t\t\t\t\tgrad.setAttribute(\'cx\',\'0.5\');\n
\t\t\t\t\tgrad.setAttribute(\'cy\',\'0.5\');\n
\t\t\t\t\tgrad.setAttribute(\'r\',\'0.5\');\n
\t\t\t\t\t\n
\t\t\t\t\tvar begin = grad.appendChild(document.createElementNS(ns.svg, \'stop\'));\n
\t\t\t\t\tbegin.setAttribute(\'offset\', \'0.0\');\n
\t\t\t\t\tbegin.setAttribute(\'stop-color\', \'#ff0000\');\n
\t\n
\t\t\t\t\tvar end = grad.appendChild(document.createElementNS(ns.svg, \'stop\'));\n
\t\t\t\t\tend.setAttribute(\'offset\', \'1.0\');\n
\t\t\t\t\tend.setAttribute(\'stop-color\', \'#ffff00\');\n
\t\t\t\t\n
\t\t\t\t\t$this.paint.radialGradient = grad;\n
\t\t\t\t}\n
\t\n
\t\t\t\tvar gradalpha = $this.paint.alpha;\n
\t\t\t\t$(\'#\' + id + \'_rg_jGraduate_OpacityInput\').val(gradalpha);\n
\t\t\t\tvar posx = parseInt(255*(gradalpha/100)) - 4.5;\n
\t\t\t\t$(\'#\' + id + \'_rg_jGraduate_AlphaArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\n
\t\t\t\tvar grad = $this.paint.radialGradient;\n
\t\t\t\t\n
\t\t\t\tvar cx = parseFloat(grad.getAttribute(\'cx\')||0.5),\n
\t\t\t\t\tcy = parseFloat(grad.getAttribute(\'cy\')||0.5),\n
\t\t\t\t\tfx = parseFloat(grad.getAttribute(\'fx\')||0.5),\n
\t\t\t\t\tfy = parseFloat(grad.getAttribute(\'fy\')||0.5);\n
\t\t\t\t\n
\t\t\t\t// No match, so show focus point\n
\t\t\t\tvar showFocus = grad.getAttribute(\'fx\') != null && !(cx == fx && cy == fy);\n
\t\t\t\t\n
\t\t\t\tvar rect = document.createElementNS(ns.svg, \'rect\');\n
\t\t\t\trect.id = id + \'_rg_jgraduate_rect\';\n
\t\t\t\trect.setAttribute(\'x\', MARGINX);\n
\t\t\t\trect.setAttribute(\'y\', MARGINY);\n
\t\t\t\trect.setAttribute(\'width\', SIZEY);\n
\t\t\t\trect.setAttribute(\'height\', SIZEY);\n
\t\t\t\trect.setAttribute(\'fill\', \'url(#\'+id+\'_rg_jgraduate_grad)\');\n
\t\t\t\trect.setAttribute(\'fill-opacity\', \'1.0\');\n
\n
\t\t\t\trect = svg.appendChild(rect);\n
\t\t\t\t\n
\t\t\t\t$(\'#\' + id + \'_rg_jgraduate_rect\').attr(\'fill-opacity\', gradalpha/100);\n
\n
\t\t\t\t// stop visuals created here\n
\t\t\t\tvar centerPoint = document.createElementNS(ns.svg, \'image\');\n
\t\t\t\tcenterPoint.id = id + "_center_pt";\n
\t\t\t\tcenterPoint.setAttribute(\'class\', \'stop\');\n
\t\t\t\tcenterPoint.setAttributeNS(ns.xlink, \'href\', $settings.images.clientPath + \'mappoint_c.png\');\n
\t\t\t\tcenterPoint.setAttributeNS(ns.xlink, "title", "Center Point");\n
\t\t\t\tcenterPoint.appendChild(document.createElementNS(ns.svg, \'title\')).appendChild(\n
\t\t\t\t\tdocument.createTextNode("Center Point"));\n
\t\t\t\tcenterPoint.setAttribute(\'width\', 18);\n
\t\t\t\tcenterPoint.setAttribute(\'height\', 18);\n
\t\t\t\tcenterPoint.setAttribute(\'x\', MARGINX + SIZEX*cx - STOP_RADIUS);\n
\t\t\t\tcenterPoint.setAttribute(\'y\', MARGINY + SIZEY*cy - STOP_RADIUS);\n
\t\t\t\tcenterPoint.setAttribute(\'cursor\', \'move\');\n
\n
\t\t\t\t\n
\t\t\t\tvar focusPoint = document.createElementNS(ns.svg, \'image\');\n
\t\t\t\tfocusPoint.id = id + "_focus_pt";\n
\t\t\t\tfocusPoint.setAttribute(\'class\', \'stop\');\n
\t\t\t\tfocusPoint.setAttributeNS(ns.xlink, \'href\', $settings.images.clientPath + \'mappoint_f.png\');\n
\t\t\t\tfocusPoint.setAttributeNS(ns.xlink, "title", "Focus Point");\n
\t\t\t\tfocusPoint.appendChild(document.createElementNS(ns.svg, \'title\')).appendChild(\n
\t\t\t\t\tdocument.createTextNode("Focus Point"));\n
\t\t\t\tfocusPoint.setAttribute(\'width\', 18);\n
\t\t\t\tfocusPoint.setAttribute(\'height\', 18);\n
\t\t\t\tfocusPoint.setAttribute(\'x\', MARGINX + SIZEX*fx - STOP_RADIUS);\n
\t\t\t\tfocusPoint.setAttribute(\'y\', MARGINY + SIZEY*fy - STOP_RADIUS);\n
\t\t\t\tfocusPoint.setAttribute(\'cursor\', \'move\');\n
\t\t\t\t\n
\t\t\t\t// must append only after setting all attributes due to Webkit Bug 27952\n
\t\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=27592\n
\t\t\t\t\n
\t\t\t\t// centerPoint is added last so it is moved first\n
\t\t\t\tfocusPoint = svg.appendChild(focusPoint);\n
\t\t\t\tcenterPoint = svg.appendChild(centerPoint);\n
\t\t\t\t\n
\t\t\t\t// bind GUI elements\n
\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_Ok\').bind(\'click\', function() {\n
\t\t\t\t\t$this.paint.type = "radialGradient";\n
\t\t\t\t\t$this.paint.solidColor = null;\n
\t\t\t\t\tokClicked();\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_Cancel\').bind(\'click\', function(paint) {\n
\t\t\t\t\tcancelClicked();\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar cx = $this.paint.radialGradient.getAttribute(\'cx\');\n
\t\t\t\tif(!cx) cx = "0.0";\n
\t\t\t\tvar cxInput = $(\'#\'+id+\'_jGraduate_cx\');\n
\t\t\t\tcxInput.val(cx);\n
\t\t\t\tcxInput.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0; \n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'cx\', this.value);\n
\t\t\t\t\tcenterPoint.setAttribute(\'x\', MARGINX + SIZEX*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\n
\t\t\t\tvar cy = $this.paint.radialGradient.getAttribute(\'cy\');\n
\t\t\t\tif(!cy) cy = "0.0";\n
\t\t\t\tvar cyInput = $(\'#\'+id+\'_jGraduate_cy\');\n
\t\t\t\tcyInput.val(cy);\n
\t\t\t\tcyInput.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0; \n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'cy\', this.value);\n
\t\t\t\t\tcenterPoint.setAttribute(\'y\', MARGINY + SIZEY*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar fx = $this.paint.radialGradient.getAttribute(\'fx\');\n
\t\t\t\tif(!fx) fx = "1.0";\n
\t\t\t\tvar fxInput = $(\'#\'+id+\'_jGraduate_fx\');\n
\t\t\t\tfxInput.val(fx);\n
\t\t\t\tfxInput.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 1.0;\n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fx\', this.value);\n
\t\t\t\t\tfocusPoint.setAttribute(\'x\', MARGINX + SIZEX*this.value - STOP_RADIUS);\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar fy = $this.paint.radialGradient.getAttribute(\'fy\');\n
\t\t\t\tif(!fy) fy = "0.0";\n
\t\t\t\tvar fyInput = $(\'#\'+id+\'_jGraduate_fy\');\n
\t\t\t\tfyInput.val(fy);\n
\t\t\t\tfyInput.change( function() {\n
\t\t\t\t\tif (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { \n
\t\t\t\t\t\tthis.value = 0.0;\n
\t\t\t\t\t}\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fy\', this.value);\n
\t\t\t\t\tfocusPoint.setAttribute(\'y\', MARGINY + SIZEY*this.value - STOP_RADIUS);\n
\t\t\t\t}); \n
\t\t\t\t\n
\t\t\t\tif(!showFocus) {\n
\t\t\t\t\tfocusPoint.setAttribute(\'display\', \'none\');\t\n
\t\t\t\t\tfxInput.val("");\n
\t\t\t\t\tfyInput.val("");\n
\t\t\t\t}\n
\n
\t\t\t\t$("#" + id + "_jGraduate_match_ctr")[0].checked = !showFocus;\n
\t\t\t\t\n
\t\t\t\tvar lastfx, lastfy;\n
\t\t\t\t\n
\t\t\t\t$("#" + id + "_jGraduate_match_ctr").change(function() {\n
\t\t\t\t\tshowFocus = !this.checked;\n
\t\t\t\t\tfocusPoint.setAttribute(\'display\', showFocus?\'inline\':\'none\');\n
\t\t\t\t\tfxInput.val("");\n
\t\t\t\t\tfyInput.val("");\n
\t\t\t\t\tvar grad = $this.paint.radialGradient;\n
\t\t\t\t\tif(!showFocus) {\n
\t\t\t\t\t\tlastfx = grad.getAttribute(\'fx\');\n
\t\t\t\t\t\tlastfy = grad.getAttribute(\'fy\');\n
\t\t\t\t\t\tgrad.removeAttribute(\'fx\');\n
\t\t\t\t\t\tgrad.removeAttribute(\'fy\');\n
\t\t\t\t\t} else {\n
\t\t\t\t\t\tvar fx = lastfx || .5;\n
\t\t\t\t\t\tvar fy = lastfy || .5;\n
\t\t\t\t\t\tgrad.setAttribute(\'fx\', fx);\n
\t\t\t\t\t\tgrad.setAttribute(\'fy\', fy);\n
\t\t\t\t\t\tfxInput.val(fx);\n
\t\t\t\t\t\tfyInput.val(fy);\n
\t\t\t\t\t}\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar stops = $this.paint.radialGradient.getElementsByTagNameNS(ns.svg, \'stop\');\n
\t\t\t\tvar numstops = stops.length;\n
\t\t\t\t// if there are not at least two stops, then \n
\t\t\t\tif (numstops < 2) {\n
\t\t\t\t\twhile (numstops < 2) {\n
\t\t\t\t\t\t$this.paint.radialGradient.appendChild( document.createElementNS(ns.svg, \'stop\') );\n
\t\t\t\t\t\t++numstops;\n
\t\t\t\t\t}\n
\t\t\t\t\tstops = $this.paint.radialGradient.getElementsByTagNameNS(ns.svg, \'stop\');\n
\t\t\t\t}\n
\t\t\t\tvar radius = $this.paint.radialGradient.getAttribute(\'r\')-0;\n
\t\t\t\tvar radiusx = parseInt((245/2)*(radius)) - 4.5;\n
\t\t\t\t$(\'#\' + id + \'_jGraduate_RadiusArrows\').css({\'margin-left\':radiusx});\n
\t\t\t\t$(\'#\' + id + \'_jGraduate_RadiusInput\').val(parseInt(radius*100)).change(function(e) {\n
\t\t\t\t\tvar x = this.value / 100;\n
\t\t\t\t\tif(x < 0.01) {\n
\t\t\t\t\t\tx = 0.01;\n
\t\t\t\t\t}\n
\t\t\t\t\t\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'r\', x);\n
\t\t\t\t\t// Allow higher value, but pretend it\'s the max for the slider\n
\t\t\t\t\tif(x > 2) x = 2;\n
\t\t\t\t\tvar posx = parseInt((245/2) * x) - 4.5;\n
\t\t\t\t\t$(\'#\' + id + \'_jGraduate_RadiusArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\t\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar setRgOpacitySlider = function(e, div) {\n
\t\t\t\t\tvar offset = div.offset();\n
\t\t\t\t\tvar x = (e.pageX - offset.left - parseInt(div.css(\'border-left-width\')));\n
\t\t\t\t\tif (x > 255) x = 255;\n
\t\t\t\t\tif (x < 0) x = 0;\n
\t\t\t\t\tvar posx = x - 4.5;\n
\t\t\t\t\tx /= 255;\n
\t\t\t\t\t$(\'#\' + id + \'_rg_jGraduate_AlphaArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\t$(\'#\' + id + \'_rg_jgraduate_rect\').attr(\'fill-opacity\', x);\n
\t\t\t\t\tx = parseInt(x*100);\n
\t\t\t\t\t$(\'#\' + id + \'_rg_jGraduate_OpacityInput\').val(x);\n
\t\t\t\t\t$this.paint.alpha = x;\n
\t\t\t\t};\n
\t\t\t\t\n
\t\t\t\t// handle dragging on the opacity slider\n
\t\t\t\tvar bSlidingOpacity = false;\n
\t\t\t\t$(\'#\' + id + \'_rg_jGraduate_Opacity\').mousedown(function(evt) {\n
\t\t\t\t\tsetRgOpacitySlider(evt, $(this));\n
\t\t\t\t\tbSlidingOpacity = true;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t}).mousemove(function(evt) {\n
\t\t\t\t\tif (bSlidingOpacity) {\n
\t\t\t\t\t\tsetRgOpacitySlider(evt, $(this));\n
\t\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t\t}\n
\t\t\t\t}).mouseup(function(evt) {\n
\t\t\t\t\tsetRgOpacitySlider(evt, $(this));\n
\t\t\t\t\tbSlidingOpacity = false;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar setRadiusSlider = function(e, div) {\n
\t\t\t\t\tvar offset = div.offset();\n
\t\t\t\t\tvar x = (e.pageX - offset.left - parseInt(div.css(\'border-left-width\')));\n
\t\t\t\t\tif (x > 245) x = 245;\n
\t\t\t\t\tif (x <= 1) x = 1;\n
\t\t\t\t\tvar posx = x - 5;\n
\t\t\t\t\tx /= (245/2);\n
\t\t\t\t\t$(\'#\' + id + \'_jGraduate_RadiusArrows\').css({\'margin-left\':posx});\n
\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'r\', x);\n
\t\t\t\t\tx = parseInt(x*100);\n
\t\t\t\t\t\n
\t\t\t\t\t$(\'#\' + id + \'_jGraduate_RadiusInput\').val(x);\n
\t\t\t\t};\n
\t\t\t\t\n
\t\t\t\t// handle dragging on the radius slider\n
\t\t\t\tvar bSlidingRadius = false;\n
\t\t\t\t$(\'#\' + id + \'_jGraduate_Radius\').mousedown(function(evt) {\n
\t\t\t\t\tsetRadiusSlider(evt, $(this));\n
\t\t\t\t\tbSlidingRadius = true;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t}).mousemove(function(evt) {\n
\t\t\t\t\tif (bSlidingRadius) {\n
\t\t\t\t\t\tsetRadiusSlider(evt, $(this));\n
\t\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t\t}\n
\t\t\t\t}).mouseup(function(evt) {\n
\t\t\t\t\tsetRadiusSlider(evt, $(this));\n
\t\t\t\t\tbSlidingRadius = false;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\t\n
\t\t\t\t// handle dragging the stop around the swatch\n
\t\t\t\tvar draggingStop = null;\n
\t\t\t\tvar startx = -1, starty = -1;\n
\t\t\t\t// for whatever reason, Opera does not allow $(\'image.stop\') here,\n
\t\t\t\t// and Firefox 1.5 does not allow $(\'.stop\')\n
\t\t\t\t$(\'.stop, #color_picker_rg_jGraduate_GradContainer image\').mousedown(function(evt) {\n
\t\t\t\t\tdraggingStop = this;\n
\t\t\t\t\tstartx = evt.clientX;\n
\t\t\t\t\tstarty = evt.clientY;\n
\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_rg_jgraduate_svg\').mousemove(function(evt) {\n
\t\t\t\t\tif (null != draggingStop) {\n
\t\t\t\t\t\tvar dx = evt.clientX - startx;\n
\t\t\t\t\t\tvar dy = evt.clientY - starty;\n
\t\t\t\t\t\tstartx += dx;\n
\t\t\t\t\t\tstarty += dy;\n
\t\t\t\t\t\tvar x = parseFloat(draggingStop.getAttribute(\'x\')) + dx;\n
\t\t\t\t\t\tvar y = parseFloat(draggingStop.getAttribute(\'y\')) + dy;\n
\t\n
\t\t\t\t\t\t// clamp stop to the swatch\n
\t\t\t\t\t\tif (x < MARGINX - STOP_RADIUS) x = MARGINX - STOP_RADIUS;\n
\t\t\t\t\t\tif (y < MARGINY - STOP_RADIUS) y = MARGINY - STOP_RADIUS;\n
\t\t\t\t\t\tif (x > MARGINX + SIZEX - STOP_RADIUS) x = MARGINX + SIZEX - STOP_RADIUS;\n
\t\t\t\t\t\tif (y > MARGINY + SIZEY - STOP_RADIUS) y = MARGINY + SIZEY - STOP_RADIUS;\n
\t\t\t\t\t\t\t\t\t\t\t\n
\t\t\t\t\t\tdraggingStop.setAttribute(\'x\', x);\n
\t\t\t\t\t\tdraggingStop.setAttribute(\'y\', y);\n
\t\n
\t\t\t\t\t\t// calculate stop offset \t\t\n
\t\t\t\t\t\tvar fracx = (x - MARGINX + STOP_RADIUS)/SIZEX;\n
\t\t\t\t\t\tvar fracy = (y - MARGINY + STOP_RADIUS)/SIZEY;\n
\t\t\t\t\t\t\n
\t\t\t\t\t\t\n
\t\t\t\t\t\tif (draggingStop.id == (id+\'_center_pt\')) {\n
\t\t\t\t\t\t\tcxInput.val(fracx);\n
\t\t\t\t\t\t\tcyInput.val(fracy);\n
\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'cx\', fracx);\n
\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'cy\', fracy);\n
\t\t\t\t\t\t\t\n
\t\t\t\t\t\t\tif(!showFocus) {\n
\t\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fx\', fracx);\n
\t\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fy\', fracy);\n
\t\t\t\t\t\t\t}\n
\t\t\t\t\t\t}\n
\t\t\t\t\t\telse {\n
\t\t\t\t\t\t\tfxInput.val(fracx);\n
\t\t\t\t\t\t\tfyInput.val(fracy);\n
\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fx\', fracx);\n
\t\t\t\t\t\t\t$this.paint.radialGradient.setAttribute(\'fy\', fracy);\n
\t\t\t\t\t\t}\n
\t\t\t\t\t\t\n
\t\t\t\t\t\tevt.preventDefault();\n
\t\t\t\t\t}\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_rg_jgraduate_svg\').mouseup(function(evt) {\n
\t\t\t\t\tdraggingStop = null;\n
\t\t\t\t});\n
\t\t\t\t\n
\t\t\t\tvar centerColor = stops[0].getAttribute(\'stop-color\');\n
\t\t\t\tif(!centerColor) centerColor = \'#000\';\n
\t\t\t\tcenterColorBox = $(\'#\'+id+\'_jGraduate_colorBoxCenter\');\n
\t\t\t\tcenterColorBox.css({\'background-color\':centerColor});\n
\t\n
\t\t\t\tvar centerOpacity = stops[0].getAttribute(\'stop-opacity\');\n
\t\t\t\tif(!centerOpacity) centerOpacity = \'1.0\';\n
\t\t\t\t$(\'#\'+id+\'jGraduate_centerOpacity\').html( (centerOpacity*100)+\'%\' );\n
\t\n
\t\t\t\tvar outerColor = stops[stops.length-1].getAttribute(\'stop-color\');\n
\t\t\t\tif(!outerColor) outerColor = \'#000\';\n
\t\t\t\touterColorBox = $(\'#\'+id+\'_jGraduate_colorBoxOuter\');\n
\t\t\t\touterColorBox.css({\'background-color\':outerColor});\n
\t\n
\t\t\t\tvar outerOpacity = stops[stops.length-1].getAttribute(\'stop-opacity\');\n
\t\t\t\tif(!outerOpacity) outerOpacity = \'1.0\';\n
\t\t\t\t$(\'#\'+id+\'rg_jGraduate_outerOpacity\').html( (outerOpacity*100)+\'%\' );\n
\t\t\t\t\n
\t\t\t\t$(\'#\'+id+\'_jGraduate_colorBoxCenter\').click(function() {\n
\t\t\t\t\t$(\'div.jGraduate_LightBox\').show();\t\t\t\n
\t\t\t\t\tvar colorbox = $(this);\n
\t\t\t\t\tvar thisAlpha = (parseFloat(centerOpacity)*255).toString(16);\n
\t\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\t\tcolor = centerColor.substr(1) + thisAlpha;\n
\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').css({\'left\': 100, \'bottom\': 15}).jPicker({\n
\t\t\t\t\t\t\twindow: { title: "Pick the center color and opacity for the gradient" },\n
\t\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t\t}, function(color){\n
\t\t\t\t\t\t\tcenterColor = color.get_Hex() ? (\'#\'+color.get_Hex()) : "none";\n
\t\t\t\t\t\t\tcenterOpacity = color.get_A() ? color.get_A()/100 : 1;\n
\t\t\t\t\t\t\tcolorbox.css(\'background\', centerColor);\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_centerOpacity\').html(parseInt(centerOpacity*100)+\'%\');\n
\t\t\t\t\t\t\tstops[0].setAttribute(\'stop-color\', centerColor);\n
\t\t\t\t\t\t\tstops[0].setAttribute(\'stop-opacity\', centerOpacity);\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t}, null, function() {\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t});\n
\t\t\t\t});\n
\t\t\t\t$(\'#\'+id+\'_jGraduate_colorBoxOuter\').click(function() {\n
\t\t\t\t\t$(\'div.jGraduate_LightBox\').show();\n
\t\t\t\t\tvar colorbox = $(this);\n
\t\t\t\t\tvar thisAlpha = (parseFloat(outerOpacity)*255).toString(16);\n
\t\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\t\tcolor = outerColor.substr(1) + thisAlpha;\n
\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').css({\'left\': 100, \'top\': 15}).jPicker({\n
\t\t\t\t\t\t\twindow: { title: "Pick the outer color and opacity for the gradient" },\n
\t\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t\t}, function(color){\n
\t\t\t\t\t\t\touterColor = color.get_Hex() ? (\'#\'+color.get_Hex()) : "none";\n
\t\t\t\t\t\t\touterOpacity = color.get_A() ? color.get_A()/100 : 1;\n
\t\t\t\t\t\t\tcolorbox.css(\'background\', outerColor);\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_jGraduate_outerOpacity\').html(parseInt(outerOpacity*100)+\'%\');\n
\t\t\t\t\t\t\tstops[1].setAttribute(\'stop-color\', outerColor);\n
\t\t\t\t\t\t\tstops[1].setAttribute(\'stop-opacity\', outerOpacity);\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t}, null, function() {\n
\t\t\t\t\t\t\t$(\'div.jGraduate_LightBox\').hide();\n
\t\t\t\t\t\t\t$(\'#\'+id+\'_rg_jGraduate_stopPicker\').hide();\n
\t\t\t\t\t\t});\n
\t\t\t\t}); \n
\t\t\t\t\n
\t\t\t\t// --------------\n
\t\t\t\tvar thisAlpha = ($this.paint.alpha*255/100).toString(16);\n
\t\t\t\twhile (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; }\n
\t\t\t\tcolor = $this.paint.solidColor == "none" ? "" : $this.paint.solidColor + thisAlpha;\n
\t\t\t\tcolPicker.jPicker(\n
\t\t\t\t\t{\n
\t\t\t\t\t\twindow: { title: $settings.window.pickerTitle },\n
\t\t\t\t\t\timages: { clientPath: $settings.images.clientPath },\n
\t\t\t\t\t\tcolor: { active: color, alphaSupport: true }\n
\t\t\t\t\t},\n
\t\t\t\t\tfunction(color) {\n
\t\t\t\t\t\t$this.paint.type = "solidColor";\n
\t\t\t\t\t\t$this.paint.alpha = color.get_A() ? color.get_A() : 100;\n
\t\t\t\t\t\t$this.paint.solidColor = color.get_Hex() ? color.get_Hex() : "none";\n
\t\t\t\t\t\t$this.paint.radialGradient = null;\n
\t\t\t\t\t\tokClicked(); \n
\t\t\t\t\t},\n
\t\t\t\t\tnull,\n
\t\t\t\t\tfunction(){ cancelClicked(); }\n
\t\t\t\t\t);\n
\t\t\t}());\t\n
\t\t\t\n
\t\t\tvar tabs = $(idref + \' .jGraduate_tabs li\');\n
\t\t\ttabs.click(function() {\n
\t\t\t\ttabs.removeClass(\'jGraduate_tab_current\');\n
\t\t\t\t$(this).addClass(\'jGraduate_tab_current\');\n
\t\t\t\t$(idref + " > div").hide();\n
\t\t\t\t$(idref + \' .jGraduate_\' + $(this).attr(\'data-type\') + \'Pick\').show();\n
\t\t\t});\n
\t\t\t\n
\t\t\t$(idref + " > div").hide();\n
\t\t\ttabs.removeClass(\'jGraduate_tab_current\');\n
\t\t\tvar tab;\n
\t\t\tswitch ( $this.paint.type ) {\n
\t\t\t\tcase \'linearGradient\':\n
\t\t\t\t\ttab = $(idref + \' .jGraduate_tab_lingrad\');\n
\t\t\t\t\tbreak;\n
\t\t\t\tcase \'radialGradient\':\n
\t\t\t\t\ttab = $(idref + \' .jGraduate_tab_radgrad\');\n
\t\t\t\t\tbreak;\n
\t\t\t\tdefault:\n
\t\t\t\t\ttab = $(idref + \' .jGraduate_tab_color\');\n
\t\t\t\t\tbreak;\n
\t\t\t}\n
\t\t\ttab.addClass(\'jGraduate_tab_current\').click();\t\n
\n
\t\t\t$this.show();\n
\t\t});\n
\t};\n
})();
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>44285</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts80003715.16</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>jquery.jgraduate.min.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/x-javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
(function(){var a={svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"};if(!window.console){window.console=new function(){this.log=function(b){};this.dir=function(b){}}}$.cloneNode=function(b){if(!window.opera){return b.cloneNode(true)}opera.postError(a.svg,b.nodeName);var c=document.createElementNS(a.svg,b.nodeName);$.each(b.attributes,function(e,d){c.setAttributeNS(a.svg,d.nodeName,d.nodeValue)});$.each(b.childNodes,function(d,e){if(e.nodeType==1){c.appendChild($.cloneNode(e))}});return c};$.jGraduate={Paint:function(c){var b=c||{};this.alpha=b.alpha||100;if(b.copy){this.type=b.copy.type;this.alpha=b.copy.alpha;this.solidColor=null;this.linearGradient=null;this.radialGradient=null;switch(this.type){case"none":break;case"solidColor":this.solidColor=b.copy.solidColor;break;case"linearGradient":this.linearGradient=$.cloneNode(b.copy.linearGradient);break;case"radialGradient":this.radialGradient=$.cloneNode(b.copy.radialGradient);break}}else{if(b.linearGradient){this.type="linearGradient";this.solidColor=null;this.radialGradient=null;this.linearGradient=$.cloneNode(b.linearGradient)}else{if(b.radialGradient){this.type="radialGradient";this.solidColor=null;this.linearGradient=null;this.radialGradient=$.cloneNode(b.radialGradient)}else{if(b.solidColor){this.type="solidColor";this.solidColor=b.solidColor}else{this.type="none";this.solidColor=null;this.linearGradient=null;this.radialGradient=null}}}}}};jQuery.fn.jGraduateDefaults={paint:new $.jGraduate.Paint(),window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"}};jQuery.fn.jGraduate=function(c){var b=arguments;return this.each(function(){var k=$(this),g=$.extend(true,{},jQuery.fn.jGraduateDefaults,c),p=k.attr("id"),v="#"+k.attr("id")+" ";if(!v){alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");return}var h=function(){if(k.paint.type=="radialGradient"){k.paint.linearGradient=null}else{if(k.paint.type=="linearGradient"){k.paint.radialGradient=null}else{if(k.paint.type=="solidColor"){k.paint.linearGradient=null;k.paint.radialGradient=null}}}$.isFunction(k.okCallback)&&k.okCallback(k.paint);k.hide()},i=function(){$.isFunction(k.cancelCallback)&&k.cancelCallback();k.hide()};$.extend(true,k,{paint:new $.jGraduate.Paint({copy:g.paint}),okCallback:$.isFunction(b[1])&&b[1]||null,cancelCallback:$.isFunction(b[2])&&b[2]||null});var j=k.position(),r=null;if(k.paint.type=="none"){k.paint=$.jGraduate.Paint({solidColor:"ffffff"})}k.addClass("jGraduate_Picker");k.html(\'<ul class="jGraduate_tabs"><li class="jGraduate_tab_color jGraduate_tab_current" data-type="col">Solid Color</li><li class="jGraduate_tab_lingrad" data-type="lg">Linear Gradient</li><li class="jGraduate_tab_radgrad" data-type="rg">Radial Gradient</li></ul><div class="jGraduate_colPick"></div><div class="jGraduate_lgPick"></div><div class="jGraduate_rgPick"></div>\');var u=$(v+"> .jGraduate_colPick");var q=$(v+"> .jGraduate_lgPick");var f=$(v+"> .jGraduate_rgPick");q.html(\'<div id="\'+p+\'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">\'+g.window.pickerTitle+\'</h2><div id="\'+p+\'_lg_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="\'+p+\'_lg_jGraduate_Opacity" class="jGraduate_Opacity" title="Click to set overall opacity of the gradient paint"><img id="\'+p+\'_lg_jGraduate_AlphaArrows" class="jGraduate_AlphaArrows" src="\'+g.images.clientPath+\'rangearrows2.gif"></img></div></div><div class="jGraduate_Form"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Begin Stop</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="\'+p+\'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label> y:</label><input type="text" id="\'+p+\'_jGraduate_y1" size="3" title="Enter starting y value between 0.0 and 1.0"/><div id="\'+p+\'_jGraduate_colorBoxBegin" class="colorBox"></div><label id="\'+p+\'_jGraduate_beginOpacity"> 100%</label></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">End Stop</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="\'+p+\'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label> y:</label><input type="text" id="\'+p+\'_jGraduate_y2" size="3" title="Enter ending y value between 0.0 and 1.0"/><div id="\'+p+\'_jGraduate_colorBoxEnd" class="colorBox"></div><label id="\'+p+\'_jGraduate_endOpacity">100%</label></div></div><div class="lg_jGraduate_OpacityField"><label class="lg_jGraduate_OpacityLabel">A: </label><input type="text" id="\'+p+\'_lg_jGraduate_OpacityInput" class="jGraduate_OpacityInput" size="3" value="100"/>%</div></div><div class="jGraduate_OkCancel"><input type="button" id="\'+p+\'_lg_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="\'+p+\'_lg_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div><div class="jGraduate_LightBox"></div><div id="\'+p+\'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>\');f.html(\'<div class="jGraduate_Swatch"><h2 class="jGraduate_Title">\'+g.window.pickerTitle+\'</h2><div id="\'+p+\'_rg_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="\'+p+\'_rg_jGraduate_Opacity" class="jGraduate_Opacity" title="Click to set overall opacity of the gradient paint"><img id="\'+p+\'_rg_jGraduate_AlphaArrows" class="jGraduate_AlphaArrows" src="\'+g.images.clientPath+\'rangearrows2.gif"></img></div></div><div id="jGraduate_radColors" class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Colors</label><div class="jGraduate_Form_Section jGraduate_Colorblocks"><div class="jGraduate_colorblock"><span>Center:</span><div id="\'+p+\'_jGraduate_colorBoxCenter" class="colorBox"></div><label id="\'+p+\'_rg_jGraduate_centerOpacity"> 100%</label></div><div class="jGraduate_colorblock"><span>Outer:</span><div id="\'+p+\'_jGraduate_colorBoxOuter" class="colorBox"></div><label id="\'+p+\'_jGraduate_outerOpacity"> 100%</label></div></div></div><div class="jGraduate_StopSection"></div><div class="jGraduate_Form"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Center Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="\'+p+\'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label> y:</label><input type="text" id="\'+p+\'_jGraduate_cy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Focal Point</label><div class="jGraduate_Form_Section"><label>Match center: <input type="checkbox" checked="checked" id="\'+p+\'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="\'+p+\'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label> y:</label><input type="text" id="\'+p+\'_jGraduate_fy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div><div class="jGraduate_RadiusField"><label class="jGraduate_Form_Heading">Radius</label><div class="jGraduate_Form_Section"><div id="\'+p+\'_jGraduate_RadiusContainer" class="jGraduate_RadiusContainer"></div><input type="text" id="\'+p+\'_jGraduate_RadiusInput" size="3" value="100"/>%<div id="\'+p+\'_jGraduate_Radius" class="jGraduate_Radius" title="Click to set radius"><img id="\'+p+\'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="\'+g.images.clientPath+\'rangearrows2.gif"></img></div></div></div></div><div class="rg_jGraduate_OpacityField"><label class="rg_jGraduate_OpacityLabel">A: </label><input type="text" id="\'+p+\'_rg_jGraduate_OpacityInput" class="jGraduate_OpacityInput" size="3" value="100"/>%</div><div class="jGraduate_OkCancel"><input type="button" id="\'+p+\'_rg_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="\'+p+\'_rg_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div><div class="jGraduate_LightBox"></div><div id="\'+p+\'_rg_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>\');var t=256,o=0,n=0,d=15/2,m=t-2*o,l=t-2*n;$.each(["lg","rg"],function(z){var y=p+"_"+this;var w=document.getElementById(y+"_jGraduate_GradContainer");var x=w.appendChild(document.createElementNS(a.svg,"svg"));x.id=y+"_jgraduate_svg";x.setAttribute("width",t);x.setAttribute("height",t);x.setAttribute("xmlns",a.svg)});(function(){var Q=document.getElementById(p+"_lg_jgraduate_svg");if(k.paint.type=="linearGradient"){k.paint.linearGradient.id=p+"_jgraduate_grad";k.paint.linearGradient=Q.appendChild($.cloneNode(k.paint.linearGradient))}else{var I=Q.appendChild(document.createElementNS(a.svg,"linearGradient"));I.id=p+"_jgraduate_grad";I.setAttribute("x1","0.0");I.setAttribute("y1","0.0");I.setAttribute("x2","1.0");I.setAttribute("y2","1.0");var V=I.appendChild(document.createElementNS(a.svg,"stop"));V.setAttribute("offset","0.0");V.setAttribute("stop-color","#ff0000");var E=I.appendChild(document.createElementNS(a.svg,"stop"));E.setAttribute("offset","1.0");E.setAttribute("stop-color","#ffff00");k.paint.linearGradient=I}var D=k.paint.alpha;$("#"+p+"_lg_jGraduate_OpacityInput").val(D);var S=parseInt(255*(D/100))-4.5;$("#"+p+"_lg_jGraduate_AlphaArrows").css({"margin-left":S});var U=parseFloat(k.paint.linearGradient.getAttribute("x1")||0),C=parseFloat(k.paint.linearGradient.getAttribute("y1")||0),T=parseFloat(k.paint.linearGradient.getAttribute("x2")||1),A=parseFloat(k.paint.linearGradient.getAttribute("y2")||0);var y=document.createElementNS(a.svg,"rect");y.id=p+"_lg_jgraduate_rect";y.setAttribute("x",o);y.setAttribute("y",n);y.setAttribute("width",l);y.setAttribute("height",l);y.setAttribute("fill","url(#"+p+"_jgraduate_grad)");y.setAttribute("fill-opacity","1.0");y=Q.appendChild(y);$("#"+p+"_lg_jgraduate_rect").attr("fill-opacity",D/100);var x=document.createElementNS(a.svg,"image");x.id=p+"_stop1";x.setAttribute("class","stop");x.setAttributeNS(a.xlink,"href",g.images.clientPath+"mappoint.gif");x.setAttributeNS(a.xlink,"title","Begin Stop");x.appendChild(document.createElementNS(a.svg,"title")).appendChild(document.createTextNode("Begin Stop"));x.setAttribute("width",18);x.setAttribute("height",18);x.setAttribute("x",o+m*U-d);x.setAttribute("y",n+l*C-d);x.setAttribute("cursor","move");x=Q.appendChild(x);var P=document.createElementNS(a.svg,"image");P.id=p+"_stop2";P.setAttribute("class","stop");P.setAttributeNS(a.xlink,"href",g.images.clientPath+"mappoint.gif");P.setAttributeNS(a.xlink,"title","End Stop");P.appendChild(document.createElementNS(a.svg,"title")).appendChild(document.createTextNode("End Stop"));P.setAttribute("width",18);P.setAttribute("height",18);P.setAttribute("x",o+m*T-d);P.setAttribute("y",n+l*A-d);P.setAttribute("cursor","move");P=Q.appendChild(P);$("#"+p+"_lg_jGraduate_Ok").bind("click",function(){k.paint.type="linearGradient";k.paint.solidColor=null;h()});$("#"+p+"_lg_jGraduate_Cancel").bind("click",function(Y){i()});var U=k.paint.linearGradient.getAttribute("x1");if(!U){U="0.0"}var G=$("#"+p+"_jGraduate_x1");G.val(U);G.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.linearGradient.setAttribute("x1",this.value);x.setAttribute("x",o+m*this.value-d)});var C=k.paint.linearGradient.getAttribute("y1");if(!C){C="0.0"}var F=$("#"+p+"_jGraduate_y1");F.val(C);F.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.linearGradient.setAttribute("y1",this.value);x.setAttribute("y",n+l*this.value-d)});var T=k.paint.linearGradient.getAttribute("x2");if(!T){T="1.0"}var K=$("#"+p+"_jGraduate_x2");K.val(T);K.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=1}k.paint.linearGradient.setAttribute("x2",this.value);P.setAttribute("x",o+m*this.value-d)});var A=k.paint.linearGradient.getAttribute("y2");if(!A){A="0.0"}y2Input=$("#"+p+"_jGraduate_y2");y2Input.val(A);y2Input.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.linearGradient.setAttribute("y2",this.value);P.setAttribute("y",n+l*this.value-d)});var J=k.paint.linearGradient.getElementsByTagNameNS(a.svg,"stop");var w=J.length;if(w<2){while(w<2){k.paint.linearGradient.appendChild(document.createElementNS(a.svg,"stop"));++w}J=k.paint.linearGradient.getElementsByTagNameNS(a.svg,"stop")}var X=function(aa,ac){var ab=ac.offset();var Z=(aa.pageX-ab.left-parseInt(ac.css("border-left-width")));if(Z>255){Z=255}if(Z<0){Z=0}var Y=Z-4.5;Z/=255;$("#"+p+"_lg_jGraduate_AlphaArrows").css({"margin-left":Y});$("#"+p+"_lg_jgraduate_rect").attr("fill-opacity",Z);Z=parseInt(Z*100);$("#"+p+"_lg_jGraduate_OpacityInput").val(Z);k.paint.alpha=Z};var W=false;$("#"+p+"_lg_jGraduate_Opacity").mousedown(function(Y){X(Y,$(this));W=true;Y.preventDefault()}).mousemove(function(Y){if(W){X(Y,$(this));Y.preventDefault()}}).mouseup(function(Y){X(Y,$(this));W=false;Y.preventDefault()});var M=null;var B=-1,z=-1;$(".stop, #color_picker_lg_jGraduate_GradContainer image").mousedown(function(Y){M=this;B=Y.clientX;z=Y.clientY;Y.preventDefault()});$("#"+p+"_lg_jgraduate_svg").mousemove(function(aa){if(null!=M){var ac=aa.clientX-B;var Z=aa.clientY-z;B+=ac;z+=Z;var Y=parseFloat(M.getAttribute("x"))+ac;var ae=parseFloat(M.getAttribute("y"))+Z;if(Y<o-d){Y=o-d}if(ae<n-d){ae=n-d}if(Y>o+m-d){Y=o+m-d}if(ae>n+l-d){ae=n+l-d}M.setAttribute("x",Y);M.setAttribute("y",ae);var ad=(Y-o+d)/m;var ab=(ae-n+d)/l;if(M.id==(p+"_stop1")){G.val(ad);F.val(ab);k.paint.linearGradient.setAttribute("x1",ad);k.paint.linearGradient.setAttribute("y1",ab)}else{K.val(ad);y2Input.val(ab);k.paint.linearGradient.setAttribute("x2",ad);k.paint.linearGradient.setAttribute("y2",ab)}aa.preventDefault()}});$("#"+p+"_lg_jgraduate_svg").mouseup(function(Y){M=null});var H=J[0].getAttribute("stop-color");if(!H){H="#000"}beginColorBox=$("#"+p+"_jGraduate_colorBoxBegin");beginColorBox.css({"background-color":H});var R=J[0].getAttribute("stop-opacity");if(!R){R="1.0"}$("#"+p+"lg_jGraduate_beginOpacity").html((R*100)+"%");var N=J[J.length-1].getAttribute("stop-color");if(!N){N="#000"}endColorBox=$("#"+p+"_jGraduate_colorBoxEnd");endColorBox.css({"background-color":N});var L=J[J.length-1].getAttribute("stop-opacity");if(!L){L="1.0"}$("#"+p+"jGraduate_endOpacity").html((L*100)+"%");$("#"+p+"_jGraduate_colorBoxBegin").click(function(){$("div.jGraduate_LightBox").show();var Z=$(this);var Y=(parseFloat(R)*255).toString(16);while(Y.length<2){Y="0"+Y}r=H.substr(1)+Y;$("#"+p+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(aa){H=aa.get_Hex()?("#"+aa.get_Hex()):"none";R=aa.get_A()?aa.get_A()/100:1;Z.css("background",H);$("#"+p+"_jGraduate_beginOpacity").html(parseInt(R*100)+"%");J[0].setAttribute("stop-color",H);J[0].setAttribute("stop-opacity",R);$("div.jGraduate_LightBox").hide();$("#"+p+"_jGraduate_stopPicker").hide()},null,function(){$("div.jGraduate_LightBox").hide();$("#"+p+"_jGraduate_stopPicker").hide()})});$("#"+p+"_jGraduate_colorBoxEnd").click(function(){$("div.jGraduate_LightBox").show();var Z=$(this);var Y=(parseFloat(L)*255).toString(16);while(Y.length<2){Y="0"+Y}r=N.substr(1)+Y;$("#"+p+"_jGraduate_stopPicker").css({left:100,top:15}).jPicker({window:{title:"Pick the end color and opacity for the gradient"},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(aa){N=aa.get_Hex()?("#"+aa.get_Hex()):"none";L=aa.get_A()?aa.get_A()/100:1;Z.css("background",N);$("#"+p+"_jGraduate_endOpacity").html(parseInt(L*100)+"%");J[1].setAttribute("stop-color",N);J[1].setAttribute("stop-opacity",L);$("div.jGraduate_LightBox").hide();$("#"+p+"_jGraduate_stopPicker").hide()},null,function(){$("div.jGraduate_LightBox").hide();$("#"+p+"_jGraduate_stopPicker").hide()})});var O=(k.paint.alpha*255/100).toString(16);while(O.length<2){O="0"+O}r=k.paint.solidColor=="none"?"":k.paint.solidColor+O;u.jPicker({window:{title:g.window.pickerTitle},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(Y){k.paint.type="solidColor";k.paint.alpha=Y.get_A()?Y.get_A():100;k.paint.solidColor=Y.get_Hex()?Y.get_Hex():"none";k.paint.linearGradient=null;h()},null,function(){i()})}());(function(){var w=document.getElementById(p+"_rg_jgraduate_svg");if(k.paint.type=="radialGradient"){k.paint.radialGradient.id=p+"_rg_jgraduate_grad";k.paint.radialGradient=w.appendChild($.cloneNode(k.paint.radialGradient))}else{var G=w.appendChild(document.createElementNS(a.svg,"radialGradient"));G.id=p+"_rg_jgraduate_grad";G.setAttribute("cx","0.5");G.setAttribute("cy","0.5");G.setAttribute("r","0.5");var B=G.appendChild(document.createElementNS(a.svg,"stop"));B.setAttribute("offset","0.0");B.setAttribute("stop-color","#ff0000");var E=G.appendChild(document.createElementNS(a.svg,"stop"));E.setAttribute("offset","1.0");E.setAttribute("stop-color","#ffff00");k.paint.radialGradient=G}var R=k.paint.alpha;$("#"+p+"_rg_jGraduate_OpacityInput").val(R);var D=parseInt(255*(R/100))-4.5;$("#"+p+"_rg_jGraduate_AlphaArrows").css({"margin-left":D});var G=k.paint.radialGradient;var M=parseFloat(G.getAttribute("cx")||0.5),K=parseFloat(G.getAttribute("cy")||0.5),O=parseFloat(G.getAttribute("fx")||0.5),N=parseFloat(G.getAttribute("fy")||0.5);var H=G.getAttribute("fx")!=null&&!(M==O&&K==N);var U=document.createElementNS(a.svg,"rect");U.id=p+"_rg_jgraduate_rect";U.setAttribute("x",o);U.setAttribute("y",n);U.setAttribute("width",l);U.setAttribute("height",l);U.setAttribute("fill","url(#"+p+"_rg_jgraduate_grad)");U.setAttribute("fill-opacity","1.0");U=w.appendChild(U);$("#"+p+"_rg_jgraduate_rect").attr("fill-opacity",R/100);var V=document.createElementNS(a.svg,"image");V.id=p+"_center_pt";V.setAttribute("class","stop");V.setAttributeNS(a.xlink,"href",g.images.clientPath+"mappoint_c.png");V.setAttributeNS(a.xlink,"title","Center Point");V.appendChild(document.createElementNS(a.svg,"title")).appendChild(document.createTextNode("Center Point"));V.setAttribute("width",18);V.setAttribute("height",18);V.setAttribute("x",o+m*M-d);V.setAttribute("y",n+l*K-d);V.setAttribute("cursor","move");var A=document.createElementNS(a.svg,"image");A.id=p+"_focus_pt";A.setAttribute("class","stop");A.setAttributeNS(a.xlink,"href",g.images.clientPath+"mappoint_f.png");A.setAttributeNS(a.xlink,"title","Focus Point");A.appendChild(document.createElementNS(a.svg,"title")).appendChild(document.createTextNode("Focus Point"));A.setAttribute("width",18);A.setAttribute("height",18);A.setAttribute("x",o+m*O-d);A.setAttribute("y",n+l*N-d);A.setAttribute("cursor","move");A=w.appendChild(A);V=w.appendChild(V);$("#"+p+"_rg_jGraduate_Ok").bind("click",function(){k.paint.type="radialGradient";k.paint.solidColor=null;h()});$("#"+p+"_rg_jGraduate_Cancel").bind("click",function(ag){i()});var M=k.paint.radialGradient.getAttribute("cx");if(!M){M="0.0"}var af=$("#"+p+"_jGraduate_cx");af.val(M);af.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.radialGradient.setAttribute("cx",this.value);V.setAttribute("x",o+m*this.value-d)});var K=k.paint.radialGradient.getAttribute("cy");if(!K){K="0.0"}var P=$("#"+p+"_jGraduate_cy");P.val(K);P.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.radialGradient.setAttribute("cy",this.value);V.setAttribute("y",n+l*this.value-d)});var O=k.paint.radialGradient.getAttribute("fx");if(!O){O="1.0"}var ae=$("#"+p+"_jGraduate_fx");ae.val(O);ae.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=1}k.paint.radialGradient.setAttribute("fx",this.value);A.setAttribute("x",o+m*this.value-d)});var N=k.paint.radialGradient.getAttribute("fy");if(!N){N="0.0"}var Q=$("#"+p+"_jGraduate_fy");Q.val(N);Q.change(function(){if(isNaN(parseFloat(this.value))||this.value<0||this.value>1){this.value=0}k.paint.radialGradient.setAttribute("fy",this.value);A.setAttribute("y",n+l*this.value-d)});if(!H){A.setAttribute("display","none");ae.val("");Q.val("")}$("#"+p+"_jGraduate_match_ctr")[0].checked=!H;var J,I;$("#"+p+"_jGraduate_match_ctr").change(function(){H=!this.checked;A.setAttribute("display",H?"inline":"none");ae.val("");Q.val("");var ai=k.paint.radialGradient;if(!H){J=ai.getAttribute("fx");I=ai.getAttribute("fy");ai.removeAttribute("fx");ai.removeAttribute("fy")}else{var ah=J||0.5;var ag=I||0.5;ai.setAttribute("fx",ah);ai.setAttribute("fy",ag);ae.val(ah);Q.val(ag)}});var T=k.paint.radialGradient.getElementsByTagNameNS(a.svg,"stop");var X=T.length;if(X<2){while(X<2){k.paint.radialGradient.appendChild(document.createElementNS(a.svg,"stop"));++X}T=k.paint.radialGradient.getElementsByTagNameNS(a.svg,"stop")}var ab=k.paint.radialGradient.getAttribute("r")-0;var Z=parseInt((245/2)*(ab))-4.5;$("#"+p+"_jGraduate_RadiusArrows").css({"margin-left":Z});$("#"+p+"_jGraduate_RadiusInput").val(parseInt(ab*100)).change(function(ai){var ah=this.value/100;if(ah<0.01){ah=0.01}k.paint.radialGradient.setAttribute("r",ah);if(ah>2){ah=2}var ag=parseInt((245/2)*ah)-4.5;$("#"+p+"_jGraduate_RadiusArrows").css({"margin-left":ag})});var z=function(ai,ak){var aj=ak.offset();var ah=(ai.pageX-aj.left-parseInt(ak.css("border-left-width")));if(ah>255){ah=255}if(ah<0){ah=0}var ag=ah-4.5;ah/=255;$("#"+p+"_rg_jGraduate_AlphaArrows").css({"margin-left":ag});$("#"+p+"_rg_jgraduate_rect").attr("fill-opacity",ah);ah=parseInt(ah*100);$("#"+p+"_rg_jGraduate_OpacityInput").val(ah);k.paint.alpha=ah};var ad=false;$("#"+p+"_rg_jGraduate_Opacity").mousedown(function(ag){z(ag,$(this));ad=true;ag.preventDefault()}).mousemove(function(ag){if(ad){z(ag,$(this));ag.preventDefault()}}).mouseup(function(ag){z(ag,$(this));ad=false;ag.preventDefault()});var L=function(ai,ak){var aj=ak.offset();var ah=(ai.pageX-aj.left-parseInt(ak.css("border-left-width")));if(ah>245){ah=245}if(ah<=1){ah=1}var ag=ah-5;ah/=(245/2);$("#"+p+"_jGraduate_RadiusArrows").css({"margin-left":ag});k.paint.radialGradient.setAttribute("r",ah);ah=parseInt(ah*100);$("#"+p+"_jGraduate_RadiusInput").val(ah)};var C=false;$("#"+p+"_jGraduate_Radius").mousedown(function(ag){L(ag,$(this));C=true;ag.preventDefault()}).mousemove(function(ag){if(C){L(ag,$(this));ag.preventDefault()}}).mouseup(function(ag){L(ag,$(this));C=false;ag.preventDefault()});var ac=null;var y=-1,x=-1;$(".stop, #color_picker_rg_jGraduate_GradContainer image").mousedown(function(ag){ac=this;y=ag.clientX;x=ag.clientY;ag.preventDefault()});$("#"+p+"_rg_jgraduate_svg").mousemove(function(ai){if(null!=ac){var ak=ai.clientX-y;var ah=ai.clientY-x;y+=ak;x+=ah;var ag=parseFloat(ac.getAttribute("x"))+ak;var am=parseFloat(ac.getAttribute("y"))+ah;if(ag<o-d){ag=o-d}if(am<n-d){am=n-d}if(ag>o+m-d){ag=o+m-d}if(am>n+l-d){am=n+l-d}ac.setAttribute("x",ag);ac.setAttribute("y",am);var al=(ag-o+d)/m;var aj=(am-n+d)/l;if(ac.id==(p+"_center_pt")){af.val(al);P.val(aj);k.paint.radialGradient.setAttribute("cx",al);k.paint.radialGradient.setAttribute("cy",aj);if(!H){k.paint.radialGradient.setAttribute("fx",al);k.paint.radialGradient.setAttribute("fy",aj)}}else{ae.val(al);Q.val(aj);k.paint.radialGradient.setAttribute("fx",al);k.paint.radialGradient.setAttribute("fy",aj)}ai.preventDefault()}});$("#"+p+"_rg_jgraduate_svg").mouseup(function(ag){ac=null});var S=T[0].getAttribute("stop-color");if(!S){S="#000"}centerColorBox=$("#"+p+"_jGraduate_colorBoxCenter");centerColorBox.css({"background-color":S});var W=T[0].getAttribute("stop-opacity");if(!W){W="1.0"}$("#"+p+"jGraduate_centerOpacity").html((W*100)+"%");var F=T[T.length-1].getAttribute("stop-color");if(!F){F="#000"}outerColorBox=$("#"+p+"_jGraduate_colorBoxOuter");outerColorBox.css({"background-color":F});var Y=T[T.length-1].getAttribute("stop-opacity");if(!Y){Y="1.0"}$("#"+p+"rg_jGraduate_outerOpacity").html((Y*100)+"%");$("#"+p+"_jGraduate_colorBoxCenter").click(function(){$("div.jGraduate_LightBox").show();var ah=$(this);var ag=(parseFloat(W)*255).toString(16);while(ag.length<2){ag="0"+ag}r=S.substr(1)+ag;$("#"+p+"_rg_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the center color and opacity for the gradient"},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(ai){S=ai.get_Hex()?("#"+ai.get_Hex()):"none";W=ai.get_A()?ai.get_A()/100:1;ah.css("background",S);$("#"+p+"_rg_jGraduate_centerOpacity").html(parseInt(W*100)+"%");T[0].setAttribute("stop-color",S);T[0].setAttribute("stop-opacity",W);$("div.jGraduate_LightBox").hide();$("#"+p+"_rg_jGraduate_stopPicker").hide()},null,function(){$("div.jGraduate_LightBox").hide();$("#"+p+"_rg_jGraduate_stopPicker").hide()})});$("#"+p+"_jGraduate_colorBoxOuter").click(function(){$("div.jGraduate_LightBox").show();var ah=$(this);var ag=(parseFloat(Y)*255).toString(16);while(ag.length<2){ag="0"+ag}r=F.substr(1)+ag;$("#"+p+"_rg_jGraduate_stopPicker").css({left:100,top:15}).jPicker({window:{title:"Pick the outer color and opacity for the gradient"},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(ai){F=ai.get_Hex()?("#"+ai.get_Hex()):"none";Y=ai.get_A()?ai.get_A()/100:1;ah.css("background",F);$("#"+p+"_jGraduate_outerOpacity").html(parseInt(Y*100)+"%");T[1].setAttribute("stop-color",F);T[1].setAttribute("stop-opacity",Y);$("div.jGraduate_LightBox").hide();$("#"+p+"_rg_jGraduate_stopPicker").hide()},null,function(){$("div.jGraduate_LightBox").hide();$("#"+p+"_rg_jGraduate_stopPicker").hide()})});var aa=(k.paint.alpha*255/100).toString(16);while(aa.length<2){aa="0"+aa}r=k.paint.solidColor=="none"?"":k.paint.solidColor+aa;u.jPicker({window:{title:g.window.pickerTitle},images:{clientPath:g.images.clientPath},color:{active:r,alphaSupport:true}},function(ag){k.paint.type="solidColor";k.paint.alpha=ag.get_A()?ag.get_A():100;k.paint.solidColor=ag.get_Hex()?ag.get_Hex():"none";k.paint.radialGradient=null;h()},null,function(){i()})}());var s=$(v+" .jGraduate_tabs li");s.click(function(){s.removeClass("jGraduate_tab_current");$(this).addClass("jGraduate_tab_current");$(v+" > div").hide();$(v+" .jGraduate_"+$(this).attr("data-type")+"Pick").show()});$(v+" > div").hide();s.removeClass("jGraduate_tab_current");var e;switch(k.paint.type){case"linearGradient":e=$(v+" .jGraduate_tab_lingrad");break;case"radialGradient":e=$(v+" .jGraduate_tab_radgrad");break;default:e=$(v+" .jGraduate_tab_color");break}e.addClass("jGraduate_tab_current").click();k.show()})}})();
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>26369</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-11-02 gabriel
* The initial commit
\ No newline at end of file
2010 (c) Nexedi SA
\ No newline at end of file
erp5_jquery
\ No newline at end of file
This Business Template contains only static files of jQuery JGraduate Plugin.
\ No newline at end of file
GPL
\ No newline at end of file
portal_skins/erp5_jquery/plugin/jgraduate
portal_skins/erp5_jquery/plugin/jgraduate/**
\ No newline at end of file
erp5_jquery_plugin_jgraduate
\ No newline at end of file
5.4.7
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment