includes/clientside/static/sliders.js
changeset 362 02d315d1cc58
parent 57 b354deeaa4c4
child 582 a38876c0793c
--- a/includes/clientside/static/sliders.js	Mon Jan 21 10:17:26 2008 -0500
+++ b/includes/clientside/static/sliders.js	Mon Jan 21 15:37:28 2008 -0500
@@ -30,6 +30,9 @@
         // use cookies to toggle whether to display it or not
         var id = ( divs[i].parentNode.firstChild.nextSibling ) ? divs[i].parentNode.firstChild.nextSibling.firstChild : divs[i].parentNode.parentNode.firstChild.nextSibling.firstChild;
         
+        if ( !id.nextSibling )
+          return;
+        
         if(id.innerHTML || id.nextSibling.length < 1) id = id.innerHTML;
         else id = id.nextSibling.innerHTML; // Gecko fix