<?php 
/**
 * Category layered navigation state
 *
 * @see Mage_Catalog_Block_Layer_State
 * http://docs.magentocommerce.com/Mage_Catalog/Mage_Catalog_Block_Layer_State.html
 *
 * ./app/design/frontend/default/default/template/catalog/layer/state.phtml
 * based on
 * ./app/design/frontend/base/default/template/catalog/layer/state.phtml
 *
 * v2011-02-08 by panticz
 *
 */
?>

<?php $_filters = $this->getActiveFilters() ?>
<?php if(!empty($_filters)): ?>
    <script type="text/javascript">
    <!--
    function magejump(targ, selObj, restore) {
        eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
        if (restore) {
            selObj.selectedIndex = 0;
        }
    }
    //-->
    </script>

    <p class="block-subtitle active"><?php echo $this->__('Currently Shopping by') ?>
        <span><a href="<?php echo $this->getClearUrl() ?>" class="btn-remove" title="<?php echo $this->__('Clear All') ?>"><?php echo $this->__('Clear All') ?></a></span>
    </p>
    <?php foreach ($_filters as $_filter): ?>
        <ol class="currently">
            <li>
                <span class="label"><?php echo $this->__($_filter->getName()) ?>:</span>
            </li>
        </ol>
        <select name="magestp" id="magestp" onChange="magejump('parent', this, 0)">
            <option><?php echo $_filter->getLabel() ?></option>
            <option value="<?php echo $_filter->getRemoveUrl() ?>"><?php echo $this->__('All') ?></a></option>
        </select>
    <?php endforeach; ?>
<?php endif; ?>
