It would be better to set a class declaring these shadow properties for different browsers and adding this class to the className
target element.
sort of:
.shadowed{ /*all shadow declarations for various browsers*/ -o- -webkit- -moz- -ms- box-shadow } element.className += ' shadowed';
source share