// JavaScript Me Info Movie

var g_Browser = navigator.appName;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;


function movie_DoFSCommand(command, args) {
 var movieObj = InternetExplorer ? document.getElementById("movie") : document.movie;

// Mediensteurung  
  {if (command == "Launch"){
    window.document.movie.SetVariable("Snoop", "PageLoad");	
    }
  }

  {if (command == "Open"){
    fenster = open("", "newwin", " scrollbars=1,width=460,height=450");
    fenster.document.open();
    with (fenster.document) {
       fenster.location.href = "../popup/wintertale.htm";
  }
    fenster.document.close();
    }
  }

  {if (command == "Low"){
    document.Player.settings.volume = 30;
    }
  }

  {if (command == "High"){
    document.Player.settings.volume = 60;
    }
  }

  {if (command == "Stop"){
    document.Player.controls.stop();
    document.Player.controls.currentPosition = 0;
    }
  }
  
  {if (command == "Pause"){
    document.Player.controls.pause();
    }
  }
  
  {if (command == "Play"){
    document.Player.controls.play();
    }
  }
}

// Hook for Internet Explorer 
  if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
    navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.write('<SCRIPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next \n');
    document.write('Sub movie_FSCommand(ByVal command, ByVal args)\n');
    document.write('  call movie_DoFSCommand(command, args)\n');
    document.write('end sub\n');
    document.write('</SCRIPT\> \n');
}
