"function toggleVisibility(linkObj)\n" "{\n" " var base = $(linkObj).attr('id');\n" " var summary = $('#'+base+'-summary');\n" " var content = $('#'+base+'-content');\n" " var trigger = $('#'+base+'-trigger');\n" " var src=$(trigger).attr('src');\n" " if (content.is(':visible')===true) {\n" " content.hide();\n" " summary.show();\n" " $(linkObj).addClass('closed').removeClass('opened');\n" " $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');\n" " } else {\n" " content.show();\n" " summary.hide();\n" " $(linkObj).removeClass('closed').addClass('opened');\n" " $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');\n" " } \n" " return false;\n" "}\n" "\n" "function updateStripes()\n" "{\n" " $('table.directory tr').\n" " removeClass('even').filter(':visible:even').addClass('even');\n" "}\n" "\n" "function toggleLevel(level)\n" "{\n" " $('table.directory tr').each(function() {\n" " var l = this.id.split('_').length-1;\n" " var i = $('#img'+this.id.substring(3));\n" " var a = $('#arr'+this.id.substring(3));\n" " if (l