if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"_\" name=\""+this.getAttribute("id")+"_\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"_\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;}
	,write:function(_20){
			if(this.getAttribute("useExpressInstall")){
				var _21=new deconcept.PlayerVersion([6,0,65]);
				if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
					this.setAttribute("doExpressInstall",true);
					this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
					document.title=document.title.slice(0,47)+" - Flash Player Installation";
					this.addVariable("MMdoctitle",document.title);
				}
			}
			if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
				var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();
				return true;
			}
			else{
				if(this.getAttribute("redirectUrl")!=""){
					document.location.replace(this.getAttribute("redirectUrl"));
				}
			}
			return false;
		}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;	


function init_module(NameConteneurSWF,urlSWF,urlXML,WidthInit,HeightInit){
	var so = new SWFObject(urlSWF+"?t="+new Date().getTime() + Math.random(0,6556565656565),NameConteneurSWF, '100%', '100%', '9.0', '#ffffff');
	so.addParam("FlashVars", "Xscale="+WidthInit+"&Yscale="+HeightInit+"&path="+urlXML);//Homothétie de départ : valeur comprise entre 0 et 1
	so.addParam('scale', 'noscale');
	so.addParam('salign','lt');
	so.addParam('allowScriptAccess','sameDomain');
	so.addParam('allowfullscreen', 'true');
	so.addParam('wmode', 'transparent');
	so.write(NameConteneurSWF);
}

var navIe=(navigator.userAgent.search(/(MSIE)/gm)>0) ;

 function getPositionLeft (obj) { var curleft = 0;if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		while (obj = obj.offsetParent) curleft +=parseInt( obj.offsetLeft);}
		return curleft;}

function getPositionTop (obj) {var curtop = 0;if (obj.offsetParent) {
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) curtop += parseInt(obj.offsetTop);}
		return curtop;	}

 function getPositionHeight (obj) {return parseInt( obj.offsetHeight);}
 function getPositionWidth (obj) {return 	parseInt(obj.offsetWidth);}
 
function opacity( obj,val){        
if(document.all && !window.opera){ if(obj) obj.style.filter = "alpha(opacity=" + (val*100)+ ")";  }else  { if(obj)obj.style.opacity=val ;return null}
}



 

/*	var val=val*100;
	var opacityVal;var ValFade;

	var opacDeb=(IeFade) ? Number(parseFloat( obj.style.filter)): opacDeb=Number(parseInt(obj.style.opacity*100));
	if(opacDeb>val) opacityVal=1;else opacityVal =-1; ValFade=val-opacityVal;
   var InterValOpac=setInterval(function(){ 
										// if((ValFade==val  && opacityVal<0) || (ValFade==val && opacityVal>0 ))  {clearTimeout(InterValOpac);return ;}
										ValFade+=opacityVal;
										 if(navIe) obj.style.filter="alpha(opacity=" + ValFade+ ")";else obj.style.opacity=(ValFade/100).toFixed(2);},100)*/




//alert("object : "+objet+"\n min : "+min)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////:




var ElmtObj=new Object();
ElmtObj=function (objet){this.InterValOpac; this.obj= objet;}
	
ElmtObj.prototype.fade=function (min){ 
var obj=this.obj;
	if(this.InterValOpac!=null)	clearTimeout(this.InterValOpac);
var min=min*100 ,up,opacite;
max =opacite=(navIe) ?  (parseInt(obj.style.filter.match(/\d+/)[0])):parseFloat(obj.style.opacity*100);
up =(min>max  )
this.InterValOpac=setInterval(function (){		
				if (up)opacite+=20;else opacite-=20;	
				if ((opacite<=max && up) || (opacite>=max && !up) || (opacite>min && up) ||  (opacite<min && !up) ) {clearTimeout(this.InterValOpac);return  true}	
				//obj.filters[0].opacity=opacite;
if(navIe) obj.style.filter="alpha(opacity=" +opacite.toString()+")";else obj.style.opacity=Number((opacite/100).toFixed(2));},10)
	}
