diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/includes/bootstrap.inc drupal-he/includes/bootstrap.inc
--- drupal-5.1/includes/bootstrap.inc	2007-01-15 13:52:02.000000000 +0200
+++ drupal-he/includes/bootstrap.inc	2007-03-10 18:53:51.000000000 +0200
@@ -881,8 +881,8 @@ function drupal_maintenance_theme() {
   require_once './includes/unicode.inc';
   require_once './modules/filter/filter.module';
   unicode_check();
-  drupal_add_css(drupal_get_path('module', 'system') .'/defaults.css', 'module');
-  drupal_add_css(drupal_get_path('module', 'system') .'/system.css', 'module');
+  drupal_add_css(drupal_get_path('module', 'system') .'/defaults-rtl.css', 'module');
+  drupal_add_css(drupal_get_path('module', 'system') .'/system-rtl.css', 'module');
   $theme = '';
 }
 
diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/includes/theme.inc drupal-he/includes/theme.inc
--- drupal-5.1/includes/theme.inc	2007-01-11 05:36:06.000000000 +0200
+++ drupal-he/includes/theme.inc	2007-03-10 19:46:18.000000000 +0200
@@ -425,9 +425,9 @@ function theme_page($content) {
 
 function theme_maintenance_page($content, $messages = TRUE, $partial = FALSE) {
   drupal_set_header('Content-Type: text/html; charset=utf-8');
-  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() .'misc/maintenance.css";</style>');
-  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/defaults.css";</style>');
-  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/system.css";</style>');
+  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() .'misc/maintenance-rtl.css";</style>');
+  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/defaults-rtl.css";</style>');
+  drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/system-rtl.css";</style>');
   drupal_set_html_head('<link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />');
 
   $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
