diff --git a/colorbox_node.js b/colorbox_node.js
index c9bbb63..a691753 100644
--- a/colorbox_node.js
+++ b/colorbox_node.js
@@ -10,10 +10,18 @@
 				parse.href = href;
 				// Lets add our colorbox link after the base path if necessary.
 				var base_path = Drupal.settings.basePath;
+				var pathname = parse.pathname;
+
+				// Lets check to see if the pathname has a forward slash.
+				// This problem happens in IE7/IE8
+				if(pathname.charAt(0) != '/') {
+					pathname = '/' + parse.pathname;
+				}
+				
 				if(base_path != '/') {
-					var link = parse.pathname.replace(base_path, base_path + 'colorbox/');
+					var link = pathname.replace(base_path, base_path + 'colorbox/');
 				} else {
-					var link = base_path + 'colorbox' + parse.pathname;
+					var link = base_path + 'colorbox' + pathname;
 				}
 				// Update our href to the link containing colorbox.
 				$(this).attr('href', link + parse.search);
diff --git a/colorbox_node.module b/colorbox_node.module
index cae7d93..108c83e 100644
--- a/colorbox_node.module
+++ b/colorbox_node.module
@@ -73,7 +73,7 @@ function colorbox_node_url_load($arg, $path = array()) {
   array_shift($path);
   
   // Lets determine if we have a prefix from our languages.
-  if(module_exists('locale')) {
+  if(module_exists('locale') && function_exists('language_url_split_prefix')) {
     // Get our language list to pass into our url splitter.
     $languages = language_list();
     // Turn the path into a string so we can then remove our prefix.
