Here is sample JavaScript you need integrate with your template:
<script type="text/javascript">
var url ='../../pagename.html';
var delay = 4;
var d = delay * 1000;window.setTimeout ('parent.location.replace(url)', d);
</script>