
function showDiaporama(val)
{
	var flashvars = {
			ps:val
	};
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF",
		wmode: "transparent"
	};
	
	var attributes = {
		id:"diaporama"
	};
	swfobject.embedSWF("swf/slideshow.swf", "diaporama", "960", "320", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
}


function showCarousel(is_v32,link)
{
	var flashvars = {
			urlLink:link,
			v32:is_v32
	};
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF",
		wmode: "transparent"
	};
	
	var attributes = {
		id:"carousel"
	};
	swfobject.embedSWF("swf/carousel_new.swf", "carousel", "580", "270", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
}

function showWebTv()
{
	/* http://84.14.223.154:8091/groseille/main_v4.swf*/
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF"/*,
		wmode: "transparent"*/
	};
	
	var attributes = {
		id:"webtv"
	};
	swfobject.embedSWF("http://84.14.223.154:8091/groseille/main_v6.swf", "webtv", "316", "377", "9.0.0",null, null, params, attributes);
}

function showVideoCoverflow()
{
	//alert("ici");
	var flashvars = {
		xmlPath : "coverflow/coverflow.php"
	};
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF",
		scale : "noscale",
		salign : "tl",
		wmode: "transparent"
	};
	
	var attributes = {
		id:"video-coverflow"
	};
	swfobject.embedSWF("swf/video-coverflow.swf", "video-cover", "320", "350", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
}
function showVideoCoverflowFromSub()
{
	//alert("ici");
	var flashvars = {
			xmlPath : "../../coverflow/coverflow.php"
	};
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF",
		scale : "noscale",
		salign : "tl",
		wmode: "transparent"
	};
	
	var attributes = {
		id:"video-coverflow"
	};
	swfobject.embedSWF("../../swf/video-coverflow.swf", "video-cover", "320", "350", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
}
function showVideoCoverflowFromVideo()
{
	//alert("ici");
	var flashvars = {
			xmlPath : "../../coverflow/coverflow.php"
	};
	var params = {
		menu: "false",
		scale: "noScale",
		allowFullscreen: "true",
		allowScriptAccess: "always",
		bgcolor: "#FFFFFF",
		scale : "noscale",
		salign : "tl",
		wmode: "transparent"
	};
	
	var attributes = {
		id:"video-coverflow"
	};
	swfobject.embedSWF("../../swf/video-coverflow.swf", "video-cover", "320", "350", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
}

function addVideo(nomVideo,idContainer)
{

		var flashvars = {
			autoPlay : "false",
			urlVideo:nomVideo
		};
		var params = {
			menu: "false",
			scale: "noScale",
			allowFullscreen: "true",
			allowScriptAccess: "always",
			bgcolor: "#000000",
			wmode: "direct"
		};
		
		var attributes = {
			id:idContainer
		};
		swfobject.embedSWF("../../swf/video-player.swf", idContainer, "580", "330", "9","../../swf/expressInstall.swf", flashvars, params, attributes);
}

function askAuthentification()
{
	alert("Merci de vous identifier pour accéder à ce service.");
}

function centeredPopup(page,largeur,hauteur,options) {
	  var top=(screen.height-hauteur)/2;
	  var left=(screen.width-largeur)/2;
	  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
	}