//-----------------------------


ElmtObj.prototype.MorphWidth=function (val){ 	if(this.InterValWidth!=null)	clearTimeout(this.InterValWidth);
var obj=this.obj,up,max,Width;
max =Width=parseFloat(obj.style.width);up =(val>max  )
this.InterValWidth=setInterval(function (){		
				if (up) Width+=20;else Width-=20;	
				if ((Width<=max && up) || (Width>=max && !up) || (Width>val && up) ||  (Width<val && !up) ) {clearTimeout(this.InterValWidth);return  true}	
obj.style.width=Number(Width)+"px";},5)
	}
	
ElmtObj.prototype.MorphHeight=function (val){ 	if(this.InterValHeight!=null)	clearTimeout(this.InterValHeight);
var obj=this.obj,up,max,Height;
max =Height=parseFloat(obj.style.height);up =(val>max  )
this.InterValHeight=setInterval(function (){		
				if (up) Height+=20;else Height-=20;	
				if ((Height<=max && up) || (Height>=max && !up) || (Height>val && up) ||  (Height<val && !up) ) {clearTimeout(this.InterValHeight);return true}	
obj.style.height=Number(Height)+"px";},5)
	}

ElmtObj.prototype.FadeBgColor=function (val){ 	if(this.InterValBgColor!=null)	clearTimeout(this.InterValBgColor);
var obj=this.obj,up,max;
max =BgColor=parseFloat(obj.style.backgroundColor);up =(val>max  )
this.InterValBgColor=setInterval(function (){		
				if (up) BgColor+=1;else BgColor-=1;	
				if ((BgColor<=max && up) || (BgColor>=max && !up) || (BgColor>val && up) ||  (BgColor<val && !up) ) {clearTimeout(this.InterValBgColor);return  true}	
obj.style.backgroundColor=Number(BgColor)+"px";},10)
	}


function CallEnd(){
for(var i=0;i<arguments.length;i++);


	
}

function returnSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  var result = new Array(myWidth,myHeight);
  return result;
 }


