/* Variables globales */
		var ran_number=Math.round(Math.random()*100000); 
  	var iPosX=0;
  	var iPosY=0;
/* End var globales */

function afficheNav(swfSource, xmlUrl, currentItem, comm)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="70" id="nav" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=FlashVars value="xmlUrl='+xmlUrl+'&currentItem='+ currentItem +'&user='+ comm +'">');
	document.write('<embed src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF  width="1004" height="70" name="illustration" salign="LT" flashvars="xmlUrl='+xmlUrl+'&currentItem='+currentItem+'&user='+ comm +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheIllustration(swfSource, xmlUrl, textesXmlUrl, width, height)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="nav" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="xmlUrl='+xmlUrl+'&textesXmlUrl='+textesXmlUrl+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="'+width+'" height="'+height+'" name="illustration" salign="LT" flashvars="xmlUrl='+xmlUrl+'&textesXmlUrl='+textesXmlUrl+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheTitreHome(swfSource, width , height, titre, txt1, link1, txt2, link2, txt3, link3)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="illustration" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="titre='+titre+'&txt1='+ txt1+'&link1='+ link1+'&txt2='+ txt2+'&link2='+ link2+'&txt3='+txt3 +'&link3='+ link3+'&width=' + width + '&height=' + height + '">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="false" scale=noscale bgcolor=#FFFFFF width="'+width+'" height="'+height+'" name="illustration" salign="LT" flashvars="titre='+titre+'&txt1='+ txt1+'&link1='+ link1+'&txt2='+ txt2+'&link2='+ link2+'&txt3='+txt3 +'&link3='+ link3+'&width=' + width + '&height=' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheTitreNews(swfSource, width , height, titre, txt1, txt2)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="illustration" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="titre='+titre+'&txt1='+txt1+'&txt2='+txt2+'&width=' + width + '&height=' + height + '">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="false" scale=noscale bgcolor=#FFFFFF  width="'+width+'" height="'+height+'" name="illustration" salign="LT" flashvars="titre='+titre+'&txt1='+txt1+'&txt2='+txt2+'&width=' + width + '&height=' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheTitreNewsList(swfSource, width , height, titre, txt1, txt2, link2, txt3, link3)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="illustration" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noScale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="titre='+titre+'&txt1='+ txt1+'&txt2='+ txt2+'&link2='+ link2+'&txt3='+txt3 +'&link3='+ link3+'&width=' + width + '&height=' + height + '">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="false" scale=noscale bgcolor=#FFFFFF  width="'+width+'" height="'+height+'" name="illustration" salign="LT" flashvars="titre='+titre+'&txt1='+ txt1+'&txt2='+ txt2+'&link2='+ link2+'&txt3='+txt3 +'&link3='+ link3+'&width=' + width + '&height=' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}
function afficheEncart(swfSource, lg, xmlUrl, width, height)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="nav" align="">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<param name=menu value=false>');
	document.write('<param name=FlashVars value="xmlUrl='+xmlUrl+'&lg='+ lg +'&width='+ width + '&height=' + height + '">');
	document.write('<embed src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="'+width+'" height="'+height+'" name="illustration" salign="LT" flashvars="xmlUrl='+xmlUrl+'&lg='+ lg+'&width='+ width + '&height=' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheThumbVertical(swfSource, mediaUrl, popUpUrl, lg){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="65" height="94" id="thumbV" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="mediaUrl='+mediaUrl+'&popUpUrl='+popUpUrl+'&lg='+lg+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="65" height="94" name="illustration" salign="LT" flashvars="mediaUrl='+mediaUrl+'&popUpUrl='+popUpUrl+'&lg='+lg+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}


function afficheThumbHorizontal(swfSource, mediaUrl, popUpUrl, lg){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="93" height="64" id="thumbH" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="mediaUrl='+mediaUrl+'&popUpUrl='+popUpUrl+'&lg='+lg+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="93" height="64" name="illustration" salign="LT" flashvars="mediaUrl='+mediaUrl+'&popUpUrl='+popUpUrl+'&lg='+lg+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheBigVertical(swfSource, mediaUrl){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="600" id="thumbV" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="mediaUrl='+mediaUrl+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="400" height="600" name="illustration" salign="LT" flashvars="mediaUrl='+mediaUrl+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}


function afficheBigHorizontal(swfSource, mediaUrl){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="600" height="400" id="thumbH" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="mediaUrl='+mediaUrl+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="600" height="400" name="illustration" salign="LT" flashvars="mediaUrl='+mediaUrl+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheCountDown(swfSource, lg)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="358" height="60" id="thumbH" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="lg='+lg+'">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" flashvars="lg='+lg+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="358" height="60" name="illustration" salign="LT" flashvars="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheVdoHome(swfSource)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="458" height="308" id="thumbH" align="middle">');				
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=best>');
	document.write('<param name=scale value=noscale>');
	document.write('<param name=salign value=LT>');
	document.write('<param name=bgcolor value=#F4F6F7>');
	document.write('<param name=menu value=false>');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name=FlashVars value="">');
	document.write('<embed wmode="transparent" src="'+swfSource+'" quality=high menu="FALSE" scale=noscale bgcolor=#FFFFFF width="458" height="308" name="illustration" salign="LT" flashvars="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function afficheLaunch(lg){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="582" id="mainFlash" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/snippets3/launch/main.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name=FlashVars value="lg='+lg+'">');
	document.write('<param name="base" value="/snippets3/launch" />');	
	document.write('<embed src="/snippets3/launch/main.swf" swliveconnect="true" base="/snippets3/launch" flashVars="lg='+lg+'" quality="high" bgcolor="#ffffff" width="1004" height="582" name="mainFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	movie = InternetExplorer ? mainFlash : document.embeds[0];
}
function afficheClub(lg){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="582" id="Club2006_uk" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/snippets3/club/Club2006.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#cccccc" />');
	document.write('<param name="flashVars" value="lg='+ lg+'"/>');
	document.write('<param name="base" value="/snippets3/club/" />');
	document.write('<embed src="/snippets3/club/Club2006.swf" base="/snippets3/club/" flashVars="lg='+ lg+'" quality="high" bgcolor="#cccccc" width="1004" height="582" name="Club2006" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function afficheRaceControl(lg, idgp, c, ad){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="582" id="main" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/snippets3/flash/raceContainer.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name=menu value=false>');
	document.write('<param name="flashVars" value="lg='+lg+'&idgp='+idgp+'&c='+c+'&ad='+ad+'" />');
	document.write('<embed src="/snippets3/flash/raceContainer.swf" flashVars="lg='+lg+'&idgp='+idgp+'&c='+c+'&ad='+ad+'" menu="false" quality="high" bgcolor="#ffffff" width="1004" height="582" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function afficheGames(surl, profil, sNom, sEmail, lang){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="582" id="main" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+surl+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name=menu value=false>');
	document.write('<param name="flashVars" value="lang='+lang+'&profil='+profil+'&sNom='+sNom+'&sEmail='+sEmail+'" />');
	document.write('<embed src="'+surl+'" flashVars="lang='+lang+'&profil='+profil+'&sNom='+sNom+'&sEmail='+sEmail+'" menu="false" quality="high" bgcolor="#ffffff" width="1004" height="582" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function afficheFlashPlayer(url_dico, keyword, tcm, onglet, ongtype1, ongtype2, ongtype3, ongtype4, profil, sNom, sEmail, url_page, ad){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="336" HEIGHT="488" id="flashPlayer" ALIGN="">');
 	document.write('<param name=movie value="/snippets3/flash/flashPlayer.swf">');
 	document.write('<param name=quality value=high>');
 	document.write('<param name=bgcolor value=#FFFFFF>');
 	document.write('<param name=menu value=false>');
 	document.write('<param name=wmode value=transparent>');
 	document.write('<param name=FlashVars value="lc_id='+ ran_number +'&url_dico='+ url_dico +'&keyword='+ keyword +'&tcm='+ tcm +'&onglet='+ onglet +'&ongtype1='+ ongtype1 +'&ongtype2='+ ongtype2 +'&ongtype3='+ ongtype3 +'&ongtype4='+ ongtype4 +'&profil='+ profil +'&url_page='+ url_page +'&sNom='+ sNom +'&sEmail='+ sEmail +'&ad='+ ad +'">');
 	document.write('<embed src="/snippets3/flash/flashPlayer.swf" wmode="transparent" quality="high" bgcolor=#FFFFFF MENU="FALSE" WIDTH="336" HEIGHT="488" name="flashPlayer" ALIGN="" flashvars="lc_id='+ ran_number +'&url_dico='+ url_dico +'&keyword='+ keyword +'&tcm='+ tcm +'&onglet='+ onglet +'&ongtype1='+ ongtype1 +'&ongtype2='+ ongtype2 +'&ongtype3='+ ongtype3 +'&ongtype4='+ ongtype4+'&profil='+ profil+'&url_page='+ url_page+'&ad='+ ad+'&sNom='+ sNom+'&sEmail='+ sEmail+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');	
}

function afficheFlashPlayerExpand(){

}


function afficheFlashPlayerHome(url_dico, onglet, profil, ongtype1, timer1, ongtype2, timer2, ongtype3, timer3, ongtype4, timer4){
    document.write('<object id="mainFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="336" HEIGHT="324" id="flashPlayer" ALIGN="">');
     document.write('<param name=movie value="/snippets3/flash/flashPlayer_home.swf">');
     document.write('<param name=quality value=high>');
     document.write('<param name=bgcolor value=#FFFFFF>');
     document.write('<param name=menu value=false>');
     document.write('<param name=FlashVars value="url_dico='+ url_dico+'&profil='+ profil +'&onglet='+ onglet +'&ongtype1='+ongtype1 +'&ongtype2='+ ongtype2 +'&ongtype3='+ ongtype3 +'&ongtype4='+ongtype4 +'&timer1='+timer1 +'&timer2='+timer2 +'&timer3='+timer3 +'&timer4='+timer4 +'">');
     document.write('<embed src="/snippets3/flash/flashPlayer_home.swf" quality="high" bgcolor=#FFFFFF MENU="FALSE" WIDTH="336" HEIGHT="324" name="flashPlayer" ALIGN="" flashvars="url_dico='+ url_dico+'&onglet='+ onglet +'&profil='+ profil +'&ongtype1='+ongtype1 +'&ongtype2='+ ongtype2 +'&ongtype3='+ ongtype3 +'&ongtype4='+ongtype4+'&timer1='+timer1+'&timer2='+timer2+'&timer3='+timer3+'&timer4='+timer4+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object>');    
}

function afficheFlashFullsize(url_dico, onglet, urlsearch, results){
    document.write('<object id="mainFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="1000" HEIGHT="320" id="flashPlayer" ALIGN="">');
     document.write('<param name=movie value="/snippets3/flash/flashPlayer_fullsize.swf">');
     document.write('<param name=quality value=high>');
     document.write('<param name=bgcolor value=#FFFFFF>');
     document.write('<param name=menu value=false>');
     document.write('<param name=FlashVars value="url_dico='+ url_dico+'&onglet='+ onglet +'&urlsearch='+urlsearch +'&results='+ results +'">');
     document.write('<embed src="/snippets3/flash/flashPlayer_fullsize.swf" quality=high bgcolor=#FFFFFF MENU="FALSE" WIDTH="1000" HEIGHT="320" name="flashPlayer" ALIGN="" flashvars="url_dico='+ url_dico+'&onglet='+ onglet +'&urlsearch='+urlsearch +'&results='+ results+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object>');    
}
function afficheRoadShow(lg){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0"  height="582"  width="1004">');
	document.write('<param name="movie" value="/snippets2/roadshow/main.swf?lg=en&path=/snippets2/roadshow/">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="scale" value="noscale">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="flashVars" value="lg='+lg+'">');
	document.write('<param name="base" value="/snippets2/roadshow/">');	
	document.write('<embed src="/snippets2/roadshow/main.swf" base="/snippets2/roadshow/" flashVars="lg='+lg+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"  height="582"  width="1004" SCALE="noscale">');
	document.write('</embed></object>');

}
function afficheSearch(query){
	document.write('<object id="mainFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="793" HEIGHT="163" id="flashPlayer" ALIGN="">');
	document.write('<param name=movie value="/snippets3/flash/searchCombo.swf?">');
	document.write('<param name=quality value=high>');
	document.write('<param name=menu value=false>');
  document.write('<param name=flashVars value="query='+ query+'">');
	document.write('<embed src="/snippets3/flash/searchCombo.swf" flashVars="query='+ query+'" quality=high MENU="FALSE" WIDTH="793" HEIGHT="163" name="flashPlayer" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

function initLayer(posx, posy) {
  	iPosX = posx;
  	iPosY = posy-1;
  	
  	var txt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="100%" id="flashExpand" ALIGN="">';
 		txt += '<param name=movie value="/snippets3/flash/flashPlayer_Expand.swf">';
 		txt += '<param name=quality value=high>';
	 	txt += '<param name=bgcolor value=#FFFFFF>';
	 	txt += '<param name=menu value=false>';
	 	txt += '<param name=FlashVars value="lc_id='+ ran_number +'">';
 		txt += '<param name=wmode value=transparent>';
 	  txt += '<embed src="/snippets3/flash/flashPlayer_Expand.swf" flashvars="lc_id='+ ran_number +'" wmode="transparent" quality="high" bgcolor=#FFFFFF MENU="FALSE" WIDTH="100%" HEIGHT="100%" name="flashExpand" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>';
		txt += '</object>';	
		
		var ie4 = (document.all) ? true : false;
		var ns4 = (document.layers) ? true : false;
		var ns6 = (document.getElementById && !document.all) ? true : false;
		if (ie4) {
			var mydiv = document.all["calque0"];
		}
		if (ns4) {
			var mydiv = document.layers["calque0"];
		}
		if (ns6) {
			var mydiv = document.getElementById("calque0");
		}
		
		mydiv.innerHTML = txt;
}

function initLayerXpand() {
		var posX = 0;
		var ie4 = (document.all) ? true : false;
		var ns4 = (document.layers) ? true : false;
		var ns6 = (document.getElementById && !document.all) ? true : false;
  	
  	if (self.innerWidth) windowWidth = self.innerWidth;
		else if (document.documentElement && document.documentElement.clientWidth) windowWidth = document.documentElement.clientWidth;
		else if (document.body) windowWidth = document.body.clientWidth;
		
		if (ns4) posX = ((windowWidth - 16) / 2) - iPosX;
		else  posX = (windowWidth / 2) - iPosX;
		
		if (posX<254)posX=254;
			
		if (ie4) {
			document.all["calque0"].style.left = posX;
			document.all["calque0"].style.top = iPosY;
			document.all["calque0"].style.height = "582px";
		}
		if (ns4) {
			document.layers["calque0"].left = posX;
			document.layers["calque0"].top = iPosY;
			document.layers["calque0"].height = "582px";
		}
		if (ns6) {
			document.getElementById("calque0").style.left = posX;
			document.getElementById("calque0").style.top = iPosY;
			document.getElementById("calque0").style.height = "582px";
		}

		maskLayer();
}

function maskLayer() {
	var ie4 = (document.all) ? true : false;
	var ns4 = (document.layers) ? true : false;
	var ns6 = (document.getElementById && !document.all) ? true : false;
	if (ie4) document.all["calque0"].style.visibility = "hidden";
	if (ns4) document.layers["calque0"].visibility = "hide";
	if (ns6) document.getElementById("calque0").style.visibility = "hidden";
}
		  
function showLayer() {
	var ie4 = (document.all) ? true : false;
	var ns4 = (document.layers) ? true : false;
	var ns6 = (document.getElementById && !document.all) ? true : false;
	if (ie4) {
		document.all["calque0"].style.visibility = "visible";
	}	else if (ns4) {
		document.layers["calque0"].visibility = "visible";
	}	else if (ns6) {
		document.getElementById("calque0").style.visibility = "visible";
	}	else {
		document.all["calque0"].style.visibility = "visible";
	}
}

function redrawLayer() {

  	var ie4 = (document.all) ? true : false;
		var ns4 = (document.layers) ? true : false;
		var ns6 = (document.getElementById && !document.all) ? true : false;
		
  	if (self.innerWidth) windowWidth = self.innerWidth;
		else if (document.documentElement && document.documentElement.clientWidth) windowWidth = document.documentElement.clientWidth;
		else if (document.body) windowWidth = document.body.clientWidth;
		if (ns4) posX = ((windowWidth - 16) / 2) - iPosX;
		else  posX = (windowWidth / 2) - iPosX;
		
		if (posX<254) posX=254;
		
		if (ie4) {
			document.all["calque0"].style.left = posX;
			document.all["calque0"].style.top = iPosY;
			
		}
		if (ns4) {
			document.layers["calque0"].left = posX;
			document.layers["calque0"].top = iPosY;
			
		}
		if (ns6) {
			document.getElementById("calque0").style.left = posX;
			document.getElementById("calque0").style.top = iPosY;
		}

}

function openWindow(url,nom,larg,haut) {
	newWin=open(url,nom,'"width=' + larg + ',height=' + haut + ',status=no,toolbar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no"');
	newWin.moveTo((screen.width-larg)/2,(screen.height-haut)/2-18);
	newWin.focus();
}

function sitestat(ns_l){
	//window.alert (ns_l);
	ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
	ns_0=document.referrer; 
	ns_0=(ns_0.lastIndexOf("/")==ns_0.length-1)?ns_0.substring(ns_0.lastIndexOf("/"),0):ns_0;
	if(ns_0.length>0)ns_l+="&ns_referrer="+escape(ns_0);
	if(document.images){ns_1=new Image();ns_1.src=ns_l;}else 
	document.write("<img src="+ns_l+" width=1 height=1>");
}

