// JavaScript Document
var aux = 'http://webdev.discover.com.br/arqSupera/videos/SAP_ADDED.flv';
var nomeVideo;

function mudarVideo(param) {
	flowplayer("player", "http://webdev.discover.com.br/arqSupera/flowplayer/flowplayer-3.0.0.swf", { 
 
	    /* 
	         this here is an example configuration. the syntax is "JSON"  
		*/     
	    clip: { 
	        url: param, 
	        autoPlay: true,     
			loop: false,
			autoBuffering: true,
	         
	         
	        // you can even have JavaScript functions in the configuration 
	        // here you send notification to Google Analytics when playback starts 
	        onStart: function(clip) {   
	            pageTracker._trackPageview("configuration demo: " + clip.url); 
	        }     
	    } 
	}); 
	nomeVideo = param;
}
/* 
    This time we install flowplayer as before but we supply a 
    configuration object as the last "argument" to flowplayer  
*/ 
flowplayer("player", "http://webdev.discover.com.br/arqSupera/flowplayer/flowplayer-3.0.0.swf", { 
 
    /* 
        this here is an example configuration. the syntax is "JSON"  
    */     
    clip: { 
        url: aux, 
        autoPlay: false,
		loop: false,
		autoBuffering: true,
         
         
        // you can even have JavaScript functions in the configuration 
        // here you send notification to Google Analytics when playback starts 
        onStart: function(clip) {   
            pageTracker._trackPageview("configuration demo: " + clip.url); 
        }     
    } 
});


function pararVideo(){
	
	var player = flowplayer("player", "http://webdev.discover.com.br/arqSupera/flowplayer/flowplayer-3.0.0.swf", nomeVideo);
	player.stop();
	document.body.style.overflow='visible';
	}


