/*	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF&&typeof doc.appendChild!=UNDEF&&typeof doc.replaceChild!=UNDEF&&typeof doc.removeChild!=UNDEF&&typeof doc.cloneNode!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0;}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7");}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always";}catch(e){if(playerVersion[0]==6){fp6Crash=true;}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX);}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac};}();var onDomLoad=function(){if(!ua.w3cdom){return;}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true><\/script>");var s=getElementById("__ie_ondomload");if(s){s.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);callDomLoadFunctions();}};}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions();}},10);}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null);}addLoadEvent(callDomLoadFunctions);}();function callDomLoadFunctions(){if(isDomLoaded){return;}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t);}catch(e){return;}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null;}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]();}}function addDomLoadEvent(fn){if(isDomLoaded){fn();}else{domLoadFnArr[domLoadFnArr.length]=fn;}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false);}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false);}else{if(typeof win.attachEvent!=UNDEF){win.attachEvent("onload",fn);}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn();};}else{win.onload=fn;}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj);}setVisibility(id,true);}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i]);}else{displayAltContent(obj);}}}}else{setVisibility(id,true);}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName.toLowerCase()=="data"){e.setAttribute("src",a[i].nodeValue);}else{e.setAttribute(a[i].nodeName,a[i].nodeValue);}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName.toLowerCase()=="param"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"));}}}obj.parentNode.replaceChild(e,obj);}}function fixObjectLeaks(id){if(ua.ie&&ua.win&&hasPlayerVersion("8.0.0")){win.attachEvent("onunload",function(){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=function(){};}}obj.parentNode.removeChild(obj);}});}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId;}}else{storedAltContent=abstractAltContent(obj);}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310";}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137";}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";win.attachEvent("onload",function(){obj.parentNode.removeChild(obj);});}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId);}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";win.attachEvent("onload",function(){obj.parentNode.removeChild(obj);});}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj);}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML;}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true));}}}}}return ac;}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(typeof attObj.id==UNDEF){attObj.id=id;}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i=="data"){parObj.movie=attObj[i];}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"';}else{if(i!="classid"){att+=" "+i+'="'+attObj[i]+'"';}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />';}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";fixObjectLeaks(attObj.id);r=getElementById(attObj.id);}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k=="data"){e.setAttribute("src",attObj[k]);}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k]);}else{if(k!="classid"){e.setAttribute(k,attObj[k]);}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l!="movie"){e.setAttribute(l,parObj[l]);}}}el.parentNode.replaceChild(e,el);r=e;}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m]);}else{if(m!="classid"){o.setAttribute(m,attObj[m]);}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n!="movie"){createObjParam(o,n,parObj[n]);}}el.parentNode.replaceChild(o,el);r=o;}}return r;}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p);}function getElementById(id){return doc.getElementById(id);}function createElement(el){return doc.createElement(el);}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10);v[2]=parseInt(v[2],10);return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false;}function createCSS(sel,decl){if(ua.ie&&ua.mac){return;}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"));}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl);}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded){getElementById(id).style.visibility=v;}else{createCSS("#"+id,"visibility:"+v);}}function getTargetVersion(obj){if(!obj){return 0;}var c=obj.childNodes;var cl=c.length;for(var i=0;i<cl;i++){if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="object"){c=c[i].childNodes;cl=c.length;i=0;}if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param"&&c[i].getAttribute("name")=="swfversion"){return c[i].getAttribute("value");}}return 0;}function getExpressInstall(obj){if(!obj){return"";}var c=obj.childNodes;var cl=c.length;for(var i=0;i<cl;i++){if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="object"){c=c[i].childNodes;cl=c.length;i=0;}if(c[i].nodeType==1&&c[i].nodeName.toLowerCase()=="param"&&c[i].getAttribute("name")=="expressinstall"){return c[i].getAttribute("value");}}return"";}return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr){return;}var obj=document.getElementById(objectIdStr);var xi=getExpressInstall(obj);var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr?swfVersionStr:getTargetVersion(obj);regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:((xi!="")?xi:false);regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false);},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom&&isDomLoaded){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o;}else{if(typeof n.SetVariable!=UNDEF){r=n;}}}}return r;},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return;}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att=(typeof attObj==OBJECT)?attObj:{};att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par=(typeof parObj==OBJECT)?parObj:{};if(typeof flashvarsObj==OBJECT){for(var i in flashvarsObj){if(flashvarsObj[i]!=Object.prototype[i]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+i+"="+flashvarsObj[i];}else{par.flashvars=i+"="+flashvarsObj[i];}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true);}});}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj);});}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]};},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom&&isDomLoaded){return createSWF(attObj,parObj,replaceElemIdStr);}else{return undefined;}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl);}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return q;}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return pairs[i].substring((pairs[i].indexOf("=")+1));}}}return"";},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block";}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false;}}}};}();
function UpdateListWidth(listId){var list=document.getElementById(listId);var item=null;var n=list.childNodes.length;var width=0;for(var i=0;i<n;i++){item=list.childNodes[i];if(item.offsetWidth){width+=parseInt($(item).css("marginLeft"),10)+item.offsetWidth+parseInt($(item).css("marginRight"),10)+10;}}$(list).width(width);}function WidgetsLoadContent(widgetId){var Reply=$.ajax({url:"/FRONT/NetExpress/widgets/widgets_getwidget.php?socle="+socle_id+"&lang="+lan_s_id+"&widgetid="+widgetId+"&what=1",async:false}).responseXML;if(Reply){var Status=Reply.getElementsByTagName("Status")[0].firstChild;var Content=Reply.getElementsByTagName("Content")[0].firstChild;if(Status.nodeValue=="0"){$(".widgetBlock[widgetid="+widgetId+"] .widgetContent").html(Content.nodeValue);}}}function WidgetsLoadParams(widgetId){var Reply=$.ajax({url:"/FRONT/NetExpress/widgets/widgets_getwidget.php?socle="+socle_id+"&lang="+lan_s_id+"&widgetid="+widgetId+"&what=2",async:false}).responseXML;if(Reply){var Status=Reply.getElementsByTagName("Status")[0].firstChild;var Content=Reply.getElementsByTagName("Content")[0].firstChild;if(Status.nodeValue=="0"){$(".widgetBlock[widgetid="+widgetId+"] .widgetParam").html(Content.nodeValue);}}}function WidgetsShowContent(widgetId){$(".widgetBlock[widgetid="+widgetId+"]").quickFlipper({noResize:true},0,1);}function WidgetsShowParams(widgetId){$(".widgetBlock[widgetid="+widgetId+"]").quickFlipper({noResize:true},1,1);}function FavorisAddCurrentPage(){var update=false;userPrefs.load();var favoris=userPrefs.data.favoris;if((favoris==null)||(favoris==undefined)||(favoris=="")){userPrefs.data.favoris=coe_i_id;update=true;}else{if(jQuery.inArray(coe_i_id.toString(),favoris.toString().split(","))<0){favoris+=","+coe_i_id;userPrefs.data.favoris=favoris;update=true;}}if(update){var message=LabelWidgetsPageAjouteeFavoris;userPrefs.save();if(typeof(FavorisReload)=="function"){FavorisReload();}}else{var message=LabelWidgetsPageInFavoris;}$(".msgtoolbar").text(message).css("display","").fadeIn();setTimeout(function(){$(".msgtoolbar").fadeOut();},5000);}$(document).ready(function(){var SaveUserWidgetsList=function(){var ids="";$("#UserWidgets").children("[widgetid]").each(function(i){if(ids!=""){ids+=",";}ids+=$(this).attr("widgetid");});$.cookie(WidgetCookieCatalog,ids,{expires:365,domain:getShortDomain(),path:"/"});$.cookie("VARNISH","no-cache",{expires:365});};var OnStopSort=function(event,ui){SaveUserWidgetsList();};var OnDrop=function(event,ui){var WidgetBlock=$(this);var WidgetThumbnail=ui.draggable;var OldWidgetId=WidgetBlock.attr("widgetid");var NewWidgetId=WidgetThumbnail.attr("widgetid");var Reply=$.ajax({url:"/FRONT/NetExpress/widgets/widgets_getwidget.php?socle="+socle_id+"&lang="+lan_s_id+"&widgetid="+NewWidgetId+"&what=0",async:false}).responseXML;if(Reply){var Status=Reply.getElementsByTagName("Status")[0].firstChild;var Content=Reply.getElementsByTagName("Content")[0].firstChild;if(Status.nodeValue=="0"){$(".widgetContent").droppable("destroy");WidgetBlock.attr("widgetid",NewWidgetId);WidgetBlock.html(Content.nodeValue);WidgetBlock.quickFlip({noResize:true});$(".widgetContent").droppable({accept:".widgetThumbnail",hoverClass:"dropActive",drop:OnDrop});WidgetThumbnail.hide();$("#Widget_"+OldWidgetId).show();SaveUserWidgetsList();}}};InstallMouseWheelScroll("WgCarousel",false,true,true);$("#UserWidgets").sortable({handle:".boxTop",placeholder:"widgetPlaceHolder",stop:OnStopSort});$("#UserWidgets").disableSelection();$(".widgetBlock").droppable({accept:".widgetThumbnail",hoverClass:"dropActive",drop:OnDrop});$("#WgCarouselPrev").click(function(){Scroll("WgCarousel",false,true,false,true);return false;});$("#WgCarouselNext").click(function(){Scroll("WgCarousel",false,false,false,true);return false;});$("#OpenWidgetsList").click(function(){$("#WidgetsListBlock").slideDown(200);$("#OpenWidgetsList").hide();UpdateListWidth("WgCarousel");return false;});$("#CloseWidgetsList").click(function(){$("#WidgetsListBlock").slideUp(200);$("#OpenWidgetsList").show();return false;});$(".widgetThumbnail").draggable({helper:"clone",appendTo:"#Widgets",revert:"invalid"});$(".ptbFavoris").click(function(){FavorisAddCurrentPage();return false;});});
var ie5=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.0")!=-1);var ie55=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var ie6=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);if(!ie5){jQuery(document).ready(function(){jQuery("a[rel='external']").each(function(i){if(typeof jQuery(this).attr("title")=="undefined"){jQuery(this).attr("title",jQuery(this).attr("href")+"    (external link)");}else{jQuery(this).attr("title",jQuery(this).attr("title")+"    (external link)");}jQuery(this).append('<span class="external" title="'+jQuery(this).attr("title")+'">&nbsp;</span>').click(function(){window.open(jQuery(this).attr("href"));return false;});});});}
var timeout=300;var closetimer=null;var ddmenuitem=null;function jsddm_open(){jsddm_close();jsddm_canceltimer();ddmenuitem=$(this).find("ul").show();}function jsddm_close(){if(ddmenuitem){ddmenuitem.hide();}}function jsddm_timer(){closetimer=window.setTimeout(jsddm_close,timeout);}function jsddm_canceltimer(){if(closetimer){window.clearTimeout(closetimer);closetimer=null;}}$(function(){if(document.getElementById("HeaderSearchInputText")){var SearchKeywords="";$("#HeaderSearchInputText").focus(function(){if(SearchKeywords==""){SearchKeywords=this.value;this.value="";}});$("#HeaderSearchInputText").blur(function(){if(this.value==""){this.value=SearchKeywords;SearchKeywords="";}});}$(this).find("ul.subnav > li").height($(this).find("ul.subnav").height());jsddm_close();if(document.getElementById("HETurgenceDepannageMenu")){$("#HETurgenceDepannageMenu > li").bind("mouseover",jsddm_open);$("#HETurgenceDepannageMenu > li").bind("mouseout",jsddm_timer);}$("#HETsiteMenu > li").bind("mouseover",jsddm_open);$("#HETsiteMenu > li").bind("mouseout",jsddm_timer);$("#HITcountryMenu > li").bind("mouseover",jsddm_open);$("#HITcountryMenu > li").bind("mouseout",jsddm_timer);document.onclick=jsddm_close;});
var userPrefs={data:{},load:function(){var d=$.cookie("uprefs");if(d!=null){this.data=$.secureEvalJSON(d);}},save:function(){$.cookie("uprefs",$.toJSON(this.data),{expires:365,domain:getShortDomain(),path:"/"});}};function openFancyFull(id){$("#lien-"+id).fancybox({padding:35,overlayOpacity:0.6,overlayColor:"#FFF",autoDimensions:true,centerOnScroll:true,titleShow:false});$("#lien-"+id).click();}function getShortDomain(){var a=document.domain.split(".");if(a.length>2){var domain=a[a.length-2]+"."+a[a.length-1];}else{var domain=document.domain;}return"."+domain;}function GetURLParam(paramName){var paramValue=0;var url=window.location.href.toLowerCase().replace(/.*\?(.*?)/,"$1");var params=url.split("&");var elements;var i=0;while(i<params.length){elements=params[i].split("=");if(elements[0]==paramName){paramValue=elements[1].split("#")[0];i=params.length;}else{i++;}}return paramValue;}$(function(){$("a.w_fancy").each(function(){$(this).fancybox({padding:35,overlayOpacity:0.6,overlayColor:"#FFF",autoDimensions:false,centerOnScroll:true,titleShow:false});});$("a.w_fancy2").click(function(){$(".fancy2").hide();var L=$(this).attr("rel");$(L).show();});$(".fancybox-close").click(function(){$(this).parent().fadeOut();});if(document.getElementById("NavParams")){var useSmartMenus=false;var useWidgets=false;var getCheckBox=function(checkBoxName){var checkbox=document.getElementById(checkBoxName);if(checkbox){return checkbox.checked;}else{return false;}};var setCheckBox=function(checkBoxName,value){var checkbox=document.getElementById(checkBoxName);if(checkbox){checkbox.checked=value;}};var hiConfig={sensitivity:20,interval:200,timeout:200,over:function(){setCheckBox("ParamNavUseSmartMenus",useSmartMenus);setCheckBox("ParamNavUseWidgets",useWidgets);var hn=$(this).parent().find("ul.subnav1").height();$(this).parent().find("li.title").css({height:(hn)+"px"});$(this).parent().find("ul.subnav1").show();$(this).parent().addClass("hoverActive");$(this).parent().hover(function(){},function(){$(this).parent().find("li.hoverActive").removeClass("hoverActive");$(this).parent().find("ul.subnav1").hide();});},out:function(){}};var activateSmartMenus=function(){var offset=$("#menu1").offset();var maxRight=offset.left+$("#menu1").width();$("#menu1 li").each(function(){var li=$(this);var subNav=li.children(".smartMenuSubnav");var level2=((subNav.size()>0)&&subNav.hasClass("smsn2"));if(level2){var oldTopValue=subNav.css("top");var nbItemSubNav=subNav.find("ul li").size();var changeTop=(li.hasClass("last")&&(nbItemSubNav>10));if(changeTop){var newTopValue=-(subNav.outerHeight()/3)+"px";}var menu=li.parents("li");var offset=menu.offset();if((offset.left+2*subNav.width()-40)>maxRight){menu.addClass("smsnAlignLeft");}}else{var offset=li.offset();if((offset.left+subNav.width())>maxRight){li.addClass("smsnAlignLeft");}}var hiConfig={sensitivity:20,interval:100,timeout:100,over:function(){li.addClass("hoverActive");subNav.addClass("smartMenuSubnavActive");if(level2){if(changeTop){subNav.css("top",newTopValue);}}},out:function(){li.removeClass("hoverActive");subNav.removeClass("smartMenuSubnavActive");if(level2){if(changeTop){subNav.css("top",oldTopValue);}}}};li.hoverIntent(hiConfig);});};var desactivateSmartMenus=function(){$("#menu1 li").each(function(){$(this).hoverIntent();});};userPrefs.load();useSmartMenus=(userPrefs.data.useSmartMenus==true);useWidgets=(userPrefs.data.useWidgets==true);if(useSmartMenus){activateSmartMenus();}if(useWidgets){$("#WidgetsShower").show();}$("#NavParams").hoverIntent(hiConfig);$("#NavParams").click(function(){return false;});$("#ParamNav").submit(function(){useSmartMenus=getCheckBox("ParamNavUseSmartMenus");useWidgets=getCheckBox("ParamNavUseWidgets");userPrefs.load();userPrefs.data.useSmartMenus=useSmartMenus;userPrefs.data.useWidgets=useWidgets;userPrefs.save();$("#ParamNavBox").hide();if(useSmartMenus){activateSmartMenus();}else{desactivateSmartMenus();}if(useWidgets){$("#WidgetsShower").show();}else{$("#WidgetsShower").hide();}return false;});}if(document.getElementById("GoSiteMap")){$("#GoSiteMap").click(function(){if(domaine_page_id&&(domaine_page_id!=0)){window.location.href=$(this).attr("href")+"&idChapitre="+domaine_page_id;return false;}else{return true;}});}});var IsScrolling=false;function Scroll(listId,vertical,previous,byOne,fixedSize){var list=document.getElementById(listId);var container=list.parentNode;var itemsList=[];var i=0;var n=list.childNodes.length;var a=0;var item=null;var newScroll=null;var increment=1;var scrollTimer=null;if(vertical){var maxScroll=list.offsetHeight-container.offsetHeight;}else{var maxScroll=list.offsetWidth-container.offsetWidth;}var closeTimer=function(){if(vertical){container.scrollTop=newScroll;}else{container.scrollLeft=newScroll;}window.clearInterval(scrollTimer);scrollTimer=null;IsScrolling=false;};var scrollFunc=function(){if(vertical){var currentScroll=container.scrollTop;}else{var currentScroll=container.scrollLeft;}if(previous){var continuer=((currentScroll+increment)>=newScroll);}else{var continuer=((currentScroll+increment)<=newScroll);}if(continuer){if(vertical){container.scrollTop+=increment;if(currentScroll==container.scrollTop){closeTimer();}}else{container.scrollLeft+=increment;if(currentScroll==container.scrollLeft){closeTimer();}}}else{closeTimer();}};while(i<n){if(vertical){a=list.childNodes[i].offsetTop;}else{a=list.childNodes[i].offsetLeft;}if(a!=null){if((a!=0)||(itemsList.length==0)){if(itemsList.length>0){itemsList[itemsList.length-1].b=a;}item=new Object();item.a=a;item.b=a;itemsList.push(item);}}i++;}n=itemsList.length;if(n>0){var find=false;if(vertical){itemsList[itemsList.length-1].b=list.offsetHeight;increment=Math.ceil(container.offsetHeight/15);}else{itemsList[itemsList.length-1].b=list.offsetWidth;increment=Math.ceil(container.offsetWidth/15);}if(previous){increment=-increment;}if(byOne){if(vertical){var viewA=container.scrollTop;}else{var viewA=container.scrollLeft;}for(i=0;i<n;i++){find=((itemsList[i].a<=viewA)&&(itemsList[i].b>viewA));if(find){if(previous){if(i>0){newScroll=itemsList[i-1].a;}else{newScroll=itemsList[i].a;}}else{if(i<(n-1)){if(fixedSize&&(itemsList[i+1].a>=maxScroll)){newScroll=itemsList[i].a;}else{newScroll=itemsList[i+1].a;}}else{newScroll=itemsList[i].a;}}break;}}}else{if(vertical){if(previous){var viewB=container.scrollTop;var viewA=viewB-container.offsetHeight;}else{var viewA=container.scrollTop;var viewB=viewA+container.offsetHeight;}}else{if(previous){var viewB=container.scrollLeft;var viewA=viewB-container.offsetWidth;}else{var viewA=container.scrollLeft;var viewB=viewA+container.offsetWidth;}}for(i=0;i<n;i++){if(previous){find=((itemsList[i].a>=viewA)||(itemsList[i].b==viewB));}else{find=(((itemsList[i].a>viewA)&&(itemsList[i].b>viewB))||(itemsList[i].a>=maxScroll));}if(find){if(fixedSize&&(itemsList[i].a>=maxScroll)&&(i>0)){newScroll=itemsList[i-1].a;}else{newScroll=itemsList[i].a;}break;}}}if(find){IsScrolling=true;scrollTimer=window.setInterval(scrollFunc,25);}}}function InstallMouseWheelScroll(listId,vertical,byOne,fixedSize){var ListMouseWheel=function(event){var delta=0;if(!event){event=window.event;}if(event.wheelDelta){delta=event.wheelDelta;}else{if(event.detail){delta=-event.detail;}}if(event.preventDefault){event.preventDefault();}event.returnValue=false;if((delta!=0)&&(!IsScrolling)){Scroll(listId,vertical,delta>0,byOne,fixedSize);}return false;};var list=document.getElementById(listId);if(list){var container=list.parentNode;if(container.addEventListener){container.addEventListener("DOMMouseScroll",ListMouseWheel,false);}container.onmousewheel=ListMouseWheel;}}

