function noError(){return true;}
window.onerror = noError;

var divplayer=document.getElementById('player_content');
divplayer.style.position='relative';
divplayer.style.width='640px';
divplayer.style.height='500px';
divplayer.style.margin='auto';

var divplayer=document.getElementById('player');
divplayer.innerHTML='';
divplayer.style.position='absolute';
if(divplayer.style.width!='600px')
{
divplayer.style.width='640px';
}
divplayer.style.height='480px';


var divplayer=document.getElementById('player1');
divplayer.innerHTML='';
divplayer.style.position='absolute';
divplayer.style.width='640px';
divplayer.style.height='480px';

$f("player", "http://www.stream-now.com/mk/common/flowplayer.swf",
        {
key: ['#@bfdc70f10333cb6b681','#@925d64d9d8dc69aae2f','#@3d681faafd92d8e7351','#@33a3fe0130f8f1731cc','#@318e9ad89d3ca8543f5','#@e483c8715d4b6577dfc','#@efe6fafbf57e275e599','#@cc315b366866cb0b470','#@79234f5e9bced5acebf','#@50ef39dfa5bb0ddab96','#@3fa3360755e4f45595c','#@92fa0514bab98fd0d9d','#@48ef89a8f2ea4857c3d'],
logo: {
                right: "10pct",
                zIndex:'2',
                top: "5pct",
                linkUrl: 'http://www.stream-now.com',
                linkWindow: '_blank',
                url: 'http://www.stream-now.com/stream-now-small-logo_horiz.png',
                fullscreenOnly: true,
                opacity: 0.7
        },

canvas: {
    backgroundGradient: "transparent",
    backgroundColor: "#000000",
    background: '#000000 url(http://www.stream-now.com/stream-now-small-logo_vertic.png) no-repeat 20 400',
    linkUrl: 'http://www.stream-now.com',
    linkWindow: '_blank'
  },

                clip: {
                        url: 'camera_mk1_a.stream',
                        provider: 'rtmp',
			live: true,
			bufferLength:10,
			onBeforeFinish: function() {  return false; }
//                        scaling: "orig"
                },
                plugins: {
                        rtmp: {
                        url: 'http://www.stream-now.com/mk/common/flowplayer.rtmp.swf',
                        netConnectionUrl: 'rtmp://www.stream-now.com/rtplive'
                        },
"controls":
{
"borderRadius":"0px",
"timeColor":"#ffffff",
"slowForward":true,
"bufferGradient":"none",
"backgroundColor":"rgba(160,160,160,0.7)",
"volumeSliderGradient":"none",
"slowBackward":false,
"timeBorderRadius":20,
"progressGradient":"none",
"time":false,
"height":30,
"volumeColor":"#4599ff",
"tooltips":{"marginBottom":5,"volume":true,"scrubber":true,"buttons":false},
"opacity":1,
"fastBackward":false,
"timeFontSize":12,
"border":"0px",
"bufferColor":"#a3a3a3",
"volumeSliderColor":"#ffffff",
"buttonColor":"#ffffff",
"mute":false,
"autoHide":{"enabled":true,"hideDelay":900,"hideStyle":"fade","mouseOutDelay":500,"hideDuration":400,"fullscreenOnly":false},
"backgroundGradient":"none",
"width":"80px",
"display":"block",
"sliderBorder":"1px solid rgba(128, 128, 128, 0.7)",
"buttonOverColor":"#ffffff",
"fullscreen":true,
"timeBgColor":"rgb(0, 0, 0, 0)",
"scrubberBarHeightRatio":0.2,
"bottom":0,
"stop":false,
"zIndex":1,
"sliderColor":"#000000",
"scrubberHeightRatio":0.6,
"tooltipTextColor":"#ffffff",
"sliderGradient":"none",
"timeBgHeightRatio":0.8,
"volumeSliderHeightRatio":0.6,
"name":"controls",
"timeSeparator":" ",
"volumeBarHeightRatio":0.2,
"right":"0px",
"tooltipColor":"rgba(0, 0, 0, 0)",
"playlist":false,
"durationColor":"#b8d9ff",
"play":true,
"fastForward":true,
"timeBorder":"0px solid rgba(0, 0, 0, 0.3)",
"progressColor":"#4599ff",
"volume":false,
"scrubber":false,
"volumeBorder":"1px solid rgba(128, 128, 128, 0.7)",
"builtIn":false
}
                }

//onStart: function(clip){
//alert(a);
//alert(clip.metaData.width);
//}
//,
//onBeforePause: function()
//{
//                return false;
//}


        }

);


if (typeof jQuery == 'undefined') {
   var head = document.getElementsByTagName("head")[0];
   script = document.createElement('script');
   script.id = 'jQuery';
   script.type = 'text/javascript';
   script.src = 'http://www.stream-now.com/mk/common/jquery.js';
   head.appendChild(script);
}
window.onload= function()
{
$jq('#playlist a').each(function(index,el){

$jq(el).click(function()
{
$f().play($jq(this).attr('href'));
return false;
});
});
};