function windowCenter(myId) {
	result=returnSize();
	var myWidth=result[0];
	var myHeight=result[1];
	var elementWidth=document.getElementById(myId).offsetWidth;
	var elementHeight=document.getElementById(myId).offsetHeight;
        var myScrollLeft=document.documentElement.scrollLeft;
	var myScrollTop=document.documentElement.scrollTop;
	//alert(myScrollLeft+'/'+myWidth+'/'+(myWidth/2)+'/'+(elementWidth/2));
	var posX=myScrollLeft+myWidth-myWidth/2-elementWidth/2
	var posY=myScrollTop+myHeight-myHeight/2-elementHeight/2;
	if(posY<myScrollTop) posY = myScrollTop+20;
	document.getElementById(myId).style.left=posX+"px";
	document.getElementById(myId).style.top=posY+"px";
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Key(e) {return e.which || event.keyCode;}
function DetachEvent(obj,Event,funct,propag){if (document.addEventListener!=null  )  obj.removeEventListener(Event,funct,((!propag) ? true:false));  else if(document.attachEvent!=null) {if(event && !propag) event.cancelBubble = true;obj.detachEvent("on"+Event,funct);}   }
function AttachEvent(obj,Event,funct,propag){if (document.addEventListener!=null  )  obj.addEventListener(Event,funct,((!propag) ? true:false));  else if(document.attachEvent!=null) {if(event && !propag  ) event.cancelBubble = true;obj.attachEvent("on"+Event,funct);}   } 
function StopPropag(e){ if (e.stopPropagation)   e.stopPropagation();else  if(event) event.cancelBubble = true;}
 function PrevDefault(e) { if (e.preventDefault)  e.preventDefault();else  if(event) event.returnValue = false;}
 function target(e) {return e.target || event.srcElement;}
 function posYMouse(e){return e.pageY || event.clientY;}
  function posXMouse(e){return e.pageX || event.clientX;}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var doss="function-player_fullscreen";
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FullscreenPlayerFLV(UrlFlv,SeekFlv,WidthFlv ,HeightFlv,urlVideocc,urlVideoImg,urlSpotFLV,VolumeDepart,opacity_Play_Pause_Vol,palier){
if(!VolumeDepart)	var VolumeDepart=100;
if(!opacity_Play_Pause_Vol) var	opacity_Play_Pause_Vol=0.85;
if(!palier)var	palier=5;	
var scaleFlv=2; 
if(!WidthFlv) var WidthFlv =320;//valeur par defaut
if(!HeightFlv)  var HeightFlv=240;
var Border_Play_Pause_Vol='1px solid #555555';
result=returnSize();
	var myHeight2=result[1];
	var myScrollTop=document.documentElement.scrollTop;
	//alert(myScrollLeft+'/'+myWidth+'/'+(myWidth/2)+'/'+(elementWidth/2));
	var myHeight=(myScrollTop+myHeight2)-((myHeight2+myScrollTop/2)-240);
 
 //alert(Menu_Top);

var cache=document.createElement('div');
cache.id="cache";cache.style.cssText="position:absolute;height:"+(document.documentElement.scrollTop+result[1])+"px;top:0px;left:0px;width:"+((navIe)? "101.5%":"100%")+";background-color:#000000;opacity:"+0.85+";filter:alpha(opacity="+85+");z-index:995;"
document.body.appendChild(cache); 

	var myWidth=(result[0]/2)-320;
	//var myHeight=(result[1]/2)-240;
var div=document.createElement('div');div.id='PLAYER_FULLSCREEN';div.align="center";
div.style.cssText="position:absolute;left:"+myWidth+"px;top:"+myHeight+"px;height:480px;text-align:center;width:640px;z-index:997;opacity:1 ;filter:alpha(opacity=100);background-color:transparent;background-image:url("+doss+"/preload.gif"+");background-position:center;background-repeat:no-repeat";

var Contslider=document.createElement('div');Contslider.id="slider";
Contslider.style.cssText="position:absolute;bottom:10px;right:20px;float:right;height:162px;width:20px;z-index:998;opacity:0;filter:alpha(opacity=0);background-color:#000000;border:"+Border_Play_Pause_Vol+"";


var slider=document.createElement('div');slider.id="sliderVolume";
slider.style.cssText="position:relative;top:"+parseInt(154-(154*(VolumeDepart/100)))+"px;right:0px;height:6px;width:19px;z-index:999;opacity:0;filter:alpha(opacity=0);background-color:#aaaaaa";

var PlayPause=document.createElement('div'); PlayPause.id='PlayPause';
PlayPause.style.cssText="position:absolute;top:10px;right:20px;height:50px;width:50px;z-index:999;opacity:0;filter:alpha(opacity=0);background-color:#000000;border:"+Border_Play_Pause_Vol+"";

var Fermeture = document.createElement('div'); Fermeture.id='Closed_player';
Fermeture.innerHTML=" ";
Fermeture.className="Closed_overlay_player";
Fermeture.style.zIndex="999";

//////////////////////////////////////:
//var Time=new ElmtObj('div', {'id':'Time','styles': {'position':'absolute','top':3,'right':80,'height':15,'width':25,'z-index':4,'opacity':0.85,'background-color':'#000000','font-size':10,'color':'#ff0000','border':Border_Play_Pause_Vol}});
//////////////////////////////////////
document.body.appendChild(div); 
//windowCenter('PLAYER_FULLSCREEN');
var nocache=new Date();
	var plfullScreen = new SWFObject('http://afp-cache.dns-epice.com/modules/slideshow/player_flv_maxi.swf?'+nocache.getTime(), 'PLAYER_FULLSCREEN',(WidthFlv*scaleFlv).toFixed(2)+ 'px',( HeightFlv*scaleFlv).toFixed(2)+'px',  '9.0','#ffffff');//Pou affecter la couleur de fond  alors wmode="opaque"
			plfullScreen.addParam("FlashVars", "flv="+UrlFlv+"&amp;autoplay=1&amp;showstop=1&amp;showvolume=1&amp;showtime=1&amp;showfullscreen=1");
			plfullScreen.addParam("scale", "noscale");
			plfullScreen.addParam("salign","lt");
			plfullScreen.addParam("allowScriptAccess","always");
			plfullScreen.addParam('allowfullscreen', 'true');
            plfullScreen.write("PLAYER_FULLSCREEN");
//

document.getElementById('PLAYER_FULLSCREEN').style.zIndex="997";
document.getElementById('PLAYER_FULLSCREEN').appendChild(Fermeture);
//document.getElementById('PLAYER_FULLSCREEN').appendChild(PlayPause);//bouton playpause 
////////////////////////////////////////////////////
//Time.appendChild(document.getElementById('PLAYER_FULLSCREEN'));




///////////////////////////////////////////////////////////////

//document.getElementById('slider').appendChild(slider);
var delayPlayPauseToggle;    
//document.getElementById('PLAYER_FULLSCREEN').addEvent('click', function(event){  ;});
var TogglePauseImg=true;
AttachEvent(document.getElementById('cache'),'dblclick', function(e){
																  if(delayPlayPauseToggle) clearTimeout(delayPlayPauseToggle);
																  document.getElementById('PLAYER_FULLSCREEN').parentNode.removeChild(document.getElementById('PLAYER_FULLSCREEN')); 
																	document.getElementById('cache').parentNode.removeChild(document.getElementById('cache'));});
AttachEvent(document.getElementById('Closed_player'),'click', function(e){
																  
																  if(delayPlayPauseToggle) clearTimeout(delayPlayPauseToggle);
																  document.getElementById('PLAYER_FULLSCREEN').parentNode.removeChild(document.getElementById('PLAYER_FULLSCREEN')); 
																	document.getElementById('cache').parentNode.removeChild(document.getElementById('cache'));});

AttachEvent(document,'keydown', function(e){  
										 
if (Key(e)== 27)  {if(delayPlayPauseToggle) clearTimeout(delayPlayPauseToggle);
if(document.getElementById('PLAYER_FULLSCREEN')) document.getElementById('PLAYER_FULLSCREEN').parentNode.removeChild(document.getElementById('PLAYER_FULLSCREEN')); 
if(document.getElementById('cache'))  document.getElementById('cache').parentNode.removeChild(document.getElementById('cache'));}

if (Key(e)== (' ').charCodeAt(0))  {TogglePauseImg=!TogglePauseImg; 
if(delayPlayPauseToggle) clearTimeout(delayPlayPauseToggle);
if(document.getElementById('PLAYER_FULLSCREEN_') && TogglePauseImg==true) {document.getElementById('PLAYER_FULLSCREEN_').Resume();
document.getElementById('PlayPause').style.backgroundImage='url('+doss+'/play.gif)';
delayPlayPauseToggle=setTimeout(	function () {
											  if(document.getElementById('PlayPause') && TogglePauseImg==true){var objfade=new ElmtObj(document.getElementById('PlayPause'));objfade.fade(0);}clearTimeout(delayPlayPauseToggle);
																		},3000);}
else if(document.getElementById('PLAYER_FULLSCREEN_') && TogglePauseImg==false) {document.getElementById('PLAYER_FULLSCREEN_').Pause();//pause (du player flash)
document.getElementById('PlayPause').style.backgroundImage='url('+doss+'/pause.gif)';}
 if( document.getElementById('PlayPause')) opacity(document.getElementById('PlayPause'),opacity_Play_Pause_Vol);}
 }); 

		
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//setInterval(function BufferLength(tps){document.getElementById('Time').innerHTML=tps;},10);

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FullscreenPlayerSWF(swfUrl,linkURL,WidthSwf ,HeightSwf,title) 
{
	var scaleSWF=2;
	var closeMedia='fermer';
	if(!WidthSwf ) var WidthSwf =352;//valeur par defaut
	if(!HeightSwf)  var HeightSwf=288;//valeur par defaut	
var cache=document.createElement('div');cache.id="cache";cache.style.cssText="position:absolute;height:100%;top:0px;left:0px;width:"+((navIe)? "101.5%":"100%")+";background-color:#000000;opacity:"+0.85+";filter:alpha(opacity="+85+");z-index:1;"
document.body.appendChild(cache); 
var divswf=document.createElement('div');divswf.id="SWF_FULL";divswf.align='center';
divswf.style.cssText="position:absolute;height:70%;text-align:center;padding-top:5%;width:100%;z-index:2;opacity:1;margin-top:auto;margin-bottom:auto;background-image:url("+doss+"/preload.gif);background-position:center;background-repeat:no-repeat;z-index:2";
document.body.appendChild(divswf);
var imgFerm=document.createElement('img');imgFerm.src=doss+"/closelabel.gif";imgFerm.alt="";imgFerm.title=closeMedia;
imgFerm.style.cssText="position:absolute;opacity:0;filter:alpha(opacity=0);z-index:2;width:67px";
AttachEvent(imgFerm,'click', function(e){  if(document.getElementById('SWF_FULL') && (target(e).id!="SWF_FULL") )  document.getElementById('SWF_FULL').parentNode.removeChild(document.getElementById('SWF_FULL'));  document.getElementById('cache').parentNode.removeChild(document.getElementById('cache')); });
var nocache=new Date();
 var swfScreen = new SWFObject('/modules/slideshow/PLAYER_FULLSCREEN.swf?'+nocache.getTime(), 'SWF_FULL',(WidthSwf*scaleSWF).toFixed(2)+ 'px',( HeightSwf*scaleSWF).toFixed(2)+'px', '9.0','#ffffff');//rappot 352/288 (dim du swf)
         swfScreen.addParam("FlashVars", "UrlFlv="+swfUrl);
		swfScreen.addParam("wmode","transparent");
		swfScreen.addParam("scale", "noscale");
		swfScreen.addParam("allowScriptAccess","sameDomain");
		swfScreen.addParam('allowfullscreen', 'true');
		swfScreen.write("SWF_FULL");
		imgFerm.style.margin='5px';imgFerm.style.top="0px";imgFerm.style.right="0px";
document.getElementById('SWF_FULL').style.zIndex="2";
document.getElementById('SWF_FULL').style.border="1px solid #222222";
document.getElementById('SWF_FULL').style.left=document.getElementById('SWF_FULL_').offsetLeft+ 'px';
document.getElementById('SWF_FULL').style.top=document.getElementById('SWF_FULL_').offsetTop+ 'px';
document.getElementById('SWF_FULL').style.width=(WidthSwf*scaleSWF).toFixed(2)+ 'px';
document.getElementById('SWF_FULL').style.height=( HeightSwf*scaleSWF).toFixed(2)+'px';
document.getElementById('SWF_FULL').style.paddingTop='0px';
var cachePointer=document.createElement('div');cachePointer.title=title;cachePointer.style.cssText	="position:absolute;z-index:3;height:100%;width:100%;cursor:pointer;top:0px;left:0px;background-image:url("+doss+"/TRANSPARENT.gif)";
document.getElementById('SWF_FULL').appendChild(cachePointer);
AttachEvent(cachePointer,'click', function(e){if(target(e)==cachePointer )window.open(linkURL)});
var objfade=new ElmtObj(imgFerm);objfade.fade(1) ;
cachePointer.appendChild(imgFerm);
AttachEvent(document.getElementById('cache'),'dblclick', function(e){if (document.getElementById('SWF_FULL')) document.getElementById('SWF_FULL').parentNode.removeChild(document.getElementById('SWF_FULL')); document.getElementById('cache').parentNode.removeChild(document.getElementById('cache'));});

AttachEvent(document,'keydown', function(e){  if (Key(e)== 27)  {if (document.getElementById('SWF_FULL'))document.getElementById('SWF_FULL').parentNode.removeChild(document.getElementById('SWF_FULL')); document.getElementById('cache').parentNode.removeChild(document.getElementById('cache'));}});

}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FullscreenIMG(imageUrl,linkURL,title) 
{	


lightbox.startLightBox(imageUrl,title,linkURL);

	
}

function LightBox_Img(imageUrl,linkURL,promptHtml){FullscreenIMG(imageUrl,linkURL,promptHtml);}
function FullScreen_SWF(swfUrl,linkURL,WidthSwf ,HeightSwf ) {FullscreenPlayerSWF(swfUrl,linkURL,WidthSwf ,HeightSwf ,'') ;}
function  FullScreen_FLV(videoUrl,SeekFlv,WidthSwf ,HeightSwf,urlVideocc,urlVideoImg,urlSpotFLV){FullscreenPlayerFLV(videoUrl,SeekFlv,WidthSwf ,HeightSwf,urlVideocc,urlVideoImg,urlSpotFLV,75,0.8,5);}


function Js_dia (id,nb2,sens,force) {
	nb = eval('Js_dia_nb_'+id);
	if (sens=='') {sens=1;}
	window.clearTimeout(window['Js_dia_defil'+id]);
	if (sens==2) {
			script = 'force';
			current = eval('Js_dia_'+id);
			//document.getElementById('slideshow_debug').innerHTML ='Fade : '+current+' ';//alert(current);
			$$$('Js_dia_img_'+id+'_'+current).fade({ duration: 2.0, from: 1, to: 0});
			if($$$('Js_dia_comment_'+id+'_'+current)) {$$$('Js_dia_comment_'+id+'_'+current).fade({ duration: 2.0, from: 1, to: 0});}
			$$$('Js_dia_vignette_'+id+'_'+current).className = 'JsDia_navbar_vignette';
			window['Js_dia_'+id] = parseInt(force);
			//gestion de la barre des vignettes
			centre_bar =$$$('Js_dia_contentvignette_'+id).offsetWidth/2;
			for (i=0;i<force;i++) {
				if(window.getComputedStyle){
				decalage =window.getComputedStyle(document.getElementById('Js_dia_vignette_'+id+'_'+i),null).marginLeft;
				}
				else{
				decalage = document.getElementById('Js_dia_vignette_'+id+'_'+i).currentStyle.marginLeft;
				}
				
				centre_bar = centre_bar-($$$('Js_dia_vignette_'+id+'_'+i).offsetWidth+parseInt(decalage));
			}
			if(window.getComputedStyle){
				decalage =window.getComputedStyle(document.getElementById('Js_dia_vignette_'+id+'_'+force),null).marginLeft;
				}
				else{
				decalage = document.getElementById('Js_dia_vignette_'+id+'_'+force).currentStyle.marginLeft;
				}
			centre_bar = centre_bar-(($$$('Js_dia_vignette_'+id+'_'+force).offsetWidth/2)+parseInt(decalage));
			$$$('Js_dia_vignette_'+id+'_'+force).className = 'JsDia_navbar_vignette_currentview';
			$$$('Js_dia_barvignette_'+id).style.marginLeft = centre_bar+'px';
			//alert (force)
			$$$('Js_dia_img_'+id+'_'+force).appear({ duration: 2.0});
			if($$$('Js_dia_comment_'+id+'_'+force)) {$$$('Js_dia_comment_'+id+'_'+force).appear({ duration: 2.0});}
	} else {
			script = 'non force';
			current = eval('Js_dia_'+id);
			//document.getElementById('slideshow_debug').innerHTML ='Fade : '+current+' ';
			//alert(current);
			$$$('Js_dia_img_'+id+'_'+current).fade({ duration: 2.0, from: 1, to: 0});
			if($$$('Js_dia_comment_'+id+'_'+current)) {$$$('Js_dia_comment_'+id+'_'+current).fade({ duration: 2.0, from: 1, to: 0});}
			$$$('Js_dia_vignette_'+id+'_'+current).className = 'JsDia_navbar_vignette';
			if ((current+sens)>nb) {current=-1;}
			if ((current+sens)<0) {current=nb+1;}
			window['Js_dia_'+id] = parseInt(current+sens);
			//gestion de la barre des vignettes
			centre_bar =$$$('Js_dia_contentvignette_'+id).offsetWidth/2;
			for (i=0;i<current+sens;i++) {
				if(window.getComputedStyle){
				decalage =window.getComputedStyle(document.getElementById('Js_dia_vignette_'+id+'_'+i),null).marginLeft;
				}
				else{
				decalage = document.getElementById('Js_dia_vignette_'+id+'_'+i).currentStyle.marginLeft;
				}
				
				centre_bar = centre_bar-($$$('Js_dia_vignette_'+id+'_'+i).offsetWidth+parseInt(decalage));
			}
			if(window.getComputedStyle){
				decalage =window.getComputedStyle(document.getElementById('Js_dia_vignette_'+id+'_'+(current+sens)),null).marginLeft;
				}
				else{
				decalage = document.getElementById('Js_dia_vignette_'+id+'_'+(current+1)).currentStyle.marginLeft;
				}
			
			centre_bar = centre_bar-(($$$('Js_dia_vignette_'+id+'_'+(current+sens)).offsetWidth/2)+parseInt(decalage));
			$$$('Js_dia_vignette_'+id+'_'+(current+sens)).className = 'JsDia_navbar_vignette_currentview';
			$$$('Js_dia_barvignette_'+id).style.marginLeft = centre_bar+'px';
			$$$('Js_dia_img_'+id+'_'+parseInt(current+sens)).appear({ duration: 2.0});
			if($$$('Js_dia_comment_'+id+'_'+parseInt(current+sens))) {$$$('Js_dia_comment_'+id+'_'+parseInt(current+sens)).appear({ duration: 2.0});}
			
	}
	
	//debug
	//document.getElementById('slideshow_debug').innerHTML = document.getElementById('slideshow_debug').innerHTML+ 'Current :'+eval('Js_dia_'+id)+' sens:'+sens+' script:'+script + ' force:'+force;
	window['Js_dia_defil'+id]=setTimeout("Js_dia ('"+id+"',"+nb+",1,'')",10000);
	
}

function Js_dia_up (id) {
	height_bar = ($$$('JsDia_navbar_bg_'+id).offsetHeight*-1);
	if (current_position== $$$('JsDia_navbar_bg_'+id).offsetHeight) {
	new Effect.Move('JsDia_navbar_bg_'+id, { x: 0, y: height_bar, mode: 'relative' });
	}
}
function Js_dia_down (id) {
	height_bar = $$$('JsDia_navbar_bg_'+id).offsetHeight;
	current_position =parseInt($$$('JsDia_navbar_bg_'+id).style.top);
	if(current_position==0){
	new Effect.Move('JsDia_navbar_bg_'+id, { x: 0, y: height_bar, mode: 'relative' });
	}
}
function Js_dia_zoom (id) {
	title_='';
	linkURL = '';
	current = eval('Js_dia_'+id);
	//title=$$$('Js_dia_img_'+id+'_'+current).title;
	title_=$$$('Js_dia_comment_'+id+'_'+current).innerHTML;
	imageUrl = $$$('Js_dia_img_'+id+'_'+current).title;
	//alert (id+imageUrl+'Js_dia_img_'+id+'_'+current)
	lightbox.startLightBox(imageUrl,title_,linkURL);	
}

