diff --git a/theme/splash/config.php b/theme/splash/config.php
index 8e2a752bd35..6bb92792ea2 100644
--- a/theme/splash/config.php
+++ b/theme/splash/config.php
@@ -1,5 +1,28 @@
.
+
+/**
+ * Config for the splash theme
+ *
+ * @package theme_splash
+ * @copyright 2010 Caroline Kennedy of Synergy Learning
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
$THEME->name = 'splash';
////////////////////////////////////////////////////
@@ -8,8 +31,8 @@ $THEME->name = 'splash';
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
@@ -18,7 +41,11 @@ $THEME->parents = array(
$THEME->sheets = array(
- 'green','blue','orange','sl','ie',
+ 'sl',
+ 'green',
+ 'blue',
+ 'orange',
+ 'ie',
);
////////////////////////////////////////////////////
@@ -127,12 +154,4 @@ $THEME->csspostprocess = 'splash_process_css';
///////////////////////////////////////////////////////////////
// Splash Theme Specific settings for Administrators to customise
// css.
-///////////////////////////////////////////////////////////////
-
-
-
-$THEME->javascripts = array('styleswitcher');
-
-///////////////////////////////////////////////////////////////
-// Referencing the javascript files required for theme elements.
///////////////////////////////////////////////////////////////
\ No newline at end of file
diff --git a/theme/splash/javascript/styleswitcher.js b/theme/splash/javascript/styleswitcher.js
deleted file mode 100644
index a3ae3671b07..00000000000
--- a/theme/splash/javascript/styleswitcher.js
+++ /dev/null
@@ -1,64 +0,0 @@
-function setActiveStyleSheet(title) {
- var i, a, main;
- for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
- if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
- a.disabled = true;
- if(a.getAttribute("title") == title) a.disabled = false;
- }
- }
-}
-
-function getActiveStyleSheet() {
- var i, a;
- for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
- if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
- }
- return null;
-}
-
-function getPreferredStyleSheet() {
- var i, a;
- for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
- if(a.getAttribute("rel").indexOf("style") != -1
- && a.getAttribute("rel").indexOf("alt") == -1
- && a.getAttribute("title")
- ) return a.getAttribute("title");
- }
- return null;
-}
-
-function createCookie(name,value,days) {
- if (days) {
- var date = new Date();
- date.setTime(date.getTime()+(days*24*60*60*1000));
- var expires = "; expires="+date.toGMTString();
- }
- else expires = "";
- document.cookie = name+"="+value+expires+"; path=/";
-}
-
-function readCookie(name) {
- var nameEQ = name + "=";
- var ca = document.cookie.split(';');
- for(var i=0;i < ca.length;i++) {
- var c = ca[i];
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
- }
- return null;
-}
-
-window.onload = function(e) {
- var cookie = readCookie("style");
- var title = cookie ? cookie : getPreferredStyleSheet();
- setActiveStyleSheet(title);
-}
-
-window.onunload = function(e) {
- var title = getActiveStyleSheet();
- createCookie("style", title, 365);
-}
-
-var cookie = readCookie("style");
-var title = cookie ? cookie : getPreferredStyleSheet();
-setActiveStyleSheet(title);
diff --git a/theme/splash/lang/en/theme_splash.php b/theme/splash/lang/en/theme_splash.php
index b875bbec308..d0f5f287757 100644
--- a/theme/splash/lang/en/theme_splash.php
+++ b/theme/splash/lang/en/theme_splash.php
@@ -16,30 +16,28 @@
// along with Moodle. If not, see