function getFlashMovieObject(movieName)
	{
		if (window.document[movieName]) {
			return window.document[movieName];
		}
		if (navigator.appName.indexOf("Microsoft Internet")==-1) {
			if (document.embeds && document.embeds[movieName])
				return document.embeds[movieName]; 
		} else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		{
			return document.getElementById(movieName);
		}
	}
	
function cambiavideo(percorso,nomefilmato) {
	var flashMovie=getFlashMovieObject(nomefilmato);
	flashMovie.SetVariable("videoURL", percorso);
}

function cambiaaudio(percorso,nomefilmato) {
	var flashMovie=getFlashMovieObject(nomefilmato);
	flashMovie.SetVariable("audioURL", percorso);
}

function createBigPlayerVideo (videoURL,name, container, autoplay) {
		
	var so = new SWFObject("/acm-contents/instance1/images/video.swf", name, "300", "280", "8", "#000");
	
	so.addParam("allowfullscreen", "true");
	so.addParam("align", "middle");
	so.addParam("swliveconnect", "true");
	so.addVariable("videoURL",videoURL);
	so.addVariable("auto_play",autoplay);
	
	so.write(container);
}

function createPlayerAudio (audioURL,name, container) {
		
	var so = new SWFObject("/acm-contents/instance1/images/video_solo_audio.swf", name, "300", "280", "8", "#000");
	
	so.addParam("allowfullscreen", "true");
	so.addParam("align", "middle");
	so.addParam("swliveconnect", "true");
	so.addVariable("audioURL",audioURL);
	
	so.write(container);
}