/////////////////////////////////DEBUT FLASH /////////////////////////////////////
function LinkSite(Url)
    {
    document.location=Url;
    }

function StopTimerFlash()
	{
	window.clearTimeout(TimerFlash); 
	}
	
function Flash(Num)
	{
	window.clearTimeout(TimerFlash);
	document.aspnetForm.NumFlash.value=Num;
	if('-'+parseInt(document.aspnetForm.HeightFlash.value)+'px'==document.getElementById('SsDefileFlash').style.top)
		{
		document.getElementById('SsDefileFlash').style.top=0;
		Flash(1);
		}
	else
		{
		document.getElementById('SsDefileFlash').style.top=parseFloat(document.getElementById('SsDefileFlash').style.top.replace('px',''))-1;
		if(document.getElementById('SsDefileFlash').style.top!='-'+Num*30+'px')
			{
			TimerFlash=setTimeout("Flash("+Num+");",50);
			}
		else
			{
			window.clearTimeout(TimerFlash);
			document.aspnetForm.NumFlash.value=parseInt(Num+1);
			TimerFlash=setTimeout("Flash("+document.aspnetForm.NumFlash.value+");",2000);
			}	
		}		
	}
	
function TimerFlash()
	{
	window.clearTimeout(TimerFlash);
	document.aspnetForm.HeightFlash.value=getHeight('TableContenerFlash');
	getObj('SsDefileFlash2').innerHTML=getObj('SsDefileFlash').innerHTML.replace('<div Id="SsDefileFlash2" style="Position:absolute;visibility:visible;left:0px;top:0px;"></div>','');
	TimerFlash=setTimeout("Flash(1);",2000);
	}

function RelanceTimerFlash()
	{
	window.clearTimeout(TimerFlash);
	if(document.aspnetForm.NumFlash.value=='')
	    {
	    Flash(1);
	    }
	else
	    {
	    Flash(document.aspnetForm.NumFlash.value);
        }
	}	

/////////////////////////////////FIN FLASH/////////////////////////////////////	
function cacher(lelay)
{
	if(getObj(lelay))
		{
		var oLelay;
		oLelay= getObj(lelay)
		oLelay.style.visibility="hidden";
	}
	else
		{
		setTimeout("cacher("+lelay+");",500);
		}
}