/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function ATLog($text){
    if (typeof console == 'undefined') {
        return;
    }
    console.log($text);
}

function ATLoadVideo($url, $autoplay) {
    //$selected=$("#selected");
    ATLog("Loaded.."+$url);
    ATLog("Aoutoplay:"+$autoplay);
    $f("player", {src: "/new/swf/flowplayer/flowplayer-3.2.7.swf"}, {
            clip: {
                    url: $url,
                    autoPlay: $autoplay,
                    autoBuffering: true,
                    image: true
                    //onStart: function(clip){alert("Clip "+ clip.url);}  // attach event listener
            },
            play: {
                    label: null,
                    replayLabel: "click to play again"
            },
			plugins: {
				controls: {
					url:"/new/swf/flowplayer/flowplayer.controls-3.2.5.swf",
					
					backgroundColor: "transparent",
					backgroundGradient: "none",
					sliderColor: '#FFFFFF',
					sliderBorder: '1.5px solid rgba(160,160,160,0.7)',
					volumeSliderColor: '#FFFFFF',
					volumeBorder: '1.5px solid rgba(160,160,160,0.7)',

					timeColor: '#ffffff',
					durationColor: '#535353',

					tooltipColor: 'rgba(255, 255, 255, 0.7)',
					tooltipTextColor: '#000000'
				}
			}
		}
    );
}




