var IMG_SERVER='http://s.tf1.fr';var LOGIN_HOSTNAME = 'login.tf1.fr';var unv_id = 1;var ErrorMgr = {browserIsIE : navigator.userAgent.indexOf("MSIE") != -1,
doOnError : function(msg, url, line) {if(!ErrorMgr.browserIsIE) {return false;}
if(ErrorMgr.showErrorsEnabled()) {return false;}
return true;},
doOnClickSwitch : function(evt) {if(!evt) {evt = window.event;}
if(!evt.ctrlKey || !evt.shiftKey) {return;}
var showErrors = this.showErrorsEnabled();showErrors = !showErrors;setCookie('showErrors', showErrors)
var msg = 'Affichage des erreurs ' + (showErrors?'activé':'désactivé');alert(msg);if(evt.preventDefault) {evt.preventDefault();}
evt.returnValue = false;},
showErrorsEnabled : function() {var showErrors = getCookie('showErrors');if(showErrors == 'Undefined' || showErrors == 'false') {return false;}
return true;}}
window.onerror = ErrorMgr.doOnError;function includeJs(url) {var head = document.getElementsByTagName('head')[0];var script = document.createElement('script');script.setAttribute('src', url);script.setAttribute('type', 'text/javascript');head.appendChild(script);}
function includeJsOnce(url, callback, charset) {if(typeof this.includedJsFiles == 'undefined') {this.includedJsFiles = [];}
var l =  this.includedJsFiles;if(url in l) {if(callback) {if(l[url]) {l[url].push(callback);}else{callback();}}
return;}
l[url] = [];if(callback) {l[url].push(callback);}
var script = document.createElement("script");script.setAttribute('type', 'text/javascript');if(charset) {script.setAttribute('charset', charset);}else{script.setAttribute('charset', 'utf-8');}
script.onload = script.onreadystatechange = function() {if(script.readyState && script.readyState != "loaded" && script.readyState != "complete") {return;}
script.onreadystatechange = script.onload = null;while(l[url].length) {l[url].shift()();}
l[url] = null;};script.setAttribute('src', url);document.getElementsByTagName("head")[0].appendChild(script);}
function gId(id){return document.getElementById(id);}
if(typeof $ == 'undefined') {function $(id) {return document.getElementById(id);}}
function elementWrite(id,htmlCode){var el=gId(id);if(el!=undefined) {el.innerHTML=htmlCode;}}
function setInnerHTML(divContent, html) {divContent.innerHTML = html;var allElements=divContent.getElementsByTagName("*");for(var i=0; i<allElements.length; i++) {if(allElements[i].getAttribute("id")!=null)
allElements[i].id = allElements[i].getAttribute("id");if(allElements[i].getAttribute("name")!=null)
allElements[i].name = allElements[i].getAttribute("name");if(allElements[i].getAttribute("class")!=null)
allElements[i].className = allElements[i].getAttribute("class");}
var allScripts=divContent.getElementsByTagName("script");if(allScripts.length == 0) {htmlTest = html.replace(/\n/gi,"");var expreg = new RegExp("<scri"+"pt[^>]*>(.*)</scr"+"ipt>","gi");var res = htmlTest.match(expreg);if(res != null) {for(var i =0; i < res.length; i++){var lescript = res[i].replace(/<script[^>]*>/gi,"");lescript = lescript.replace(/<\/script[^>]*>/gi,"");eval(lescript);}}}else{for(var indiceAjax=0; indiceAjax<allScripts.length; indiceAjax++) {var s = allScripts[indiceAjax];if(s.src && s.src!="") {eval(getFileContent(s.src));}else{eval(s.innerHTML);}}}}
function getFileContent(url) {try {var xhr=getXMLHttpRequest();xhr.open("GET",url,false);xhr.send(null);} catch(e) { return ""; }
return xhr.responseText;}
function fillElementWithHttpRequest(url, id) {var conteneur = gId(id);if(conteneur == undefined) {return;}
try {var xmlhttp = getXMLHttpRequest();conteneur.innerHTML = "chargement en cours...";xmlhttp.open("GET", url, true);xmlhttp.onreadystatechange = function() {if(xmlhttp.readyState==4) {if(xmlhttp.responseText!=null) {var contenu = xmlhttp.responseText;contenu = contenu.replace(/<\/?body[^>]*>/gi,"");contenu = contenu.replace(/<\/?html>/gi,"");contenu = contenu.replace(/\n/gi,"###");contenu = contenu.replace(/<head>.*<.head>/gi,"");contenu = contenu.replace(/###/gi,"\n");setInnerHTML(conteneur,contenu);}}}
xmlhttp.send(null);} catch(e) {conteneur.innerHTML = "un problème est survenu.";}}
function addEvtListener(obj,evtName,f){if(obj.attachEvent){obj.attachEvent('on'+evtName,f);}else{obj.addEventListener(evtName,f,false);}}
function removeEvtListener(obj,evtName,f){if(obj.detachEvent){obj.detachEvent('on'+evtName,f);}else{obj.removeEventListener(evtName,f,false);}}
function trkUrl(link,type,rub,e,u){r='http://tracking.tf1.fr/img/trk.gif?rdm='+Math.round(Math.random()*2147473647);r+='&rub='+rub+'&type=';if(type==1){r+='int';if(typeof(link)=='object'){url=link.href;if(url!='#' && url.charAt(0)!='/' && url.substring(0,4)!='http'){url='/'+url;}}else{url=link;}}else{r+='ext';if(typeof(link)=='object'){url=link.href;}else{url=link;}}
if(url=='#'){return;}
if(e){r+='&e='+e;}
if(u){r+='&u='+u;}
r+='&url='+escape(url);img=new Image;img.src=r;return;}
function openPopup(u,sn,iw,ih,il,it,im,i2,ito,ist,ir,ilo){if(typeof(u)=='object'){u=u.getAttribute('href');}
var a1="width="+iw+",height="+ih;a1+=",left="+ il +",top="+ it +",directories=0,hotkeys=1";a1+=",menubar="+im +",scrollbars="+i2+",toolbar="+ito+",status="+ist;a1+=",resizable="+ir+",location="+ilo;window.open(u,sn,a1);}
function getCookieVal(offset){var es=document.cookie.indexOf(";",offset);if(es==-1){es=document.cookie.length;}
return unescape(document.cookie.substring(offset,es));}
function deleteCookie(name){var path = getCookie("path");if(getCookie(name)){document.cookie = name + "=" + ((path) ? "; path=" + path : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function getCookie(name){switch(name){case '_MSOPSEUDO_':
case '_MSOMAIL_':
case '_MSOTICKET_':
unvIdLogin = getCookie('_MSOUNIVERS_');if(unvIdLogin != "Undefined" && unvIdLogin != 1){return "Undefined";}
break;}
var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i < clen){var j=i+alen;if(document.cookie.substring(i, j)==arg){return getCookieVal(j);}
i=document.cookie.indexOf(" ", i)+1;if(i==0){break;}}
return "Undefined";}
function setCookie(name,value){var exv=getCookie("expires");var pathval=getCookie("path");if(exv){var date=new Date();var oyfn=date.getTime()+(365*24*60*60*1000);date.setTime(oyfn);}
if(pathval){pathval="/";}
var ck=name+"="+escape(value);ck+="; path="+pathval;ck+="; domain=.tf1.fr";document.cookie=ck;}
var base64s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function encode64(str){var bits,dual,i=0,encOut='';while(str.length>=i+3){bits =
(str.charCodeAt(i++) & 0xff) <<16 |
(str.charCodeAt(i++) & 0xff) <<8  |
str.charCodeAt(i++) & 0xff;encOut +=
base64s.charAt((bits & 0x00fc0000) >>18) +
base64s.charAt((bits & 0x0003f000) >>12) +
base64s.charAt((bits & 0x00000fc0) >> 6) +
base64s.charAt((bits & 0x0000003f));}
if(str.length -i>0 && str.length-i<3){dual = Boolean(str.length-i-1);bits =
((str.charCodeAt(i++) & 0xff) <<16) |
(dual ? (str.charCodeAt(i) & 0xff) <<8 : 0);encOut +=
base64s.charAt((bits & 0x00fc0000) >>18) +
base64s.charAt((bits & 0x0003f000) >>12) +
(dual ? base64s.charAt((bits & 0x00000fc0) >>6) : '=') +
'=';}
return encOut
}
function M_getRef(id){return gId(id);}
function M_getOffset(obj, dir){var px = 0;while(obj.tagName!='BODY'){if(dir && dir=='top') px += obj.offsetTop; else px += obj.offsetLeft;obj = obj.offsetParent;}
return px;}
function hm(){for(var i = 1; i<=nbMaxMenu; i++){var oDiv = gId('divSubmenu'+i);if(oDiv) oDiv.style.visibility = 'hidden';var lnk = gId('lnk'+i)
if(lnk){if(puceOff) lnk.style.backgroundImage = 'url('+puceOff+')';if(styleOff) lnk.className = styleOff;}}
var oCont = gId('divConteneur');if(oCont){oCont.style.display = "none";}}
function sm(num, show){var lnk = gId('lnk' + num);if(!lnk) return false;if(puceOn) lnk.style.backgroundImage = 'url('+ puceOn + ')';if(styleOn) lnk.className = styleOn;var objLeft = lnk.parentNode;var objTop = gId('divLevelTop'+iblId);var ssmenu = gId('divSubmenu' + num);if(ssmenu){if(show){var initialTop = objTop.offsetHeight;if(flagTop) initialTop = -ssmenu.offsetHeight;ssmenu.style.left = M_getOffset(objLeft) + 'px';ssmenu.style.top  = (initialTop + M_getOffset(objTop, 'top')) + 'px';}
ssmenu.style.visibility = show ? 'visible':'hidden';var oCont = gId('divConteneur');if(oCont){var decalLeft = 2;oCont.style.left = (parseInt(ssmenu.style.left) + decalLeft) + 'px';var decalTop  = flagTop ? -2:2;oCont.style.top  = (parseInt(ssmenu.style.top) + decalTop) + 'px';oCont.style.height = ssmenu.offsetHeight + 'px';oCont.style.width  = ssmenu.offsetWidth + 'px';oCont.style.display = "block";}}}
function pmeOperation(opeId,dest){document.cookie="_MSOTICKET_=0;path=/;domain=.bordeaux-commerce.com";document.cookie="_PMEOPE_="+opeId+";path=/;domain=.bordeaux-commerce.com";document.location.href=dest;}
function createPopup(target, urlImg, params, enabled){var DEFAULT_STYLE_CONTAINER = "margin:0; padding:15px; background-color:#fff; border:1px solid #000;";var DEFAULT_STYLE_FOOTER    = "text-align:left; margin:5px 0 0 0; font:bold 12px arial; color:#000; word-break: normal;";var DEFAULT_STYLE_COPYRIGHT = "font:10px arial; color:#000;";if(typeof enabled == 'undefined'){enabled = true;}
if(!enabled){return false;}
if(typeof params == 'undefined'){params ={};}
target.style.cursor = 'pointer';target.title = 'Cliquez ici pour agrandir cette image';this.styleCopyright	= DEFAULT_STYLE_COPYRIGHT;this.styleFooter	= DEFAULT_STYLE_FOOTER;this.styleBody		= DEFAULT_STYLE_CONTAINER;this.legende		= (params['legende'])?params['legende']:'';this.copyright		= (params['copyright'])?params['copyright']:'';this.couleurBackgroundPopup		= (params['couleurBackgroundPopup'])?params['couleurBackgroundPopup']:'';this.texteFermerPopup		= (params['texteFermerPopup'])?params['texteFermerPopup']:'';if(this.couleurBackgroundPopup != '') this.styleBody = "margin:0; padding:15px; background-color:" + this.couleurBackgroundPopup + "; border:1px solid #000;";var popupId 	=	target.id + "popup";var popupImgId 	= 	target.id + "popupImg";var txtTopId 	= 	target.id + "txtTop";var txtFooterId = 	target.id + "txtFooter";if(gId(popupId)){this.oDivContainer = gId(popupId);this.oDivContainer.style.visibility = "hidden";}else{this.oDivContainer = document.createElement("div");if(this.styleBody != ''){this.oDivContainer.style.cssText = this.styleBody;}
this.oDivContainer.id = popupId;this.oDivContainer.style.zIndex = 1000;this.oDivContainer.style.visibility = "hidden";try{document.body.insertBefore(this.oDivContainer, document.body.firstChild);} catch(e){target.parentNode.insertBefore(this.oDivContainer, target);}}
this.oDiv = document.createElement("div");this.oImg 						= new Image();this.oImg.id					= popupImgId;this.oImg.style.verticalAlign	= "top";listeImagesPopup[popupId] 		= urlImg;var elZoom = document.createElement("div");elZoom.style.textAlign	= "center";elZoom.appendChild(this.oImg);this.oDiv.appendChild(elZoom);elZoom.style.padding = 0;copyrightPopup[popupId] = [];copyrightPopup[popupId]['text'] =this.copyright;copyrightPopup[popupId]['style'] =this.styleCopyright;this.txtFooter 					= document.createElement("div");this.txtFooter.id				= txtFooterId;this.txtFooter.style.oveflow 	= 'hidden';if(this.legende != ""){this.txtFooter.innerHTML = this.legende;if(this.styleFooter != ''){this.txtFooter.style.cssText = this.styleFooter;}}
if(this.texteFermerPopup != ''){this.containerTexteClose = document.createElement("p");this.containerTexteClose.style.cssText = 'display:block; margin:5px 0 0 0; text-align:right;';this.texteClose = document.createElement("a");this.texteClose.id = target.id + "imageClose";this.texte = document.createTextNode(this.texteFermerPopup);texteClose.appendChild(texte);this.texteClose.href	= "javascript:zm_hidePopup('" + popupId + "')";this.texteClose.alt			=  "Fermer cette fenetre...";this.texteClose.style.cssText			=  'color:#FFFFFF; font-weight:bold;';this.containerTexteClose.appendChild(this.texteClose);this.txtFooter.appendChild(this.containerTexteClose);}else{var DEFAULT_BOUTON_FERMER   = "http://s.tf1.fr/mmdia/i/33/0/2156330.gif";this.containerImageClose = document.createElement("p");this.containerImageClose.style.cssText = 'display:block; margin:5px 0 0 0; text-align:right;';this.imageClose = document.createElement("img");this.imageClose.id = target.id + "imageClose";this.imageClose.src = DEFAULT_BOUTON_FERMER;this.imageClose.onclick	= function(){zm_hidePopup(popupId)};this.imageClose.title			=  "Fermer cette fenetre...";this.imageClose.style.cursor = "pointer";this.containerImageClose.appendChild(this.imageClose);this.txtFooter.appendChild(this.containerImageClose);}
this.oDiv.appendChild(this.txtFooter);this.oDivContainer.appendChild(this.oDiv);this.oDivContainer.style.position = "absolute";}
function zm_hidePopup(zoomerId){gId(zoomerId).style.visibility = "hidden";}
function zm_showPopup(zoomerId){gId(zoomerId).style.visibility = "visible";}
function showPopup(e){if(popupIdLastOpen != ''){zm_hidePopup(popupIdLastOpen);}
var target;if(e.target){target = e.target;}else if(e.srcElement){target = e.srcElement;}
var popupId 	= target.id + "popup";var imgId 		= target.id + "popupImg";var txtTopId 	= target.id + "txtTop";var txtFooterId =	target.id + "txtFooter";var popup 	= gId(popupId);var img 	= gId(imgId);var txtTop 	= gId(txtTopId);var txtFooter = gId(txtFooterId);if(listeImagesPopup[popupId] != ""){img.src = listeImagesPopup[popupId];footerContent[popupId] = txtFooter.innerHTML ;txtFooter.innerHTML = "<br />Chargement en cours <br />.";zm_movePopup(popupId);zm_showPopup(popupId);setWidthAndShow(0, target.id);}else{zm_movePopup(popupId);zm_showPopup(popupId);}
popupIdLastOpen = popupId;}
function getXMLHttpRequest(){var XMLHttp = false;try{XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e){try{XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (E){XMLHttp = false;}}
if(!XMLHttp && typeof XMLHttpRequest!='undefined'){XMLHttp = new XMLHttpRequest();}
return XMLHttp;}
popupIdLastOpen='';var listeImagesPopup=[];var copyrightPopup=[];var footerContent=[];function setWidthAndShow(i,id){var popupId = id + "popup";var img = gId(id + "popupImg");var txtFooter = gId(id + "txtFooter");if(i<80 && !img.complete){if(i%2 == 0){txtFooter.innerHTML +=".";}
setTimeout("setWidthAndShow("+(i++)+", '"+ id +"' );", 100);}else if(img.complete){txtFooter.style.width = img.width + "px";listeImagesPopup[popupId] = "";if(copyrightPopup[popupId]['text'] != ""){ajoutCopyright(img, copyrightPopup[popupId]['text'], '', copyrightPopup[popupId]['style']);}
txtFooter.innerHTML = footerContent[popupId];gId(id + "imageClose").onclick	= function(){zm_hidePopup(popupId)};return true;}else{txtFooter.style.width = "250px";txtFooter.innerHTML = footerContent[popupId];gId(id + "imageClose").onclick	= function(){zm_hidePopup(popupId)};return false;}}
function zm_movePopup(zoomerId){if(document.getElementById){var setX = 120;var setY = 60;var div = gId(zoomerId);var divWidth = div.offsetWidth ? div.offsetWidth : div.style.width ? parseInt( div.style.width ) : 0;var divHeight = div.offsetHeight ? div.offsetHeight :  div.style.height ? parseInt( div.style.height ) : 0;setX = setX + getViewportScrollX();setY = setY + getViewportScrollY();div.style.left = setX + "px";div.style.top = setY + "px";}}
function getViewportWidth(){var width = 0;if( document.documentElement && document.documentElement.clientWidth ){width = document.documentElement.clientWidth;}
else if( document.body && document.body.clientWidth ){width = document.body.clientWidth;}
else if( window.innerWidth ){width = window.innerWidth - 18;}
return width;}
function getViewportHeight(){var height = 0;if( document.documentElement && document.documentElement.clientHeight ){height = document.documentElement.clientHeight;}
else if( document.body && document.body.clientHeight ){height = document.body.clientHeight;}
else if( window.innerHeight ){height = window.innerHeight - 18;}
return height;}
function getViewportScrollX(){var scrollX = 0;if( document.documentElement && document.documentElement.scrollLeft ){scrollX = document.documentElement.scrollLeft;}
else if( document.body && document.body.scrollLeft ){scrollX = document.body.scrollLeft;}
else if( window.pageXOffset ){scrollX = window.pageXOffset;}
else if( window.scrollX ){scrollX = window.scrollX;}
return scrollX;}
function getViewportScrollY(){var scrollY = 0;if(document.documentElement && document.documentElement.scrollTop){scrollY = document.documentElement.scrollTop;}
else if(document.body && document.body.scrollTop){scrollY = document.body.scrollTop;}
else if(window.pageYOffset){scrollY = window.pageYOffset;}
else if(window.scrollY){scrollY = window.scrollY;}
return scrollY;}
function ajoutCopyrightSousImage(img,texte,classe,styles){if(texte == ''){return;}
if(texte.charCodeAt(0) == 169){texte = texte.substr(2);}
texte = texte.replace(/^\s*|\s*$/g, '');if(texte.length > 1){texte = '&copy;&nbsp;' + texte;}else{texte = '&nbsp;';}
var divCopyright = document.createElement('span');divCopyright.innerHTML = texte;divCopyright.className = classe;var ancetre = img.parentNode;var nsb = img.nextSibling;while(ancetre.tagName!='TD' && ancetre.tagName!='SPAN' && ancetre.tagName!='DIV' && ancetre.tagName!='BODY'){nsb = ancetre.nextSibling;ancetre = ancetre.parentNode;}
divCopyright.style.padding = '2px 0';divCopyright.style.margin = '0 0 4px 0';divCopyright.style.display = 'block';divCopyright.style.textAlign = 'center';divCopyright.style.width = '100%';divCopyright.style.textDecoration = 'none';divCopyright.style.cssText = styles;ancetre.insertBefore(divCopyright, nsb);return(divCopyright);}
function ajoutCopyright(img,texte,classe,styles){if(texte == ''){return;}
if(texte.charCodeAt(0) == 169){texte = texte.substr(2);}
texte = texte.replace(/^\s*|\s*$/g, '');if(texte.length > 1){texte = '&copy;&nbsp;' + texte;}else{texte = '&nbsp;';}

var nodes=elem.getElementsByTagName('img');var tabCopyright=[];var str='';var nbNode=nodes.length;var node=null;var cp='';var nbCopyright=tabCopyright.length;for(var i=0; i<nbNode; i++){node = nodes[i];cp = node.getAttribute('cp');if((cp != null) && (cp != '')){doublon=0;for(var j=0; j<nbCopyright; j++){if(tabCopyright[j]==cp){doublon=1;}}
if(doublon==0){tabCopyright[nbCopyright++]=cp;}}}
str=tabCopyright[0];for(var i=1; i<nbCopyright; i++){str+= separator + tabCopyright[i];}
if(typeof str != 'undefined' && str) {innerObj.innerHTML = str;}}
function isValidEmail(email){reMailForm = new RegExp('^([0-9a-zA-Z]+[-._+&]+)*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$');return reMailForm.test(email);}
function AC_Generateobj(objAttrs, params, embedAttrs, id){var str = '<object ';for(var i in objAttrs)
str += i + '="' + objAttrs[i] + '" ';str += '>';for(var i in params)
str += '<param name="' + i + '" value="' + params[i] + '" /> ';str += '<embed ';for(var i in embedAttrs)
str += i + '="' + embedAttrs[i] + '" ';str += ' ></embed></object>';if(id==""){document.write(str);}else{elementWrite(id,str);}}
function AC_FL_RunContent(){var ret = AC_GetArgs(arguments, '.swf', 'movie', 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', 'application/x-shockwave-flash');AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs, ret.elementId);}
function AC_SW_RunContent(){var ret = AC_GetArgs(arguments, '.dcr', 'src', 'clsid:166B1BCA-3F9C-11CF-8075-444553540000', null);AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){var ret = new Object();ret.embedAttrs = new Object();ret.params = new Object();ret.elementId = "";ret.objAttrs = new Object();for(var i=0; i<args.length; i=i+2){var currArg = args[i].toLowerCase();switch (currArg){case 'elementid':
ret.elementId = args[i+1];break;case 'classid':
break;case 'pluginspage':
ret.embedAttrs[args[i]] = args[i+1];break;case 'src':
case 'movie':
ret.embedAttrs['src'] = args[i+1];ret.params[srcParamName] = args[i+1];break;case 'onafterupdate':
case 'onbeforeupdate':
case 'onblur':
case 'oncellchange':
case 'onclick':
case 'ondblClick':
case 'ondrag':
case 'ondragend':
case 'ondragenter':
case 'ondragleave':
case 'ondragover':
case 'ondrop':
case 'onfinish':
case 'onfocus':
case 'onhelp':
case 'onmousedown':
case 'onmouseup':
case 'onmouseover':
case 'onmousemove':
case 'onmouseout':
case 'onkeypress':
case 'onkeydown':
case 'onkeyup':
case 'onload':
case 'onlosecapture':
case 'onpropertychange':
case 'onreadystatechange':
case 'onrowsdelete':
case 'onrowenter':
case 'onrowexit':
case 'onrowsinserted':
case 'onstart':
case 'onscroll':
case 'onbeforeeditfocus':
case 'onactivate':
case 'onbeforedeactivate':
case 'ondeactivate':
case 'type':
case 'codebase':
ret.objAttrs[args[i]] = args[i+1];break;case 'width':
case 'height':
case 'align':
case 'vspace':
case 'hspace':
case 'class':
case 'title':
case 'accesskey':
case 'name':
case 'id':
case 'tabindex':
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];}}
ret.objAttrs['classid'] = classid;if(mimeType) ret.embedAttrs['type'] = mimeType;return ret;}
function AC_AX_RunContent(){var ret = AC_AX_GetArgs(arguments);AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}
function AC_AX_GetArgs(args){var ret = new Object();ret.embedAttrs = new Object();ret.params = new Object();ret.objAttrs = new Object();for(var i=0; i<args.length; i=i+2){var currArg = args[i].toLowerCase();switch (currArg){case 'pluginspage':
case 'type':
case 'src':
ret.embedAttrs[args[i]] = args[i+1];break;case 'data':
case 'codebase':
case 'classid':
case 'id':
case 'onafterupdate':
case 'onbeforeupdate':
case 'onblur':
case 'oncellchange':
case 'onclick':
case 'ondblClick':
case 'ondrag':
case 'ondragend':
case 'ondragenter':
case 'ondragleave':
case 'ondragover':
case 'ondrop':
case 'onfinish':
case 'onfocus':
case 'onhelp':
case 'onmousedown':
case 'onmouseup':
case 'onmouseover':
case 'onmousemove':
case 'onmouseout':
case 'onkeypress':
case 'onkeydown':
case 'onkeyup':
case 'onload':
case 'onlosecapture':
case 'onpropertychange':
case 'onreadystatechange':
case 'onrowsdelete':
case 'onrowenter':
case 'onrowexit':
case 'onrowsinserted':
case 'onstart':
case 'onscroll':
case 'onbeforeeditfocus':
case 'onactivate':
case 'onbeforedeactivate':
case 'ondeactivate':
ret.objAttrs[args[i]] = args[i+1];break;case 'width':
case 'height':
case 'align':
case 'vspace':
case 'hspace':
case 'class':
case 'title':
case 'accesskey':
case 'name':
case 'tabindex':
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];}}
return ret;}
function classBox(scoId, verId, type, client, img, titre, texte, prix, url){this.scoId=scoId;this.verId=verId;this.type=type;this.client=client;this.img=img;this.titre=titre;this.texte=texte;this.prix=prix;this.url=url;}
function placTabSB(idElem, bout, place, aff){this.idElem=idElem;this.bout=bout;this.place=place;this.aff=aff;}
function createLienSB(idLink,blocId) {var a=gId('client' + blocId + idLink);if(a) {var url=a.href;window.open(url, 'client');}}
function miniBout(aff, restOp, blocId, orientation) {if(restOp==1) {eval("restOpen"+blocId+"=1");}
var boutStatut = eval("boutStatut"+blocId);var restOpen = eval("restOpen"+blocId);if(aff==1) {eval("clearTimeout(timerClose"+blocId+");");if(boutStatut==0) {eval("timerDefil"+blocId+"=setTimeout('openBoutique("+blocId+",1,"+orientation+")', defT"+blocId+");");}}
if(aff==0 && restOpen==0 && boutStatut==1) {eval("boutStatut"+blocId+"=1;");eval("timerClose"+blocId+"=setTimeout('openBoutique("+blocId+",0,"+orientation+")', 300);");}}
function openBoutique(blocId,ouv,orientation) {var dimensionBout = "boutHeight";var dimensionEns = "ensHeight";if(orientation) {dimensionBout = "boutWidth";dimensionEns = "ensWidth";}
var bout=gId('boutique'+blocId);if(bout) {if(ouv==1) {eval(dimensionBout+blocId+"="+dimensionBout+blocId+"+defP"+blocId+";");if(eval(dimensionBout+blocId)>=eval(dimensionEns+blocId)) {var box=gId('box'+blocId);if(box){box.style.display='none';}
eval(dimensionBout+blocId+"="+dimensionEns+blocId+";");if(eval("boutOpen"+blocId)==0) {eval("statAff"+blocId+"(1);");}
eval("boutOpen"+blocId+"=1;");eval("boutStatut"+blocId+"=1;");eval("clearTimeout(timerDefil"+blocId+");");}else{eval("timerDefil"+blocId+"=setTimeout('openBoutique("+blocId+",1,"+orientation+")', defT"+blocId+");");eval("boutStatut"+blocId+"=2;");}}
if(ouv==0) {eval(dimensionBout+blocId+"="+dimensionBout+blocId+"-defP"+blocId+";");var box=gId('box'+blocId);if(box){box.style.display='block';}
if(eval(dimensionBout+blocId)<=eval(dimensionBout+"Rep"+blocId)) {eval(dimensionBout+blocId+"="+dimensionBout+"Rep"+blocId+";");eval("boutStatut"+blocId+"=0;");eval("clearTimeout(timerDefil"+blocId+");");}else{eval("timerDefil"+blocId+"=setTimeout('openBoutique("+blocId+",0,"+orientation+")', defT"+blocId+");");eval("boutStatut"+blocId+"=2;");}}
if(orientation) {bout.style.width=eval(dimensionBout+blocId) + 'px';}else{bout.style.height=eval(dimensionBout+blocId) + 'px';}
var bord=gId('bordBout'+blocId);if(bord){if(orientation) {bord.style.left=eval(dimensionBout+blocId) + 'px';}else{bord.style.top=eval(dimensionBout+blocId) + 'px';}}}}
function newBox(blocId,orientation,pathJs) {var suffixe = "Height";if(orientation) {suffixe = "Width";}
tabShop=[];eval("tabObjBox"+blocId+"=[];");eval("clearTimeout(timerDefil"+blocId+");");eval("clearTimeout(timerClose"+blocId+");");eval("clearTimeout(timerGo"+blocId+");");eval("boutStatut"+blocId+"=0;");eval("boutOpen"+blocId+"=0;");eval("restOpen"+blocId+"=0;");eval("bout"+suffixe+blocId+"=bout"+suffixe+"Rep"+blocId+";");var alea;alea=parseInt(Math.random() * eval("nbJs"+blocId), 10);var date=new Date();var timeStamp=date.getDay()+date.getHours()+date.getMinutes();var url=pathJs+alea+'.js?var='+timeStamp;includeJs(url);var box=gId('box'+blocId);if(box) {box.style.display='block';}
var bout=gId('boutique'+blocId);if(bout) {if(orientation) {bout.style.width=eval("bout"+suffixe+"Rep"+blocId) + 'px';}else{bout.style.height=eval("bout"+suffixe+"Rep"+blocId) + 'px';}}
var bord=gId('bordBout'+blocId);if(bord){if(orientation) {bord.style.left=eval("bout"+suffixe+"Rep"+blocId) + 'px';}else{bord.style.top=eval("bout"+suffixe+"Rep"+blocId) + 'px';}}
eval("getTab"+blocId+"();");eval("timerDefil"+blocId+"=setTimeout('miniBout(1, 1,"+blocId+","+orientation+")', tmpBout"+blocId+");");if(eval("nbRaf"+blocId)<5) {eval("timerBox"+blocId+"=setTimeout(\"newBox("+blocId+","+orientation+",'"+pathJs+"')\", tmpBox"+blocId+");");eval("nbRaf"+blocId+"++;");}}
function Votes(myid) {var id = myid;var conId= null;var self = this;var unvId= 1;var objEval= null;var objEtoiles= null;var objInfos= null;var noteMax= 5;var noteContenu= 5;var prefixeClasse= "";var nbVotes= 0;var msgInitial= "Votez <span class=\"\">[###NB_VOTES###]</span>";var msgVoteOk= "Vote comptabilisé";var msgDejaVote= "Vous avez déjà voté";var msgNbVotes= " ###NB_VOTES### vote###S_VOTES###";var msgVotes= "Votes (###NB_VOTES###)";var msgEval = "###APPRECIATION###";var statut= "toVote";var displayEval = true;var regExp = new RegExp("###NB_VOTES###","gi");var regExpS = new RegExp("###S_VOTES###","gi");var regExpEval = new RegExp("###APPRECIATION###","gi");var tabEval = ["Nul", "Bof", "Moyen", "Bien", "Super", "Génial"];this.init = function(conid,unvid,urlvote,conteneurEval,conteneurEtoiles,nMax,notecontenu,prefixecss,messages,nbvotes,tabappreciations,objinfos,displayeval) {noteMax = nMax;conId = conid;unvId = unvid;urlVote = urlvote;objEtoiles = conteneurEtoiles;objEval = conteneurEval;noteContenu = notecontenu;msgInitial = messages.length?messages[0]:msgInitial;msgVoteOk = (messages.length>1)?messages[1]:msgVoteOk;msgDejaVote = (messages.length>2)?messages[2]:msgDejaVote;msgNbVotes = (messages.length>3)?messages[3]:msgNbVotes;msgVotes = (messages.length>4)?messages[4]:msgVotes;msgEval = (messages.length>5)?messages[5]:msgEval;nbVotes = nbvotes?nbvotes:nbVotes;prefixeClasse = prefixecss;objInfos=(objinfos)?objinfos:null;tabEval=(tabappreciations)?tabappreciations:tabEval;displayEval=(displayeval==null)?displayEval:displayeval;for(var i=0;i<=noteMax*2;i++){var divEtoile = document.createElement("DIV");objEtoiles.appendChild(divEtoile);divEtoile.innerHTML = "&nbsp;";if(i==0) {divEtoile.className = prefixeClasse;}}
this.addEvents();statut = "toVote";this.showStars();};this.addEvents = function(){objEtoiles = gId(objEtoiles.id);for(var i=0;i<=noteMax*2;i++){var divEtoile = objEtoiles.childNodes[i];eval("addEvtListener(divEtoile,'mouseover',function(){"+id+".showVotes("+i+",false);})");eval("addEvtListener(divEtoile,'click',function(){"+id+".doOnClickVotes("+i+");})");}
eval("addEvtListener(objEtoiles,'mouseout',function(){"+id+".showStars();})");}
this.showStars = function(){var ligne = objEtoiles.childNodes;for(var i=1 ; i< ligne.length ; i++){var prefixe = (i <= noteContenu*2)?"P":"V";var suffixe = (i%2)?"G":"D";ligne[i].className = prefixeClasse+prefixe+suffixe;}
if(statut != "toVote") {objEval.innerHTML = msgNbVotes.replace(regExp,nbVotes).replace(regExpS,nbVotes>1?"s":"");}else{objEval.innerHTML = msgInitial.replace(regExp,nbVotes).replace(regExpS,nbVotes>1?"s":"");}};this.showVotes = function(id, init){var note = Math.floor(id/2);objEtoiles = gId(objEtoiles.id);objEval = gId(objEval.id);if(statut == "toVote") {for(var i=1 ; i<1+noteMax*2 ; i++){var prefixe = (i<=id)?"P":"V";var suffixe = (i % 2 == 0) ? "D":"G";var objetoile = objEtoiles.childNodes[i];objetoile.className=prefixeClasse+prefixe+suffixe;}
if(!init && displayEval) {objEval.innerHTML = msgEval.replace(regExpEval,tabEval[note]);}}
if((init) && (statut == "VoteValide")){nbVotes++;}
if(init) {objEval.innerHTML = msgVotes.replace(regExp,nbVotes).replace(regExpS,nbVotes>1?"s":"");}};this.initVotes = function(){self.showVotes(noteContenu,true);};this.doOnClickVotes = function(vote) {if(objInfos != null)objInfos = gId(objInfos.id);objEval = gId(objEval.id);if(statut != "toVote") {statut = "DejaVote";if(objInfos != null)
objInfos.innerHTML = msgDejaVote;else
objEval.innerHTML = msgDejaVote;}else{vote = vote/2;var dummy = new Image();var url = urlVote;var valeurs = new Array(conId,unvId,vote,noteMax);var tags = new Array("CON_ID","UNV_ID","VOTE","NOTE_MAX");for(var i=0;i<valeurs.length;i++) {var regExp = new RegExp("###"+tags[i]+"###","gi");url = url.replace(regExp,valeurs[i]);}
dummy.src = url;statut = "VoteValide";if(objInfos != null)
objInfos.innerHTML = msgVoteOk;else
objEval.innerHTML = msgVoteOk;}
setTimeout(self.initVotes, 2000);};}
function createNode(tagName,attributs) {var noeud = document.createElement(tagName);for(i in attributs){eval("noeud."+i+"=\""+attributs[i]+"\";");}
return noeud;}
function sendAndPrint() {var formName = "";var actionSend = "";var actionPrint = "";var targetName = "";var paramsPopupSend = "750,590,0,0,0,0,0,0,0,0";var paramsPopupPrint = "750,590,0,0,1,1,1,1,1,1";this.init = function(actionSend, actionPrint, targetName, iblId, unvId, chaineId, rubId, ipgId, conId, typeTpl, iblClasse, paramsPopupSend, paramsPopupPrint) {this.formName = "formSendAndPrint"+iblId;this.actionSend = actionSend;this.actionPrint = actionPrint;this.targetName = targetName;if(paramsPopupSend != null)this.paramsPopupSend = paramsPopupSend;if(paramsPopupPrint != null)this.paramsPopupPrint = paramsPopupPrint;var form = createNode("FORM",{method:"post",target:targetName,name:this.formName,id:this.formName,action:""});form.style.display="none";form.appendChild(createNode("INPUT",{type:"text",value:conId,name:"conId"}));form.appendChild(createNode("INPUT",{type:"text",value:unvId,name:"unvId"}));form.appendChild(createNode("INPUT",{type:"text",value:((iblClasse == null)?"":iblClasse),name:"iblClasse"}));form.appendChild(createNode("INPUT",{type:"text",value:chaineId,name:"chaineId"}));form.appendChild(createNode("INPUT",{type:"text",value:rubId,name:"rubId"}));form.appendChild(createNode("INPUT",{type:"text",value:ipgId,name:"ipgId"}));form.appendChild(createNode("INPUT",{type:"text",value:iblId,name:"iblId"}));form.appendChild(createNode("INPUT",{type:"text",value:((typeTpl == null)?typeTpl:""),name:"typeTpl"}));form.appendChild(createNode("INPUT",{type:"text",value:"",name:"w_action"}));form.appendChild(createNode("INPUT",{type:"text",value:document.location.href,name:"w_pagereferer"}));document.body.appendChild(form);}
this.make = function(what) {for(var i=0;i<document.forms[this.formName].elements.length;i++) {if(document.forms[this.formName].elements[i].name == "w_action") {document.forms[this.formName].elements[i].value = what;break;}}
document.forms[this.formName].action = ((what=="print")?this.actionPrint:this.actionSend);var paramsPopup = (what=="print")?this.paramsPopupPrint:this.paramsPopupSend;eval("openPopup('about:blank','"+this.targetName+"',"+paramsPopup+");");setTimeout('document.forms["'+this.formName+'"].submit()',1000);}
this.print = function() {this.make('print');}
this.send = function() {this.make('send');}}
function parseStrDateToDate(date) {if(typeof date == 'undefined' || date == '') {return false;}
var dateTimeSplit = date.split(' ');var dateFullSplit = dateTimeSplit[0].split('/');if(dateTimeSplit[1]) {var timeSplit = dateTimeSplit[1].split(':');return new Date(dateFullSplit[2], dateFullSplit[1] - 1, dateFullSplit[0], timeSplit[0], timeSplit[1], timeSplit[2]);}else{return new Date(dateFullSplit[2], dateFullSplit[1], dateFullSplit[0]);}}
function getNiceDiffDate(date1, date2) {var date1Date, date2Date, diff, floorValue = null;var liste = new Array(5);liste[0] = new Array(3);liste[0][0] = 31536000000;liste[0][1] = 'an';liste[0][2] = 'ans';liste[1] = new Array(3);liste[1][0] = 2592000000;liste[1][1] = 'mois';liste[1][2] = 'mois';liste[2] = new Array(3);liste[2][0] = 86400000;liste[2][1] = 'jour';liste[2][2] = 'jours';liste[3] = new Array(3);liste[3][0] = 3600000;liste[3][1] = 'heure';liste[3][2] = 'heures';liste[4] = new Array(3);liste[4][0] = 60000;liste[4][1] = 'minute';liste[4][2] = 'minutes';if(typeof date1 == 'undefined' || date1 == '') {date1Date = new Date();}else{date1Date = parseStrDateToDate(date1);}
if(date1Date === false) { return; }
if(typeof date2 == 'undefined' || date2 == '') {date2Date = new Date();}else{date2Date = parseStrDateToDate(date2);}
if(date2Date === false) { return; }
diff = date1Date.getTime() - date2Date.getTime();if(diff < 0) {diff = diff * -1;}
for(var i=0; i < liste.length; i++) {floorValue = Math.floor(diff / liste[i][0]);if(floorValue > 0) {return floorValue + ' ' + (floorValue > 1 ? liste[i][2] : liste[i][1]);}}
return 0;}
function sjs(lien,url) {lien.href = url.substring(1).replace(/\|/g, "\/").replace(/\@/g, ".");}
function doOnPageLoad() {var liens=document.getElementsByTagName("A");for(var i=0;i<liens.length;i++) {var lien = liens[i];var url = lien.href;if(url.charAt(url.length-1) != "#") {continue;}
for(var n=0;n < lien.attributes.length;n++) {if(lien.attributes[n].nodeName!="onclick") {continue;}
if(lien.attributes[n].nodeValue != null) {var onclickEvent = lien.attributes[n].nodeValue;if(onclickEvent.indexOf("sjs") == 0) {if(onclickEvent.indexOf(";") != -1) {sjs(lien,onclickEvent.substr(10,onclickEvent.indexOf(";")-12));lien.attributes[n].nodeValue = lien.attributes[n].nodeValue.substr(onclickEvent.indexOf(";")+1);}else{sjs(lien,onclickEvent.substr(10,onclickEvent.length-12));lien.attributes[n].nodeValue = "";}}}
break;}}}
function getMainDocDomain() {return document.domain.replace(/[^.]+\.([^.]+\.[^.]+)/, '$1');}
var BORDEAUXDate = {months : ['janvier', 'février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre'],
getNiceDate : function(strDate, prepend) {if(null == prepend) {prepend = '';}
var date1Date, date2Date, diff, floorValue = null;var liste = new Array(3);liste[0] = new Array(2);liste[0][0] = 172800000;liste[0][1] = 'date';liste[1] = new Array(2);liste[1][0] = 86400000;liste[1][1] = 'Hier';liste[2] = new Array(2);liste[2][0] = 1;liste[2][1] = 'Aujourd\'hui';if(typeof strDate == 'undefined' || strDate == '') {date1Date = new Date();}else{date1Date = parseStrDateToDate(strDate);}
if(date1Date === false) { return; }
date2Date = new Date();diff = date2Date.getTime() - date1Date.getTime();if(diff < 0) {diff = diff * -1;}
for(var i=0; i < liste.length; i++) {floorValue = Math.floor(diff / liste[i][0]);if(floorValue > 0) {if(liste[i][1] == 'date') {return ''+prepend + date1Date.getDate() +' '+ this.months[date1Date.getMonth()] +' '+ date1Date.getFullYear();}else{return liste[i][1];}}}
return 0;}};addEvtListener(window,'load',doOnPageLoad);var TF1Overlay = {box : null,
iframe : null,
node : null,
loadingPanel : null,
browserIsIE : navigator.userAgent.indexOf("MSIE") != -1,
browserIsIE6 : navigator.userAgent.indexOf("MSIE 6.0") != -1,
browserIsIE7 : navigator.userAgent.indexOf("MSIE 7.0") != -1,
browserIsIE8 : navigator.userAgent.indexOf("MSIE 8.0") != -1,
browserIsChrome : navigator.userAgent.indexOf("Chrome") != -1,
browserIsFirefox : navigator.userAgent.indexOf("Firefox") != -1,
width:null,
height:null,
stayInsideOnTerminated:false,
callback:null,
cancelLoading:false,
savedFlashVisibility:{object:[],embed:[]},
tsLastResize:0,
flashsAreVisible:true,
DEFAULT_WIDTH : 800,
DEFAULT_HEIGHT : 600,
close : function(targetUrl) {if(this.loadingPanel == null) {return;}
this.loadingPanel.style.display = 'none';document.body.removeChild(this.node);this.node = null;this.doOnAfterUsed();if(typeof targetUrl == 'undefined' || targetUrl == null || targetUrl == 'emptyUrl') {if(typeof AccountBloc != 'undefined') {AccountBloc.update();}
BORDEAUXOverlay.switchFlashsVisibility(true);return;}

window.location.href = targetUrl;},
doOnTerminated : function(targetUrl) {this.cancelLoad = true;if(this.callback != null) {this.callback(targetUrl);}else{this.close(targetUrl);}},
stayInside : function() {return this.stayInsideOnTerminated;},
open : function(url, width, height, stayInsideOnTerminated, overlayCallback) {this.width = !isNaN(width)?width:null;this.height = !isNaN(height)?height:null;if(typeof stayInsideOnTerminated != 'undefined') {this.stayInsideOnTerminated = stayInsideOnTerminated;}


var viewboxWidth = this.getViewboxWidth();var viewboxHeight = this.getViewboxHeight();var loadingPanel = this.loadingPanel;loadingPanel.style.display = 'block';loadingPanel.style.left = ((viewboxWidth - this.loadingPanel.offsetWidth) / 2) + 'px';loadingPanel.style.top = document.documentElement.scrollTop + ((viewboxHeight - this.loadingPanel.offsetHeight) / 2) + 'px';this.iframe.src = url;},
switchFlashsVisibility : function(makeVisible) {if(!this.flashsAreVisible && !makeVisible) {return;}
if(!makeVisible) {this.savedFlashVisibility = {object:[],embed:[]};}
var objList = document.getElementsByTagName('object');var e = null;for(var i = 0; i < objList.length; i++) {var e = objList.item(i);if(makeVisible) {e.style.visibility = this.savedFlashVisibility.object[i];}else{this.savedFlashVisibility.object[i] = e.style.visibility;e.style.visibility = 'hidden';}}
var objList = document.getElementsByTagName('embed');for(var i = 0; i < objList.length; i++) {var e = objList.item(i);if(makeVisible) {e.style.visibility = this.savedFlashVisibility.embed[i];}else{this.savedFlashVisibility.embed[i] = e.style.visibility;e.style.visibility = 'hidden';}}
this.flashsAreVisible = makeVisible;},
getViewboxWidth : function() {var viewboxWidth = document.documentElement.clientWidth;if(this.browserIsIE && viewboxWidth == 0) {viewboxWidth = document.documentElement.offsetWidth;}

document.getElementById('BORDEAUXOverlayTitle').innerHTML = title;this.node.style.display = 'block';this.resize();},
resize : function() {var now = (new Date).getTime();if(this.browserIsIE8 && (now - this.tsLastResize < 250)) {this.tsLastResize = now;return;}
this.tsLastResize = now;var viewboxWidth = this.getViewboxWidth();var viewboxHeight = this.getViewboxHeight();var documentScrollHeight = document.documentElement.scrollHeight;var documentScrollTop = document.documentElement.scrollTop;if(this.browserIsChrome) {documentScrollHeight = Math.max(documentScrollHeight, document.documentElement.clientHeight);}
var iframeDoc = null;try {var iframeDoc = this.iframe.contentWindow.document;} catch (e) {}
var iframeContentHeight = null;var iframeContentWidth = null;if(iframeDoc != null && iframeDoc.body != null) {iframeContentHeight = iframeDoc.body.scrollHeight;iframeContentWidth = iframeDoc.body.scrollWidth;if(this.browserIsFirefox) {iframeContentWidth = Math.max(iframeContentWidth, iframeDoc.documentElement.scrollWidth);}
if(this.browserIsIE6 || this.browserIsIE7) {iframeContentHeight+= 10;iframeContentWidth+= 10;}}
if(this.height != null) {iframeContentHeight = this.height;}else if(iframeContentHeight == null) {iframeContentHeight = this.DEFAULT_HEIGHT;}
if(this.width != null) {iframeContentWidth = this.width;}else if(iframeContentWidth == null) {iframeContentWidth = this.DEFAULT_WIDTH;}
this.iframe.style.height = iframeContentHeight + 'px';var overlayBar = document.getElementById('TF1OverlayBar');var newBoxHeight = iframeContentHeight + overlayBar.offsetHeight;var newBoxWidth = iframeContentWidth;this.box.style.height = newBoxHeight + 'px';this.box.style.width = newBoxWidth + 'px';this.box.style.left = ((viewboxWidth - newBoxWidth) / 2) + 'px';var spacerHeight = (viewboxHeight - newBoxHeight) / 2;var newOverlayHeight = 0;if(spacerHeight < 0) {spacerHeight = 100;newOverlayHeight = Math.max(newBoxHeight + spacerHeight * 2, documentScrollHeight);}else{newOverlayHeight = documentScrollHeight;}
this.node.style.height = newOverlayHeight + 'px';if(this.browserIsIE6) {document.getElementById('TF1OverlayMask').style.height = newOverlayHeight + 'px';this.node.style.width = document.documentElement.clientWidth;}
this.box.style.top = documentScrollTop + spacerHeight + 'px';},
doOnWindowResize : function() {TF1Overlay.resize();},
doOnBeforeUsed : function() {document.domain = getMainDocDomain();addEvtListener(window, 'resize', this.doOnWindowResize);},
doOnAfterUsed : function() {removeEvtListener(window, 'resize', this.doOnWindowResize);}}
var MsoFront = {DEFAULT_POPUP_WIDTH : 800,
DEFAULT_POPUP_HEIGHT : 600,
open : function(pageName, unvId, srvId, targetUrl, useOverlay, overlayCallback, popupParams) {var url = this.getUrl(pageName, unvId, srvId, targetUrl);this.openUrl(url, useOverlay, overlayCallback, popupParams);},
openUrl : function(url, useOverlay, overlayCallback, popupParams) {if(typeof useOverlay == 'undefined') {useOverlay = true;}
if(!useOverlay) {window.location.href = url;return;}
var width = null;var height = null;if(typeof popupParams == 'undefined') {popupParams = null;}
if(typeof overlayCallback != 'function' && popupParams != null) {overlayCallback = function(url) {var width = (typeof popupParams.width != 'undefined')?popupParams.width:MsoFront.DEFAULT_POPUP_WIDTH;var height = (typeof popupParams.height != 'undefined')?popupParams.height:MsoFront.DEFAULT_POPUP_HEIGHT;var windowName = (typeof popupParams.windowName != 'undefined')?popupParams.windowName:'Popup';var features = 'width=' + width + ',height=' + height;window.open(url, windowName, features);BORDEAUXOverlay.close();}}
BORDEAUXOverlay.open(url, width, height, false, overlayCallback);},
getUrl : function(pageName, unvId, srvId, targetUrl) {if(typeof targetUrl == 'undefined' || targetUrl == '') {if(pageName == 'deconnexion' && window.location.href.indexOf('/mon-compte/') != -1) {targetUrl = 'http://' + window.location.hostname;}else{targetUrl = escape(window.location.href);}}
if(targetUrl.indexOf('/') == 0) {targetUrl = 'http://' + window.location.hostname + targetUrl;}
var url = 'http://' + LOGIN_HOSTNAME + '/src/' + pageName + '.php?unv_id=' + unvId + '&srv_id=' + srvId + '&referer=' + targetUrl;return url;},
doOnLoadProtectedVideo : function() {if(!MsoFront.userIsIdentified()) {MsoFront.showOverlayWatVideo();return;}
MsoFront.checkUserSubscription(SRV_ID_VIDEO_CATCHUP);},
getElementPosition : function(theElement) {var posX = 0;var posY = 0;while(theElement != null){posX += theElement.offsetLeft;posY += theElement.offsetTop;theElement = theElement.offsetParent;}
return {x:posX,y: posY};},
showOverlayWatVideo : function() {var flashPlayer = gId('FlashPlayer');var playerInstance = gId('WATPlayerInstance');if(flashPlayer == null) {return;}
var p = this.getElementPosition(flashPlayer);var marginLeft = flashPlayer.clientWidth * 1/6;var marginTop = flashPlayer.clientHeight * 1/6;var topPos = marginTop + p.y;var leftPos = marginLeft + p.x;var width = flashPlayer.clientWidth * 2/3;var height = flashPlayer.clientHeight * 2/3;frame.style.top = topPos + 'px';frame.style.left = leftPos + 'px';frame.style.height = height + 'px';frame.style.width = width + 'px';panel.style.top = topPos + 'px';panel.style.left = leftPos + 'px';panel.style.height = height + 'px';panel.style.width = width + 'px';playerInstance.style.visibility = 'hidden';},
hideOverlayWatVideo : function() {var playerInstance = gId('WATPlayerInstance');var frame = document.getElementById('watOverlayFrame');var panel = document.getElementById('watOverlayPanel');if(playerInstance == null || frame == null || panel == null) {return;}
playerInstance.style.visibility = 'visible';var flashPlayer = gId('FlashPlayer');flashPlayer.parentNode.removeChild(frame);flashPlayer.parentNode.removeChild(panel);},
doOnClickWatVideoSubscribe : function(ident) {var pageName = '';if(ident) {pageName = 'identification';}else{pageName = 'inscription';}
this.open(pageName, unv_id, SRV_ID_VIDEO_CATCHUP, 'emptyUrl', true, this.doOnLoadProtectedVideo);},
userIsIdentified : function() {var ticket = getCookie('_MSOTICKET_');var identified = (ticket != 'Undefined' && ticket.match(/[0-9]{30}/) != null)
return identified;},
userIsSubscribed : function(srvId) {var msoSrv = getCookie('_MSOSRV_');var srvList = [];if(msoSrv != 'Undefined' && msoSrv.match(/^[0-9;]+/) != null) {srvList = unescape(msoSrv).split(',');}
for(var i = 0, n = srvList.length; i < n; i++) {if(srvList[i] == srvId) {return true;}}
return false;},
userIsAllowedWatVideo : function() {if(this.userIsIdentified() && this.userIsSubscribed(SRV_ID_VIDEO_CATCHUP)) {return "1";}
return "0";},
checkUserSubscription : function(srvId) {if(MsoFront.userIsSubscribed(srvId)) {MsoFront.doOnUserSubscriptionChecked();return;}
this.open('identification', unv_id, srvId, 'emptyUrl', true, function () {MsoFront.checkUserSubscription(srvId)});},
doOnUserSubscriptionChecked : function() {TF1Overlay.close();MsoFront.hideOverlayWatVideo();if(typeof WATPlayer != 'undefined') {WATPlayer.userAuthorisationGranted();}},
getUserPseudo : function() {var c = getCookie('_MSOPSEUDO_');return (c != 'Undefined')?c:'';}}
if(typeof(bsn) == "undefined")
_b = bsn = {};if(typeof(_b.Autosuggest) == "undefined")
_b.Autosuggest = {};_b.AutoSuggest = function (id, param)
{if(!document.getElementById)
return 0;this.fld = _b.DOM.gE(id);if(!this.fld)
return 0;this.sInp 	= "";this.nInpC 	= 0;this.aSug 	= [];this.iHigh 	= 0;this.oP = param ? param : {};var k, def = {minchars:1, meth:"get", varname:"input", className:"autosuggest", timeout:2500, delay:500, offsety:-5, shownoresults: true, noresults: "No results!", maxheight: 250, cache: true, maxentries: 25};for(k in def)
{if(typeof(this.oP[k]) != typeof(def[k]))
this.oP[k] = def[k];}
var p = this;this.fld.onkeypress 	= function(ev){ return p.onKeyPress(ev); };this.fld.onkeyup 		= function(ev){ return p.onKeyUp(ev); };this.fld.setAttribute("autocomplete","off");};_b.AutoSuggest.prototype.onKeyPress = function(ev)
{var key = (window.event) ? window.event.keyCode : ev.keyCode;var RETURN = 13;var TAB = 9;var ESC = 27;var bubble = 1;switch(key)
{case RETURN:
this.setHighlightedValue();bubble = 0;break;case ESC:
this.clearSuggestions();break;}
return bubble;};_b.AutoSuggest.prototype.onKeyUp = function(ev)
{var key = (window.event) ? window.event.keyCode : ev.keyCode;var ARRUP = 38;var ARRDN = 40;var bubble = 1;switch(key)
{case ARRUP:
this.changeHighlight(key);bubble = 0;break;case ARRDN:
this.changeHighlight(key);bubble = 0;break;default:
this.getSuggestions(this.fld.value);}
return bubble;};_b.AutoSuggest.prototype.getSuggestions = function (val)
{if(val == this.sInp)
return 0;_b.DOM.remE(this.idAs);this.sInp = val;if(val.length < this.oP.minchars)
{this.aSug = [];this.nInpC = val.length;return 0;}
var ol = this.nInpC;this.nInpC = val.length ? val.length : 0;var l = this.aSug.length;if(this.nInpC > ol && l && l<this.oP.maxentries && this.oP.cache)
{var arr = [];for(var i=0;i<l;i++)
{if(this.aSug[i].value.substr(0,val.length).toLowerCase() == val.toLowerCase())
arr.push( this.aSug[i] );}
this.aSug = arr;this.createList(this.aSug);return false;}
else
{var pointer = this;var input = this.sInp;clearTimeout(this.ajID);this.ajID = setTimeout( function() { pointer.doAjaxRequest(input) }, this.oP.delay );}
return false;};_b.AutoSuggest.prototype.doAjaxRequest = function (input)
{if(input != this.fld.value)
return false;var pointer = this;if(typeof(this.oP.script) == "function")
var url = this.oP.script(encodeURIComponent(this.sInp));else
var url = this.oP.script+this.oP.varname+"="+encodeURIComponent(this.sInp);if(!url)
return false;var meth = this.oP.meth;var input = this.sInp;var onSuccessFunc = function (req) { pointer.setSuggestions(req, input) };var onErrorFunc = function (status) {};var myAjax = new _b.Ajax();myAjax.makeRequest( url, meth, onSuccessFunc, onErrorFunc );};_b.AutoSuggest.prototype.setSuggestions = function (req, input)
{if(input != this.fld.value)
return false;this.aSug = [];if(this.oP.json)
{var jsondata = eval('(' + req.responseText + ')');if(jsondata[1].length > 0) {for(var i=0; i<jsondata[1].length; i++) {this.aSug.push({'id':i, 'value':jsondata[1][i]});}}}
else
{var xml = req.responseXML;var results = xml.getElementsByTagName('results')[0].childNodes;for(var i=0;i<results.length;i++)
{if(results[i].hasChildNodes())
this.aSug.push(  { 'id':results[i].getAttribute('id'), 'value':results[i].childNodes[0].nodeValue, 'info':results[i].getAttribute('info') }  );}}
this.idAs = "as_"+this.fld.id;this.createList(this.aSug);};_b.AutoSuggest.prototype.createList = function(arr)
{var pointer = this;_b.DOM.remE(this.idAs);this.killTimeout();if(arr.length == 0 && !this.oP.shownoresults)
return false;var div = _b.DOM.cE("div", {id:this.idAs, className:this.oP.className});var hcorner = _b.DOM.cE("div", {className:"as_corner"});var hbar = _b.DOM.cE("div", {className:"as_bar"});var header = _b.DOM.cE("div", {className:"as_header"});header.appendChild(hcorner);header.appendChild(hbar);div.appendChild(header);var ul = _b.DOM.cE("ul", {id:"as_ul"});for(var i=0;i<arr.length;i++)
{var val = arr[i].value;var st = val.toLowerCase().indexOf( this.sInp.toLowerCase() );var output = val.substring(0,st) + "<em>" + val.substring(st, st+this.sInp.length) + "</em>" + val.substring(st+this.sInp.length);var span 		= _b.DOM.cE("span", {}, output, true);if(arr[i].info != "")
{var br			= _b.DOM.cE("br", {});span.appendChild(br);var small		= _b.DOM.cE("small", {}, arr[i].info);span.appendChild(small);}
var a 			= _b.DOM.cE("a", { href:"#" });var tl 		= _b.DOM.cE("span", {className:"tl"}, " ");var tr 		= _b.DOM.cE("span", {className:"tr"}, " ");a.appendChild(tl);a.appendChild(tr);a.appendChild(span);a.name = i+1;a.onclick = function () { pointer.setHighlightedValue(); return false; };a.onmouseover = function () { pointer.setHighlight(this.name); };var li = _b.DOM.cE(  "li", {}, a  );ul.appendChild( li );}
if(arr.length == 0 && this.oP.shownoresults)
{var li = _b.DOM.cE(  "li", {className:"as_warning"}, this.oP.noresults  );ul.appendChild( li );}
div.appendChild( ul );var fcorner = _b.DOM.cE("div", {className:"as_corner"});var fbar = _b.DOM.cE("div", {className:"as_bar"});var footer = _b.DOM.cE("div", {className:"as_footer"});footer.appendChild(fcorner);footer.appendChild(fbar);div.appendChild(footer);var pos = _b.DOM.getPos(this.fld);div.style.left 		= pos.x + "px";div.style.top 		= ( pos.y + this.fld.offsetHeight + this.oP.offsety ) + "px";div.style.width 	= this.fld.offsetWidth + "px";div.onmouseover 	= function(){ pointer.killTimeout() };div.onmouseout 		= function(){ pointer.resetTimeout() };document.getElementsByTagName("body")[0].appendChild(div);this.iHigh = 0;var pointer = this;this.toID = setTimeout(function () { pointer.clearSuggestions() }, this.oP.timeout);};_b.AutoSuggest.prototype.changeHighlight = function(key)
{var list = _b.DOM.gE("as_ul");if(!list)
return false;var n;if(key == 40)
n = this.iHigh + 1;else if(key == 38)
n = this.iHigh - 1;if(n > list.childNodes.length)
n = list.childNodes.length;if(n < 1)
n = 1;this.setHighlight(n);};_b.AutoSuggest.prototype.setHighlight = function(n)
{var list = _b.DOM.gE("as_ul");if(!list)
return false;if(this.iHigh > 0)
this.clearHighlight();this.iHigh = Number(n);list.childNodes[this.iHigh-1].className = "as_highlight";this.killTimeout();};_b.AutoSuggest.prototype.clearHighlight = function()
{var list = _b.DOM.gE("as_ul");if(!list)
return false;if(this.iHigh > 0)
{list.childNodes[this.iHigh-1].className = "";this.iHigh = 0;}};_b.AutoSuggest.prototype.setHighlightedValue = function ()
{if(this.iHigh)
{this.sInp = this.fld.value = this.aSug[ this.iHigh-1 ].value;this.fld.focus();if(this.fld.selectionStart)
this.fld.setSelectionRange(this.sInp.length, this.sInp.length);this.clearSuggestions();if(typeof(this.oP.callback) == "function")
this.oP.callback( this.aSug[this.iHigh-1] );}};_b.AutoSuggest.prototype.killTimeout = function()
{clearTimeout(this.toID);};_b.AutoSuggest.prototype.resetTimeout = function()
{clearTimeout(this.toID);var pointer = this;this.toID = setTimeout(function () { pointer.clearSuggestions() }, 1000);};_b.AutoSuggest.prototype.clearSuggestions = function ()
{this.killTimeout();var ele = _b.DOM.gE(this.idAs);var pointer = this;if(ele)
{var fade = new _b.Fader(ele,1,0,250,function () { _b.DOM.remE(pointer.idAs) });}};if(typeof(_b.Ajax) == "undefined")
_b.Ajax = {};_b.Ajax = function ()
{this.req = {};this.isIE = false;};_b.Ajax.prototype.makeRequest = function (url, meth, onComp, onErr)
{if(meth != "POST")
meth = "GET";this.onComplete = onComp;this.onError = onErr;var pointer = this;if(window.XMLHttpRequest)
{this.req = new XMLHttpRequest();this.req.onreadystatechange = function () { pointer.processReqChange() };this.req.open("GET", url, true);this.req.send(null);}
else if(window.ActiveXObject)
{this.req = new ActiveXObject("Microsoft.XMLHTTP");if(this.req)
{this.req.onreadystatechange = function () { pointer.processReqChange() };this.req.open(meth, url, true);this.req.send();}}};_b.Ajax.prototype.processReqChange = function()
{if(this.req.readyState == 4) {if(this.req.status == 200)
{this.onComplete( this.req );}else{this.onError( this.req.status );}}};if(typeof(_b.DOM) == "undefined")
_b.DOM = {};_b.DOM.cE = function ( type, attr, cont, html )
{var ne = document.createElement( type );if(!ne)
return 0;for(var a in attr)
ne[a] = attr[a];var t = typeof(cont);if(t == "string" && !html)
ne.appendChild( document.createTextNode(cont) );else if(t == "string" && html)
ne.innerHTML = cont;else if(t == "object")
ne.appendChild( cont );return ne;};_b.DOM.gE = function ( e )
{var t=typeof(e);if(t == "undefined")
return 0;else if(t == "string")
{var re = document.getElementById( e );if(!re)
return 0;else if(typeof(re.appendChild) != "undefined" )
return re;else
return 0;}
else if(typeof(e.appendChild) != "undefined")
return e;else
return 0;};_b.DOM.remE = function ( ele )
{var e = this.gE(ele);if(!e)
return 0;else if(e.parentNode.removeChild(e))
return true;else
return 0;};_b.DOM.getPos = function ( e )
{var e = this.gE(e);var obj = e;var curleft = 0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft += obj.offsetLeft;obj = obj.offsetParent;}}
else if(obj.x)
curleft += obj.x;var obj = e;var curtop = 0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop += obj.offsetTop;obj = obj.offsetParent;}}
else if(obj.y)
curtop += obj.y;return {x:curleft, y:curtop};};if(typeof(_b.Fader) == "undefined")
_b.Fader = {};_b.Fader = function (ele, from, to, fadetime, callback)
{if(!ele)
return 0;this.e = ele;this.from = from;this.to = to;this.cb = callback;this.nDur = fadetime;this.nInt = 50;this.nTime = 0;var p = this;this.nID = setInterval(function() { p._fade() }, this.nInt);};_b.Fader.prototype._fade = function()
{this.nTime += this.nInt;var ieop = Math.round( this._tween(this.nTime, this.from, this.to, this.nDur) * 100 );var op = ieop / 100;if(this.e.filters)
{try
{this.e.filters.item("DXImageTransform.Microsoft.Alpha").opacity = ieop;} catch (e) {this.e.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity='+ieop+')';}}
else
{this.e.style.opacity = op;}
if(this.nTime == this.nDur)
{clearInterval( this.nID );if(this.cb != undefined)
this.cb();}};_b.Fader.prototype._tween = function(t,b,c,d)
{return b + ( (c-b) * (t/d) );};
