-<script language="JavaScript" type="text/javascript">
-<!--
-var interval = null;
-var counter = "$content[restart]";
-var timer = document.getElementById("surfbar_counter");
-var buttonDiv = document.getElementById("surfbar_button");
-
-function Restart () {
- this.location.reload();
-}
-
-function ShowButton () {
- buttonDiv.innerHTML = "<form action='{?URL?}/surfbar.php' target='_self' method='GET'><input type='hidden' name='frame' value='top' /><input type='submit' id='member_submit' value='Surfbar erneut starten' /></form>";
-}
-
-function Counter () {
- if (counter == 0) {
- if ($content[autostart] == true) {
- Restart();
- } else {
- ShowButton();
- }
- window.clearInterval(interval);
- } else {
- counter--;
- timer.innerHTML = counter;
- }
-}
-
-function Init () {
- interval = window.setInterval("Counter()", 1000);
- timer.innerHTML = "$content[restart]";
-}
-
-window.setTimeout("Init()", 500);
-//-->
-</script>
+<script src="{%url=js.php?js=surfbar_stopped%}{%ext,version=surfbar%}&autostart=$content[autostart]"
+ type="text/javascript"></script>