--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r
+<!--\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ * - GNU General Public License Version 2 or later (the "GPL")\r
+ * http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ * http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ * - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ * http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Smileys (emoticons) dialog window.\r
+-->\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+ <title></title>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
+ <meta name="robots" content="noindex, nofollow" />\r
+ <style type="text/css">\r
+ .Hand\r
+ {\r
+ cursor: pointer;\r
+ cursor: hand;\r
+ }\r
+ </style>\r
+ <script type="text/javascript">\r
+\r
+var oEditor = window.parent.InnerDialogLoaded() ;\r
+\r
+window.onload = function ()\r
+{\r
+ // First of all, translate the dialog box texts\r
+ oEditor.FCKLanguageManager.TranslatePage(document) ;\r
+}\r
+\r
+function InsertSmiley( url )\r
+{\r
+ var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;\r
+ oImg.src = url ;\r
+ oImg.setAttribute( '_fcksavedurl', url ) ;\r
+\r
+ // For long smileys list, it seams that IE continues loading the images in\r
+ // the background when you quickly select one image. so, let's clear\r
+ // everything before closing.\r
+ document.body.innerHTML = '' ;\r
+\r
+ window.parent.Cancel() ;\r
+}\r
+\r
+function over(td)\r
+{\r
+ td.className = 'LightBackground Hand' ;\r
+}\r
+\r
+function out(td)\r
+{\r
+ td.className = 'DarkBackground Hand' ;\r
+}\r
+ </script>\r
+</head>\r
+<body scroll="no">\r
+ <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">\r
+ <script type="text/javascript">\r
+\r
+var FCKConfig = oEditor.FCKConfig ;\r
+\r
+var sBasePath = FCKConfig.SmileyPath ;\r
+var aImages = FCKConfig.SmileyImages ;\r
+var iCols = FCKConfig.SmileyColumns ;\r
+var iColWidth = parseInt( 100 / iCols, 10 ) ;\r
+\r
+var i = 0 ;\r
+while (i < aImages.length)\r
+{\r
+ document.write( '<tr>' ) ;\r
+ for(var j = 0 ; j < iCols ; j++)\r
+ {\r
+ if (aImages[i])\r
+ {\r
+ var sUrl = sBasePath + aImages[i] ;\r
+ document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;\r
+ document.write( '<img src="' + sUrl + '" border="0" />' ) ;\r
+ }\r
+ else\r
+ document.write( '<td width="' + iColWidth + '%" class="DarkBackground"> ' ) ;\r
+ document.write( '<\/td>' ) ;\r
+ i++ ;\r
+ }\r
+ document.write('<\/tr>') ;\r
+}\r
+\r
+ </script>\r
+ </table>\r
+</body>\r
+</html>\r