// JSify the animal file system explorator function jsifyAnimalFs() { var d = document.getElementById('animal_fs'); if(!d) return; var items = d.getElementsByTagName('div'); var o = null; for(var i=0; i> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output = output + String.fromCharCode(chr1); if(enc3 != 64) output += String.fromCharCode(chr2); if(enc4 != 64) output += String.fromCharCode(chr3); chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = ""; } while (i < input.length); return unescape(output); }; if(d.getAttribute('openned') == items[i].getAttribute('ref')) o = items[i]; if(!items[i].className.match(/animal_dir/)) continue; items[i].openned = true; items[i].toggle = function() { if(this.openned) { this.close(); }else{ if(document.getElementById('editfile_path')) document.getElementById('editfile_path').value = this.clearPath(); this.open(); } }; items[i].onclick = items[i].toggle; items[i].open = function() { if(this.openned) return; this.openned = true; var d = this.container.getElementsByTagName('div'); for(var i=0; i