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