diff -r 40105681f495 -r 663fcf528726 includes/clientside/static/admin-menu.js --- a/includes/clientside/static/admin-menu.js Sat Jun 23 19:27:41 2007 -0400 +++ b/includes/clientside/static/admin-menu.js Tue Jun 26 17:28:18 2007 -0400 @@ -33,17 +33,24 @@ * is not a "competing product" I was allowed to treat the code as GPL. The conversation can be seen in the * /licenses/tigra-menu.html document in the Enano distribution. */ - -var ck = readCookie('admin_menu_state'); -if(ck) + +if ( typeof(readCookie) == 'function' ) { - var ck = parseInt(ck); + var ck = readCookie('admin_menu_state'); + if(ck) + { + ck = parseInt(ck); + } + else + { + ck = 0; + } + ck = ( isNaN(ck) ) ? 0 : ck; } else { - ck = 0; + var ck = 0; } -ck = ( isNaN(ck) ) ? 0 : ck; function tree (a_items, a_template) {