// Module SIFR - Gestion des typographies spéciales ----------------
/*
if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"flash/VAG_Rounded_Light.swf", sColor:"#301138", sLinkColor:"#301138", sBgColor:"#FFFFFF", sHoverColor:"#5a2966", nPaddingTop:0, nPaddingRight:0, nPaddingBottom:0, nPaddingLeft:0, sWmode:"transparent"}));
};
*/

// Carousel ----------------

	$(function() {
			   
		$(".anyClass").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			visible:9
		});
		
		// initialize scrollable 
		$("div.scrollable").scrollable({
			next:"#next",
			prev:"#prev",
			vertical:true,
			clickable:false,
			disabledClass:'disabled',
			size: 3
		});
		$("div.scrollable2").scrollable({
			next:"#next",
			prev:"#prev",
			vertical:true,
			clickable:false,
			disabledClass:'disabled',
			size: 2
		});
		$("#next").click(function(){return false;});
		$("#prev").click(function(){return false;});
		
	});


// goodies ----------------

	var params = {
		quality: "high",
		allowScriptAccess: "always",
		allowfullscreen: true,
		menu: false,
		wmode: "transparent"
	};
	var attributes = {
		id: "myDynamicContent",
		name: "myDynamicContent"
	};
	function loadSwfPlayer(mediaTmp, itemSelectmp, idTheme, file)
	{
		file=encodeURIComponent(file);
		var backgroundEl = document.createElement("div");
		backgroundEl.className = 'containerFullscreen';
		backgroundEl.setAttribute("id","backgroundDiv");
		var playerEl = document.createElement("div");
		playerEl.setAttribute("id","contenorPVideoFlash");
		var contenorFlashEl = document.createElement("div");
		contenorFlashEl.setAttribute("id","PlayerVideoFlash");
		playerEl.className = 'containerPlayerFlash';
		var refEl = document.getElementById("global");
		refEl.appendChild(backgroundEl);
		refEl.appendChild(playerEl);
		playerEl.appendChild(contenorFlashEl);
		var flashvars2 = {xmlFile: file, media: mediaTmp, itemSelect:itemSelectmp, idTheme:idTheme};		
		if (swfobject.getQueryParamValue("itemId")) {
			flashvars2.itemForcer = swfobject.getQueryParamValue("itemId");
		}
		swfobject.embedSWF("flash/playerVideoImg.swf", "PlayerVideoFlash", "712", "650", "9.0.0", "", flashvars2, params, attributes);
	}
