function newcookie(name, value) {document.cookie = name + '=' + value + '; expires=Sun, 19 Sep 9999 6:10:10 UTC; path=/';}function killcookie(name) {document.cookie = name + '=; expires=Sun, 19 Sep 0000 6:10:10 UTC; path=/';}function foldCat(maintitle) {var tb = document.getElementById('tb' + maintitle);var img = document.getElementById('img' + maintitle);if(tb.style.display == 'none') {killcookie('cat' + maintitle);tb.style.display = '';img.src = 'http://209.85.48.10/6539/182/pip/collapse.gif';return false;}if(tb.style.display != 'none') {newcookie('cat' + maintitle, 'hide');tb.style.display = 'none';img.src = 'http://209.85.48.10/6539/182/pip/expand.gif';return false;}}if(document.title == document.getElementById('navstrip').childNodes[2].innerHTML) {var maintitle_count = 0;var x = document.getElementsByTagName('DIV');for(i=0;i<x.length;i++) {if(x[i].className == 'maintitle' && x[i].parentNode.className == 'tableborder') {if(x[i].lastChild.href != null){var catnumb = x[i].lastChild.href.split('c=')[1];}if(x[i].lastChild.href == null){var catnumb = 'bs' + maintitle_count;}if(x[i].parentNode.childNodes[3] != null){x[i].parentNode.childNodes[3].id = 'tb' + catnumb;}if(x[i].parentNode.childNodes[3] == null){x[i].parentNode.lastChild.id = 'tb' + catnumb;}x[i].innerHTML = '<img style="float:right;margin-right:10px" id="img' + catnumb + '" onClick="foldCat(\'' + catnumb + '\');" src="http://209.85.48.10/6539/182/pip/collapse.gif" />&nbsp;' + x[i].innerHTML;if(document.cookie.match('cat' + catnumb + '=hide')){foldCat(catnumb);}maintitle_count = Math.floor(maintitle_count) + 1;}}}