{if isset($homeslider)}
<script type="text/javascript">
     var homeslider_loop={$homeslider.loop|intval};
     var homeslider_width={$homeslider.width|intval};
     var homeslider_speed={$homeslider.speed|intval};
     var homeslider_pause={$homeslider.pause|intval};
</script>
{/if}