/* bs_boxshadow.js Routines for hiding displaying boxshadow div vers 1 HF 09/01/2005 */ // set up javascript compliance details (if you are using the latest style.js you can delete these lines and replace all references // to js_ with the trail bit ie js_w3c becomes w3c etc // NB ONLY NEED THIS IN ONE OF YOUR JS FILES - THE FIRST ONE IN THE LIST SO IF YOU ARE USING local2.js THEN YOU DON'T HAVE IT IN HERE // but the reference to this file must be after the one to local2.js var js_w3c=(document.getElementById)?true:false; var js_ns4=(document.layers)?true:false; var js_ie4=(document.all && !js_w3c)?true:false; var js_ie5=(document.all && js_w3c)?true:false; var js_ns6=(js_w3c && navigator.appName.indexOf("Netscape")>=0 )?true:false; var js_opera=(window.opera)?true:false; function _bs_show_div(div_id) { if(js_ie4||js_ie5) opacity='Y'; if(js_ns6) opacity='N'; getText(div_id,'/cgi-bin/gen5?runprog=dmr/boxshadow&target=' + div_id ); } function _bs_hide_div(div_id) { div_obj=(js_ns4)?document.layers[div_id]:(js_ie4)?document.all[div_id]:(js_w3c)?document.getElementById(div_id):null; if(js_ns4)div_obj.visibility="hide"; else{ div_obj.style.display="none"; div_obj.style.visibility="hidden"; } } //Makes box edge semi opaque - called by local2.js function do_opacity(o) { var op; if (js_ns6) op = o/100; else op = o; for (j=1;j<=9;++j) { thisobj = document.getElementById('bs_0' + j); if (js_ns6) thisobj.style.MozOpacity=op; else thisobj.style.filter='alpha(opacity='+ op + ')'; } for (j=10;j<=16;++j) { thisobj = document.getElementById('bs_' + j); if (js_ns6) thisobj.style.MozOpacity=op; else thisobj.style.filter='alpha(opacity='+ op + ')'; } }