rem: if (document.all) event = window.event; 
add: if (app_is_ie) event = window.event; 
context: function app_onkeypress(event) { if (document.all) event = window.event; //For IE var keyCode = event.keyCode ? event.keyCode : event.which; //For Moz if (event.ctrlKey || event.altKey || event.shiftKey || event.metaKey) return; if (keyCode==32) slide_onoff(); else if (keyCode==27) { if (popup_on) popup_vis(0);                         else if (image_on) image_vis(0); } if (keyCode < 33 || keyCode > 40) return; var obj = document.getElementById('text'); if (!image_on) switch (keyCode) {  case 38: album_div.scrollTop -= 22; break; //Up  case 40: album_div.scrollTop += 22; break; //Down  case 33: album_div.scrollTop -= album_div.clientHeight-5; break; //PageUp  case 34: album_div.scrollTop += album_div.clientHeight-5; break; //PageDown  case 35: album_div.scrollTop = album_div.scrollHeight; break; //End  case 36: album_div.scrollTop = 0; break; //Home  case 37: if (sidebar_on) sidebar_onoff(); break; //Left  case 39: if (!sidebar_on) sidebar_onoff(); break; //Right } else switch (keyCode) {  case 37: image_prev(); break; //Left  case 39: image_next(); break; //Right  case 38: if (!text_on) text_onoff(); break; //Up  case 40: if (text_on) text_onoff(); break; //Down  case 33: if (text_on) obj.scrollTop -= obj.clientHeight-5; break; //PageUp  case 34: if (text_on) obj.scrollTop += obj.clientHeight-5; break; //PageDown }}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/d17d5aad6869f518f01845549fc75b10be36b002/hybrid.js/buggy/gallery2/layouts/hybrid/templates/hybrid.js