@@ -457,7 +457,7 @@ function theme_maintenance_page($content
 
 function theme_install_page($content) {
   drupal_set_header('Content-Type: text/html; charset=utf-8');
-  drupal_add_css('misc/maintenance.css', 'module', 'all', FALSE);
+  drupal_add_css('misc/maintenance-rtl.css', 'module', 'all', FALSE);
   drupal_set_html_head('<link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />');
   $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
   $output .= '<html xmlns="http://www.w3.org/1999/xhtml">';
diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/install.php drupal-he/install.php
--- drupal-5.1/install.php	2007-01-10 12:15:07.000000000 +0200
+++ drupal-he/install.php	2007-03-10 19:38:14.000000000 +0200
@@ -20,6 +20,8 @@ function install_main() {
   drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);
   require_once './modules/system/system.install';
   require_once './includes/file.inc';
+  $profile = "drupalhe";
+  $install_locale = "he";
 
   // Ensure correct page headers are sent (e.g. caching)
   drupal_page_header();
@@ -50,7 +52,7 @@ function install_main() {
   if (!empty($_GET['profile'])) {
     $profile = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['profile']);
   }
-  elseif ($profile = install_select_profile()) {
+  elseif (!empty($profile) /* $profile == install_select_profile() */ )  {
     install_goto("install.php?profile=$profile");
   }
   else {
@@ -61,7 +63,7 @@ function install_main() {
   if (!empty($_GET['locale'])) {
     $install_locale = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['locale']);
   }
-  elseif (($install_locale = install_select_locale($profile)) !== FALSE) {
+  elseif (!empty($install_locale) /* ($install_locale = install_select_locale($profile) ) !== FALSE */) {
     install_goto("install.php?profile=$profile&locale=$install_locale");
   }
 
diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/misc/maintenance-rtl.css drupal-he/misc/maintenance-rtl.css
--- drupal-5.1/misc/maintenance-rtl.css	1970-01-01 02:00:00.000000000 +0200
+++ drupal-he/misc/maintenance-rtl.css	2007-03-10 19:42:38.000000000 +0200
@@ -0,0 +1,68 @@
+/* $Id: drupalhe.diff.txt,v 1.1 2007/03/10 19:10:48 yhager Exp $ */
+
+/* rtl */
+html {
+  direction: rtl;
+}
+
+body {
+  background: url(druplicon.png) 91% 4em no-repeat #fff;
+  color: #000;
+  border: 1px solid #bbb;
+  margin: 3em;
+  padding: 1em 128px 1em 1em;
+  line-height: 1.2;
+}
+h1 {
+  margin: 1.6em 0 1.1em 0;
+}
+h1, h2, h3, h4, h5, h6 {
+  font-family: sans-serif;
+}
+:link {
+  color: #0073ba;
+  font-weight: bold;
+}
+:visited {
+  color: #004975;
+  font-weight: bold;
+}
+
+div.messages {
+  border: 1px solid #ddd;
+  padding: 0.4em;
+  margin-top: 1em;
+}
+
+div.messages li {
+  margin-top: 0.5em;
+  margin-bottom: 0.5em;
+}
+
+div.error {
+  background: #fdd;
+  border: 1px solid #daa;
+  color: #400;
+}
+
+/* Update styles */
+#update-results {
+  margin-top: 3em;
+  padding: 0.25em;
+  border: 1px solid #ccc;
+  background: #eee;
+  font-size: smaller;
+}
+#update-results h2 {
+  margin-top: 0.25em;
+}
+#update-results h4 {
+  margin-bottom: 0.25em;
+}
+#update-results li.none {
+  color: #888;
+  font-style: italic;
+}
+#update-results li.failure strong {
+  color: #b63300;
+}
diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/modules/system/defaults-rtl.css drupal-he/modules/system/defaults-rtl.css
--- drupal-5.1/modules/system/defaults-rtl.css	1970-01-01 02:00:00.000000000 +0200
+++ drupal-he/modules/system/defaults-rtl.css	2007-03-10 19:46:34.000000000 +0200
@@ -0,0 +1,53 @@
+/* $Id: drupalhe.diff.txt,v 1.1 2007/03/10 19:10:48 yhager Exp $ */
+
+/*
+** HTML elements
+*/
+fieldset {
+  margin-bottom: 1em;
+  padding: .5em;
+}
+form {
+  margin: 0;
+  padding: 0;
+}
+hr {
+  height: 1px;
+  border: 1px solid gray;
+}
+img {
+  border: 0;
+}
+table {
+  border-collapse: collapse;
+}
+th {
+  text-align: right;
+  padding-left: 1em;
+  border-bottom: 3px solid #ccc;
+}
+
+/*
+** Markup free clearing
+** Details: http://www.positioniseverything.net/easyclearing.html
+*/
+.clear-block:after {
+  content: ".";
+  display: block;
+  height: 0;
+  clear: both;
+  visibility: hidden;
+}
+
+.clear-block {
+  display: inline-block;
+}
+
+/* Hides from IE-mac \*/
+* html .clear-block {
+  height: 1%;
+}
+.clear-block {
+  display: block;
+}
+/* End hide from IE-mac */
diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/modules/system/system-rtl.css drupal-he/modules/system/system-rtl.css
--- drupal-5.1/modules/system/system-rtl.css	1970-01-01 02:00:00.000000000 +0200
+++ drupal-he/modules/system/system-rtl.css	2007-03-10 19:46:43.000000000 +0200
@@ -0,0 +1,394 @@
+/* $Id: drupalhe.diff.txt,v 1.1 2007/03/10 19:10:48 yhager Exp $ */
+
+/*
+** HTML elements
+*/
+th.active img {
+  display: inline;
+}
+tr.even, tr.odd {
+  background-color: #eee;
+  border-bottom: 1px solid #ccc;
+  padding: 0.1em 0.6em;
+}
+td.active {
+  background-color: #ddd;
+}
+tbody {
+  border-top: 1px solid #ccc;
+}
+tbody th {
+  border-bottom: 1px solid #ccc;
+}
+thead th {
+  text-align: right;
+  padding-left: 1em;
+  border-bottom: 3px solid #ccc;
+}
+
+/*
+** Other common styles
+*/
+.breadcrumb {
+  padding-bottom: .5em
+}
+.error {
+  color: #f00;
+}
+div.error {
+  border: 1px solid #d77;
+}
+div.error, tr.error {
+  background: #fcc;
+  color: #200;
+}
+div.warning, tr.warning {
+  background: #ffd;
+}
+div.ok, tr.ok {
+  background: #dfd;
+}
+.item-list .icon {
+  color: #555;
+  float: left;
+  padding-right: 0.25em;
+  clear: left;
+}
+.item-list .title {
+  font-weight: bold;
+}
+.item-list ul {
+  margin: 0 0 0.75em 0;
+  padding: 0;
+}
+.item-list ul li {
+  margin: 0 1.5em 0.25em 0;
+  padding: 0;
+  list-style: disc;
+}
+.form-item {
+  margin-top: 1em;
+  margin-bottom: 1em;
+}
+tr.odd .form-item, tr.even .form-item {
+  margin-top: 0;
+  margin-bottom: 0;
+  white-space: nowrap;
+}
+tr.merge-down, tr.merge-down td, tr.merge-down th {
+  border-bottom-width: 0 !important;
+}
+tr.merge-up, tr.merge-up td, tr.merge-up th {
+  border-top-width: 0 !important;
+}
+.form-item input.error, .form-item textarea.error, .form-item select.error {
+  border: 2px solid red;
+}
+.form-item .description {
+  font-size: 0.85em;
+}
+.form-item label {
+  display: block;
+  font-weight: bold;
+}
+.form-item label.option {
+  display: inline;
+  font-weight: normal;
+}
+.form-checkboxes, .form-radios {
+  margin: 1em 0;
+}
+.form-checkboxes .form-item, .form-radios .form-item {
+  margin-top: 0.4em;
+  margin-bottom: 0.4em;
+}
+.marker, .form-required {
+  color: #f00;
+}
+.more-link {
+  text-align: left;
+}
+.more-help-link {
+  font-size: 0.85em;
+  text-align: left;
+}
+.nowrap {
+  white-space: nowrap;
+}
+.pager {
+  clear: both;
+  text-align: center;
+}
+.pager a, .pager strong.pager-current {
+  padding: 0.5em;
+}
+.tips {
+  margin-top: 0;
+  margin-bottom: 0;
+  padding-top: 0;
+  padding-bottom: 0;
+  font-size: 0.9em;
+}
+dl.multiselect dd.b, dl.multiselect dd.b .form-item, dl.multiselect dd.b select {
+  font-family: inherit;
+  font-size: inherit;
+  width: 14em;
+}
+dl.multiselect dd.a, dl.multiselect dd.a .form-item {
+  width: 8em;
+}
+dl.multiselect dt, dl.multiselect dd {
+  float: right;
+  line-height: 1.75em;
+  padding: 0;
+  margin: 0 0 0 1em;
+}
+dl.multiselect .form-item {
+  height: 1.75em;
+  margin: 0;
+}
+
+/*
+** Inline items (need to override above)
+*/
+.container-inline div, .container-inline label {
+  display: inline;
+}
+
+/*
+** Menus
+*/
+ul.menu {
+  list-style: none;
+  border: none;
+  text-align:right;
+}
+ul.menu li {
+  margin: 0 0.5em 0 0;
+}
+li.expanded {
+  list-style-type: circle;
+  list-style-image: url(../../misc/menu-expanded.png);
+  padding: 0.2em 0 0 0.5em;
+  margin: 0;
+}
+li.collapsed {
+  list-style-type: disc;
+  list-style-image: url(../../misc/menu-collapsed.png);
+  padding: 0.2em 0 0 0.5em;
+  margin: 0;
+}
+li.leaf {
+  list-style-type: square;
+  list-style-image: url(../../misc/menu-leaf.png);
+  padding: 0.2em 0 0 0.5em;
+  margin: 0;
+}
+li a.active {
+  color: #000;
+}
+td.menu-disabled {
+  background: #ccc;
+}
+ul.links {
+  margin: 0;
+  padding: 0;
+}
+ul.links.inline {
+  display: inline;
+}
+ul.links li {
+  display: inline;
+  list-style-type: none;
+  padding: 0 0.5em;
+}
+.block ul {
+  margin: 0;
+  padding: 0 1em 0.25em 0;
+}
+
+/*
+** Tab navigation
+*/
+ul.primary {
+  border-collapse: collapse;
+  padding: 0 1em 0 0;
+  white-space: nowrap;
+  list-style: none;
+  margin: 5px;
+  height: auto;
+  line-height: normal;
+  border-bottom: 1px solid #bbb;
+}
+ul.primary li {
+  display: inline;
+}
+ul.primary li a {
+  background-color: #ddd;
+  border-color: #bbb;
+  border-width: 1px;
+  border-style: solid solid none solid;
+  height: auto;
+  margin-left: 0.5em;
+  padding: 0 1em;
+  text-decoration: none;
+}
+ul.primary li.active a {
+  background-color: #fff;
+  border: 1px solid #bbb;
+  border-bottom: #fff 1px solid;
+}
+ul.primary li a:hover {
+  background-color: #eee;
+  border-color: #ccc;
+  border-bottom-color: #eee;
+}
+ul.secondary {
+  border-bottom: 1px solid #bbb;
+  padding: 0.5em 1em;
+  margin: 5px;
+}
+ul.secondary li {
+  display: inline;
+  padding: 0 1em;
+  border-left: 1px solid #ccc;
+  
+}
+ul.secondary a {
+  padding: 0;
+  text-decoration: none;
+}
+ul.secondary a.active {
+  border-bottom: 4px solid #999;
+}
+
+/*
+** Autocomplete styles
+*/
+/* Suggestion list */
+#autocomplete {
+  position: absolute;
+  border: 1px solid;
+  overflow: hidden;
+  z-index: 100;
+}
+#autocomplete ul {
+  margin: 0;
+  padding: 0;
+  list-style: none;
+}
+#autocomplete li {
+  background: #fff;
+  color: #000;
+  white-space: pre;
+  cursor: default;
+}
+#autocomplete li.selected {
+  background: #0072b9;
+  color: #fff;
+}
+/* Animated throbber */
+html.js input.form-autocomplete {
+  background-image: url(../../misc/throbber.gif);
+  background-repeat: no-repeat;
+  background-position: 0% 2px;
+}
+html.js input.throbbing {
+  background-position: 0% -18px;
+}
+
+/*
+** Collapsing fieldsets
+*/
+html.js fieldset.collapsed {
+  border-bottom-width: 0;
+  border-right-width: 0;
+  border-left-width: 0;
+  margin-bottom: 0;
+  height: 1em;
+}
+html.js fieldset.collapsed * {
+  display: none;
+}
+html.js fieldset.collapsed legend {
+  display: block;
+}
+html.js fieldset.collapsible legend a {
+  padding-right: 15px;
+  /*background: url(../../misc/menu-expanded.png) 5px 75% no-repeat;*//* LTR version*/
+	background: url(../../misc/menu-expanded.png) 98% 75% no-repeat;
+}
+html.js fieldset.collapsed legend a {
+  background-image: url(../../misc/menu-collapsed.png);
+  background-position: 98% 50%;
+}
+/* Note: IE-only fix due to '* html' (breaks Konqueror otherwise). */
+* html.js fieldset.collapsed legend,
+* html.js fieldset.collapsed legend *,
+* html.js fieldset.collapsed table * {
+  display: inline;
+}
+html.js fieldset.collapsible legend a {
+  display: block;
+}
+/* Avoid jumping around due to margins collapsing into collapsible fieldset border */
+html.js fieldset.collapsible .fieldset-wrapper {
+  overflow: auto;
+}
+
+/*
+** Resizable text areas
+*/
+.resizable-textarea {
+  width: 95%;
+}
+.resizable-textarea .grippie {
+  height: 9px;
+  overflow: hidden;
+  background: #eee url(../../misc/grippie.png) no-repeat center 2px;
+  border: 1px solid #ddd;
+  border-top-width: 0;
+  cursor: s-resize;
+}
+html.js .resizable-textarea textarea {
+  margin-bottom: 0;
+  width: 100%;
+  display: block;
+}
+
+/*
+** Progressbar styles
+*/
+.progress {
+  font-weight: bold;
+}
+.progress .bar {
+  background: #fff url(../../misc/progress.gif);
+  border: 1px solid #00375a;
+  height: 1.5em;
+  margin-top: 0.2em;
+}
+.progress .filled {
+  background: #0072b9;
+  height: 1em;
+  border-bottom: 0.5em solid #004a73;
+  width: 0%;
+}
+.progress .percentage {
+  float: left;
+}
+
+/*
+** Formatting for welcome page
+*/
+#first-time strong {
+  display: block;
+  padding: 1.5em 0 .5em;
+}
+
+/*
+** To be used with tableselect.js
+*/
+tr.selected td {
+  background: #ffc;
+}
