(1092 . 21)(1092 . 6)
57213 if ( $d ) {
57214 $cat_args['show_option_none'] = __('Select Category');
57215 wp_dropdown_categories($cat_args);
57216 ?>
57217
57218 <script type='text/javascript'>
57219 /* <![CDATA[ */
57220 var dropdown = document.getElementById("cat");
57221 function onCatChange() {
57222 if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
57223 location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
57224 }
57225 }
57226 dropdown.onchange = onCatChange;
57227 /* ]]> */
57228 </script>
57229
57230 <?php
57231 } else {
57232 ?>
57233 <ul>