Index: README_D6.txt
===================================================================
RCS file: README_D6.txt
diff -N README_D6.txt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ README_D6.txt	28 Sep 2008 18:49:02 -0000
@@ -0,0 +1,140 @@
+   /*============================================================================*\  
+   ||                     -= curvyCorners Drupal module =-                       ||
+   ||                                                                            ||
+   || README.txt                                                                 ||
+   || By Jordan Starcher                                                         ||
+   || Edited for Drupal 6 By Pat Teglia (CrashTest_)                             ||
+   || Project Version 6.x-1.0-dev                                                ||
+   || September 28, 2008                                                         ||
+   || Released under the GNU license                                             ||
+   ||                                                                            ||
+   \*============================================================================*/
+
+Due to licensing limitations, the JavaScript file(s) needed for curvyCorners cannot be packaged with this module.
+Please follow the instructions below to install and complete the module.
+
+1. Download curvyCorners from http://drupal.org/curvyCorners
+   and extract the contents into your modules folder.
+
+2. Download curvyCorners from http://www.curvycorners.net/downloads.php
+   Notice this module was designed and tested with version 1.2.9 Beta
+   but may work with other versions.
+
+3. Extract the curvyCorners zip folder and place the two .inc.js files
+   inside your curvyCorners module folder.
+
+3. Check administer > settings > Curvy Corners to see if the JavaScript
+   files are correctly installed.
+
+Some basic usage instructions are below, more detailed usage instructions
+  are available at http://www.curvycorners.net/usage.php
+
+Please support my efforts by donating. http://www.TheOverclocked.com/donate
+
+---------------------------------------
+Here is an example to apply curvyCorners to a single DIV. This is the exact code you would
+  paste in the curvyCorners code box to apply curvyCorners on all pages of your site.
+
+	window.onload = function()
+	  {
+	     settings = {
+	          tl: { radius: 10 },
+	          tr: { radius: 10 },
+	          bl: { radius: 10 },
+	          br: { radius: 10 },
+        	  antiAlias: true,
+	          autoPad: true,
+          	  validTags: ["div"]
+	      }
+
+	   var divObj = document.getElementById("myDiv");
+	   var cornersObj = new curvyCorners(settings, divObj);
+ 
+	   cornersObj.applyCornersToAll();
+	}
+
+
+
+-----------------------------------------
+If you need additional DIVs rounded with different settings then you will need to create
+  additonal instances of the curvyCorners object for each one which require different settings.
+
+Here is an example of different settings for two DIVs. Notice instead of using the generic
+  name "settings" a more specifc identifier was choosen.
+
+	window.onload = function()
+	  {
+	     header = {
+	          tl: { radius: 10 },
+	          tr: { radius: 10 },
+	          bl: false,
+	          br: false,
+        	  antiAlias: true,
+	          autoPad: true,
+          	  validTags: ["div"]
+	      }
+	
+	     footer = {
+	          tl: false,
+	          tr: false,
+	          bl: { radius: 10 },
+	          br: { radius: 10 },
+	          antiAlias: true,
+	          autoPad: true,
+	          validTags: ["div"]
+	      }
+
+	   var divObj1 = document.getElementById("header");
+   	   var divObj2 = document.getElementById("footer");
+    
+	   var cornersObj1 = new curvyCorners(header, divObj1);
+   	   var cornersObj2 = new curvyCorners(footer, divObj2);
+
+	   cornersObj1.applyCornersToAll();
+	   cornersObj2.applyCornersToAll();
+	}
+
+
+
+--------------------------------------------
+Here is the am example that applies curvyCorners to an entire class rather then a single DIV.
+
+	window.onload = function()
+	  {
+	     settings = {
+	          tl: { radius: 10 },
+	          tr: { radius: 10 },
+	          bl: { radius: 10 },
+	          br: { radius: 10 },
+        	  antiAlias: true,
+	          autoPad: true,
+          	  validTags: ["div"]
+	      }
+
+	   var cornersObj = new curvyCorners(settings, "myClass");
+ 
+	   cornersObj.applyCornersToAll();
+	}
+
+--------------------------------------------
+If you would like to use some jQuery syntax, it would go something like:
+
+$(document).ready(function() {
+  settings = {
+    tl: { radius: 10 },
+    tr: { radius: 10 },
+    bl: { radius: 10 },
+    br: { radius: 10 },
+    antiAlias: true,
+    autoPad: false,
+  }
+
+  $blocks = $('#sidebar-left .block, #page');
+  $blocks.each(function() {
+    varCC = new curvyCorners(settings, this);
+    varCC.applyCornersToAll();
+  });
+});
+
+NOTE:  I used autoPad: false, because otherwise it seems to break Drupal's javascript. (pt)
+
Index: curvy_corners.info
===================================================================
RCS file: curvy_corners.info
diff -N curvy_corners.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ curvy_corners.info	28 Sep 2008 18:49:02 -0000
@@ -0,0 +1,8 @@
+; $Id$
+
+name = "Curvy Corners"
+description = "Curvy Corners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners."
+
+version = "6.x-1.0-dev"
+project = "curvy_corners"
+core = 6.x
\ No newline at end of file
Index: curvy_corners.install
===================================================================
RCS file: curvy_corners.install
diff -N curvy_corners.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ curvy_corners.install	28 Sep 2008 18:49:02 -0000
@@ -0,0 +1,8 @@
+<?php
+  function curvy_corners_uninstall() {
+    variable_del('curvy_corners_all_pages');
+    variable_del('curvy_corners_lite');
+    variable_del('curvy_corners_textarea');
+  }
+
+
Index: curvy_corners.module
===================================================================
RCS file: curvy_corners.module
diff -N curvy_corners.module
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ curvy_corners.module	28 Sep 2008 18:49:02 -0000
@@ -0,0 +1,100 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Module for applying curvy corners to divs.
+ * This module the curvy corners javascript to divs.
+ */
+
+/**
+ * Implementation of hook_perm().
+ */
+function curvy_corners_perm() {
+  return array('administer curvy_corners');
+}
+
+/**
+ * Implementation of hook_menu().
+ */
+function curvy_corners_menu() {
+  $items['admin/settings/curvy_corners'] = array(
+    'title' => 'Curvy Corners',
+    'description' => 'Curvy Corners allows you to apply corners to any div on your site.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('curvy_corners_settings'),
+    'access arguments' => array('administer curvy_corners'),
+   );
+  return $items;
+}
+
+/**
+ * Implementation of hook_init().
+ */
+function curvy_corners_init() {
+  $path = curvy_corners_status();
+  if ($path !== FALSE) {
+    drupal_add_js($path);
+    drupal_add_js(variable_get('curvy_corners_all_pages', NULL), 'inline');
+  }
+  return '';
+}
+
+/******************************************************************************
+ * Menu Callbacks                                                             *
+ ******************************************************************************/
+
+/**
+ * The one and only curvy_corners configuration page
+ */
+function curvy_corners_settings() {
+  $form['curvy_corners_status'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('curvy_corners status'),
+    '#weight' => -10,
+    '#description' => (curvy_corners_status() !== FALSE) ? t('The curvy_corners javascript file is available.') : t('The curvy_corners javascript file is unavailable. Download it from <a href="http://www.curvy_corners.net/download.php?file=curvy_corners-v1-2-9-beta.zip">http://www.curvy_corners.net/download.php?file=curvy_corners-v1-2-9-beta.zip</a> and put inside your %curvy_corners_folder folder.', array('%curvy_corners_folder' => drupal_get_path('module', 'curvy_corners'))),
+    );
+   $form['curvy_corners_lite'] = array(
+      '#type' => 'radios',
+      '#title' => t('Select full version or lite version'),
+      '#default_value' => variable_get('curvy_corners_lite', 0),
+      '#options' => array(0 => t('Full'), 1 => t('Lite')),
+      '#description' => t('Honestly I am not sure if you loose functionality using the lite version or not. I would recommend running the lite version unless you run into limitations.'),
+    );
+    $form['curvy_corners_all_pages'] = array(
+      '#type' => 'textarea',
+      '#title' => t('curvy_corners to apply on all pages'),
+      '#rows' => variable_get('curvy_corners_textarea', 10),
+      '#default_value' => variable_get('curvy_corners_all_pages', ''),
+      '#description' => t('Add curvy_corners on all pages on all themes. Documentation is available at <a href="http://www.curvy_corners.net/usage.php">http://www.curvy_corners.net/usage.php</a>. Enter everything that will go inside the script tags.'),
+    );
+    $form['curvy_corners_textarea'] = array(
+      '#type' => 'textfield',
+      '#size' => 5,
+      '#title' => t('Set the default size for the above textbox'),
+      '#default_value' => variable_get('curvy_corners_textarea', 10),
+    );
+  
+  return system_settings_form($form);
+}
+
+/******************************************************************************
+ * Module Functions                                                           *
+ ******************************************************************************/
+
+/**
+ * Checks to see if the JavaScript files exist in the curvy_corners module folder
+ */
+function curvy_corners_status() {
+  $path = variable_get('curvy_corners_lite', 0);
+  switch ($path) {
+    case 0:
+      $path = drupal_get_path('module', 'curvy_corners') .'/rounded_corners.inc.js'; 
+      return $path;
+    case 1:
+      $path = drupal_get_path('module', 'curvy_corners') .'/rounded_corners_lite.inc.js';
+      return $path;
+    case NULL:
+      return FALSE;
+    }
+
+}
