<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>fm4.ORF.at</title>
<style type="text/css">
body, div {
   background-color: #363839;
   font-family: Verdana, Helvetica, sans-serif;
   padding: 0px;
   margin: 0px;
   }

</style>
<script type="text/javascript" language="javascript">
<!--

//returns the requested GET parameter from the URL
var getUrlParam = function(url, param) {
    var regex = '[?&]' + param + '=([^&#]*)';
    var results = (new RegExp(regex)).exec(url);
    if(results) return results[1];
    return '';
};

var wmvURL = getUrlParam(location.href, "name");
var width = getUrlParam(location.href, "width");
var height = getUrlParam(location.href, "height");
var videoParts = wmvURL.split(":");
if (videoParts[0] == "mms") {
   var videoURL = wmvURL.split(",");
   var wmvTmp = wmvURL.split("/");
   var streamName = wmvTmp[wmvTmp.length-1];
}
else {
    var streamName = wmvURL.split(",");
    var videoURL = 'mms://stream2.orf.at/fm4/video/' + streamName;
}
//-->
</script>
</head>
<body>
<div>
<script type="text/javascript"><!--
      document.write('<object id="Player1" width="' + width + '" height="' + height + '" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-mplayer2">');
      document.write('<param name="url" value="' + videoURL + '" />');
      document.write('<param name="FileName" value="' + videoURL + '" />');
      document.write('<param name="ShowControls" value="1" />');
      document.write('<param name="ShowDisplay" value="0" />');
      document.write('<param name="ShowStatusBar" value="1" />');
      document.write('<param name="AutoSize" value="1" />');
      document.write('<param name="stretchToFit" value=0 />');
      document.write('<param name="AutoStart" value="1" />');
      document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="' + videoURL + '" Name="NSPlayer1" ShowControls="1" ShowDisplay="0" ShowStatusBar="1" AutoSize="1" AutoStart="1" stretchToFit="1" width="' + width + '" height="' + height + '" />');
      document.write('</object>');
      // --></script>
</div>
<!-- OEWA -->
<script type="text/javascript">
var oewa_path = "RedCont/KulturUndFreizeit/Musik/fm4/wmvplayer/" + streamName;
var OEWA = {
   "s":"orf",
   "cp": oewa_path
};
var oewaq = oewaq || [];
oewaq.push(OEWA);
(function() {
var scr = document.createElement('script');
scr.type = 'text/javascript'; scr.async = true;
scr.src = 'http://dispatcher.oewabox.at/oewa.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(scr, s);
})();
   <!-- /OEWA -->
</body>
</html>
