<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <global name="File" module="OFS.Image"/>
        <tuple/>
      </tuple>
    </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>ts49309338.49</string> </value>
        </item>
        <item>
            <key> <string>__name__</string> </key>
            <value> <string>fck_colorselector.html</string> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>data</string> </key>
            <value> <string encoding="cdata"><![CDATA[

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r\n
<!--\r\n
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r\n
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r\n
 *\r\n
 * == BEGIN LICENSE ==\r\n
 *\r\n
 * Licensed under the terms of any of the following licenses at your\r\n
 * choice:\r\n
 *\r\n
 *  - GNU General Public License Version 2 or later (the "GPL")\r\n
 *    http://www.gnu.org/licenses/gpl.html\r\n
 *\r\n
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r\n
 *    http://www.gnu.org/licenses/lgpl.html\r\n
 *\r\n
 *  - Mozilla Public License Version 1.1 or later (the "MPL")\r\n
 *    http://www.mozilla.org/MPL/MPL-1.1.html\r\n
 *\r\n
 * == END LICENSE ==\r\n
 *\r\n
 * Color Selection dialog window.\r\n
-->\r\n
<html>\r\n
\t<head>\r\n
\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r\n
\t\t<meta name="robots" content="noindex, nofollow" />\r\n
\t\t<style TYPE="text/css">\r\n
\t\t\t#ColorTable\t\t{ cursor: pointer ; cursor: hand ; }\r\n
\t\t\t#hicolor\t\t{ height: 74px ; width: 74px ; border-width: 1px ; border-style: solid ; }\r\n
\t\t\t#hicolortext\t{ width: 75px ; text-align: right ; margin-bottom: 7px ; }\r\n
\t\t\t#selhicolor\t\t{ height: 20px ; width: 74px ; border-width: 1px ; border-style: solid ; }\r\n
\t\t\t#selcolor\t\t{ width: 75px ; height: 20px ; margin-top: 0px ; margin-bottom: 7px ; }\r\n
\t\t\t#btnClear\t\t{ width: 75px ; height: 22px ; margin-bottom: 6px ; }\r\n
\t\t\t.ColorCell\t\t{ height: 15px ; width: 15px ; }\r\n
\t\t</style>\r\n
\t\t<script src="common/fck_dialog_common.js" type="text/javascript"></script>\r\n
\t\t<script type="text/javascript">\r\n
\r\n
var oEditor = window.parent.InnerDialogLoaded() ;\r\n
\r\n
function OnLoad()\r\n
{\r\n
\t// First of all, translate the dialog box texts\r\n
\toEditor.FCKLanguageManager.TranslatePage(document) ;\r\n
\r\n
\tCreateColorTable() ;\r\n
\r\n
\twindow.parent.SetOkButton( true ) ;\r\n
\twindow.parent.SetAutoSize( true ) ;\r\n
}\r\n
\r\n
function CreateColorTable()\r\n
{\r\n
\t// Get the target table.\r\n
\tvar oTable = document.getElementById(\'ColorTable\') ;\r\n
\r\n
\t// Create the base colors array.\r\n
\tvar aColors = [\'00\',\'33\',\'66\',\'99\',\'cc\',\'ff\'] ;\r\n
\r\n
\t// This function combines two ranges of three values from the color array into a row.\r\n
\tfunction AppendColorRow( rangeA, rangeB )\r\n
\t{\r\n
\t\tfor ( var i = rangeA ; i < rangeA + 3 ; i++ )\r\n
\t\t{\r\n
\t\t\tvar oRow = oTable.insertRow(-1) ;\r\n
\r\n
\t\t\tfor ( var j = rangeB ; j < rangeB + 3 ; j++ )\r\n
\t\t\t{\r\n
\t\t\t\tfor ( var n = 0 ; n < 6 ; n++ )\r\n
\t\t\t\t{\r\n
\t\t\t\t\tAppendColorCell( oRow, \'#\' + aColors[j] + aColors[n] + aColors[i] ) ;\r\n
\t\t\t\t}\r\n
\t\t\t}\r\n
\t\t}\r\n
\t}\r\n
\r\n
\t// This function create a single color cell in the color table.\r\n
\tfunction AppendColorCell( targetRow, color )\r\n
\t{\r\n
\t\tvar oCell = targetRow.insertCell(-1) ;\r\n
\t\toCell.className = \'ColorCell\' ;\r\n
\t\toCell.bgColor = color ;\r\n
\r\n
\t\toCell.onmouseover = function()\r\n
\t\t{\r\n
\t\t\tdocument.getElementById(\'hicolor\').style.backgroundColor = this.bgColor ;\r\n
\t\t\tdocument.getElementById(\'hicolortext\').innerHTML = this.bgColor ;\r\n
\t\t}\r\n
\r\n
\t\toCell.onclick = function()\r\n
\t\t{\r\n
\t\t\tdocument.getElementById(\'selhicolor\').style.backgroundColor = this.bgColor ;\r\n
\t\t\tdocument.getElementById(\'selcolor\').value = this.bgColor ;\r\n
\t\t}\r\n
\t}\r\n
\r\n
\tAppendColorRow( 0, 0 ) ;\r\n
\tAppendColorRow( 3, 0 ) ;\r\n
\tAppendColorRow( 0, 3 ) ;\r\n
\tAppendColorRow( 3, 3 ) ;\r\n
\r\n
\t// Create the last row.\r\n
\tvar oRow = oTable.insertRow(-1) ;\r\n
\r\n
\t// Create the gray scale colors cells.\r\n
\tfor ( var n = 0 ; n < 6 ; n++ )\r\n
\t{\r\n
\t\tAppendColorCell( oRow, \'#\' + aColors[n] + aColors[n] + aColors[n] ) ;\r\n
\t}\r\n
\r\n
\t// Fill the row with black cells.\r\n
\tfor ( var i = 0 ; i < 12 ; i++ )\r\n
\t{\r\n
\t\tAppendColorCell( oRow, \'#000000\' ) ;\r\n
\t}\r\n
}\r\n
\r\n
function Clear()\r\n
{\r\n
\tdocument.getElementById(\'selhicolor\').style.backgroundColor = \'\' ;\r\n
\tdocument.getElementById(\'selcolor\').value = \'\' ;\r\n
}\r\n
\r\n
function ClearActual()\r\n
{\r\n
\tdocument.getElementById(\'hicolor\').style.backgroundColor = \'\' ;\r\n
\tdocument.getElementById(\'hicolortext\').innerHTML = \'&nbsp;\' ;\r\n
}\r\n
\r\n
function UpdateColor()\r\n
{\r\n
\ttry\t\t  { document.getElementById(\'selhicolor\').style.backgroundColor = document.getElementById(\'selcolor\').value ; }\r\n
\tcatch (e) { Clear() ; }\r\n
}\r\n
\r\n
function Ok()\r\n
{\r\n
\tif ( typeof(window.parent.Args().CustomValue) == \'function\' )\r\n
\t\twindow.parent.Args().CustomValue( document.getElementById(\'selcolor\').value ) ;\r\n
\r\n
\treturn true ;\r\n
}\r\n
\t\t</script>\r\n
\t</head>\r\n
\t<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">\r\n
\t\t<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">\r\n
\t\t\t<tr>\r\n
\t\t\t\t<td align="center" valign="middle">\r\n
\t\t\t\t\t<table border="0" cellspacing="5" cellpadding="0" width="100%">\r\n
\t\t\t\t\t\t<tr>\r\n
\t\t\t\t\t\t\t<td valign="top" align="center" nowrap width="100%">\r\n
\t\t\t\t\t\t\t\t<table id="ColorTable" border="0" cellspacing="0" cellpadding="0" width="270" onmouseout="ClearActual();">\r\n
\t\t\t\t\t\t\t\t</table>\r\n
\t\t\t\t\t\t\t</td>\r\n
\t\t\t\t\t\t\t<td valign="top" align="left" nowrap>\r\n
\t\t\t\t\t\t\t\t<span fckLang="DlgColorHighlight">Highlight</span>\r\n
\t\t\t\t\t\t\t\t<div id="hicolor"></div>\r\n
\t\t\t\t\t\t\t\t<div id="hicolortext">&nbsp;</div>\r\n
\t\t\t\t\t\t\t\t<span fckLang="DlgColorSelected">Selected</span>\r\n
\t\t\t\t\t\t\t\t<div id="selhicolor"></div>\r\n
\t\t\t\t\t\t\t\t<input id="selcolor" type="text" maxlength="20" onchange="UpdateColor();">\r\n
\t\t\t\t\t\t\t\t<br>\r\n
\t\t\t\t\t\t\t\t<input id="btnClear" type="button" fckLang="DlgColorBtnClear" value="Clear" onclick="Clear();" />\r\n
\t\t\t\t\t\t\t</td>\r\n
\t\t\t\t\t\t</tr>\r\n
\t\t\t\t\t</table>\r\n
\t\t\t\t</td>\r\n
\t\t\t</tr>\r\n
\t\t</table>\r\n
\t</body>\r\n
</html>\r\n


]]></string> </value>
        </item>
        <item>
            <key> <string>precondition</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>size</string> </key>
            <value> <int>5289</int> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
