var ns4=(document.layers)?true:false;var ns6=(document.getElementById)?true:false;var ie4=(document.all)?true:false;var ie5=false;if(ie4){if((navigator.userAgent.indexOf('MSIE 5')>0)||(navigator.userAgent.indexOf('MSIE 6')>0)){ie5=true;}
if(ns6){ns6=false;}}
var x=0;var y=0;if(ns4){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove=foncAlt;if(screen.width>=800&&!ns4){var scraper=true;}else{var scraper=false;}
function showAlt(txt,intro){var coulBord="#D3D3D3";var coulFond="images/fondbul.gif";var coulTxt="#332518";contenu='<table style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; border: '+coulBord+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px;  background-image: url('+coulFond+')"  border="0" cellspacing="1" cellpadding="1"><tr><td nowrap><font style="font-family: tahoma; font-weight: bold; padding-left: 7px; padding-right: 7px; font-size: 11px; color: '+coulTxt+'">';if(intro){contenu=contenu+'La météo sur <b>'+unescape(txt)+'</font></td></tr></table> ';longueur=getTailleDiv('La météo sur '+unescape(txt));}else{contenu=contenu+unescape(txt)+'</font></td></tr></table> ';longueur=getTailleDiv(unescape(txt));}
creaAlt(contenu);}
function getTailleDiv(txt){var result=0;var re=new RegExp('<br>','gi');var textetmp=txt.replace(re,'<BR>');var re2=new RegExp('&eacute;','gi');var texte=textetmp.replace(re2,'e');var lignes=texte.split("<BR>");for(i=0;i<lignes.length;i++){if(lignes[i].length>result){result=lignes[i].length;}}
return result*5;}
function showPro(txt){var coulBord="#FFC60A";var coulFond="#FFEBAA";var coulTxt="#000000";contenu='<table width="245" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; border: '+coulBord+'; border-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; background-color: '+coulFond+'" border="0" cellspacing="1" cellpadding="4"><tr><td><font style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: '+coulTxt+'">'+unescape(txt)+'</font></td></tr></table> ';creaAlt(contenu);}
function showPubAlt(txt){var coulBord="#000000";var coulFond="#FFFFFF";var coulTxt="#000000";contenu='<table width="140" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; border: '+coulBord+'; border-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; background-color: '+coulFond+'" border="0" cellspacing="1" cellpadding="4"><tr><td><font style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: '+coulTxt+'">'+txt+'</font></td></tr></table> ';creaAlt(contenu);}
var longueur=0;function creaAlt(contenu){if(ie4||ie5){if(longueur){x=window.ALTdHTML.style.left.substr(0,window.ALTdHTML.style.left.indexOf("px"))*1;if(x>document.body.clientWidth-(longueur)){if(x-longueur<0){window.ALTdHTML.style.left=0;}else{window.ALTdHTML.style.left=x-longueur;}}}
window.ALTdHTML.innerHTML=contenu;window.ALTdHTML.style.visibility='visible';}
if(ns4){document.layers["ALTdHTML"].document.write(contenu);document.layers["ALTdHTML"].document.close();document.layers.ALTdHTML.visibility='show';}
if(ns6){if(longueur){x=document.getElementById("ALTdHTML").style.left.substr(0,document.getElementById("ALTdHTML").style.left.indexOf("px"))*1;if(x>document.body.clientWidth-(longueur)){if(x-longueur<0){document.getElementById("ALTdHTML").style.left=0;}else{document.getElementById("ALTdHTML").style.left=x-longueur;}}}
document.getElementById("ALTdHTML").innerHTML=contenu;document.getElementById("ALTdHTML").style.visibility='visible';}}
LIMIT=160;var pos_pub_droite=650;function foncAlt(evt){if(ie4||ie5){x=event.clientX+document.body.scrollLeft;y=event.clientY+document.body.scrollTop;window.ALTdHTML.style.left=x+10;if(longueur){x=window.ALTdHTML.style.left.substr(0,window.ALTdHTML.style.left.indexOf("px"))*1;if((x>(document.body.clientWidth-(longueur)))||(x>(pos_pub_droite-longueur))){if(x-longueur<0){window.ALTdHTML.style.left=0;}else{window.ALTdHTML.style.left=x-longueur;}}}
window.ALTdHTML.style.top=y+14;}
if(ns4){x=(navigator.appName.substring(0,3)=="Net")?evt.pageX:event.x+document.body.scrollLeft;y=(navigator.appName.substring(0,3)=="Net")?evt.pageY:event.y+document.body.scrollTop;document.layers.ALTdHTML.left=x+10;document.layers.ALTdHTML.top=y+14;}
if(ns6){x=evt.clientX+document.body.scrollLeft;y=evt.clientY+document.body.scrollTop;document.getElementById("ALTdHTML").style.left=x+10;if(longueur){x=document.getElementById("ALTdHTML").style.left.substr(0,document.getElementById("ALTdHTML").style.left.indexOf("px"))*1;if((x>(document.body.clientWidth-(longueur)))||(x>(pos_pub_droite-longueur))){if(x-longueur<0){document.getElementById("ALTdHTML").style.left=0;}else{document.getElementById("ALTdHTML").style.left=x-longueur;}}}
document.getElementById("ALTdHTML").style.top=y+14;}}
function hideAlt(){if(ie4||ie5){window.ALTdHTML.style.visibility='hidden';window.ALTdHTML.innerHTML="";longueur=0;}else if(ns4){document.layers.ALTdHTML.visibility='hide';document.layers["ALTdHTML"].document.write("");document.layers["ALTdHTML"].document.close();}else if(ns6){document.getElementById("ALTdHTML").style.visibility='hidden';document.getElementById("ALTdHTML").innerHTML="";longueur=0;}}
function ShoHidLayers(){var i,p,v,obj,args=ShoHidLayers.arguments;if(ShoHidLayers.arguments[1]&&document.outils.elements[ShoHidLayers.arguments[1]].checked==true)
{v='show';if(ShoHidLayers.arguments[0]=="hydro")
{EcrireCookie("Hydro");}
if(ShoHidLayers.arguments[0]=="dept")
{EcrireCookie("dept");}
if(ShoHidLayers.arguments[0]=="villes")
{EcrireCookie("villes");}}
else
{v='hide';if(ShoHidLayers.arguments[0]=="hydro")
{EffacerCookie("Hydro");}
if(ShoHidLayers.arguments[0]=="dept")
{EffacerCookie("dept");}
if(ShoHidLayers.arguments[0]=="villes")
{EffacerCookie("villes");}}
for(i=0;i<(args.length-2);i+=3)
if((obj=MM_findObj(args[i]))!=null)
{if(ShoHidLayers.arguments[1]==""){v=args[i+2];}
if(obj.style)
{obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function MM_swapLink(){var i,j=0,x,a=MM_swapLink.arguments;document.MM_hr=new Array;for(i=0;i<(a.length-2);i+=3)
if(ie4||ie5||ns4||ns6){if((x=MM_findObj(a[i]))!=null){document.MM_hr[j++]=x;if(!x.oHref)x.oHref=x.href;x.href=a[i+2];}}else{document.links[a[i]].href=a[i+2];}}
function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
MM_reloadPage(true);function locateObject(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=locateObject(n,d.layers[i].document);return x;}
function MM_showHideLayers()
{var i,p,v,obj,args=MM_showHideLayers.arguments;if(MM_showHideLayers.arguments[1]&&document.outils.elements[MM_showHideLayers.arguments[1]].checked==true)
{v='show';if(MM_showHideLayers.arguments[0]=="hydro")
{EcrireCookie("Hydro");}
if(MM_showHideLayers.arguments[0]=="ville")
{EcrireCookie("ville");}}
else
{v='hide';if(MM_showHideLayers.arguments[0]=="hydro")
{EffacerCookie("Hydro");}
if(MM_showHideLayers.arguments[0]=="ville")
{EffacerCookie("ville");}}
for(i=0;i<(args.length-2);i+=3)
{if((obj=MM_findObj(args[i]))!=null)
{if(MM_showHideLayers.arguments[1]=="")
{v=args[i+2];}
if(obj.style)
{obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}}
function wclose(){top.close();}
function MM_openBrWindow(theURL,winName,features){fenetre=window.open(theURL,winName,features);fenetre.focus();}
function TabClick(nTab,length){for(i=1;i<length+1;i++){var name='Content'+i;if(ie4||ie5){MM_findObj(name).style.visibility='hidden';}else if(ns4){MM_findObj(name).visibility='hide';}else if(ns6){MM_findObj(name).style.visibility='hidden';}}
if(ie4||ie5){MM_findObj('Content'+nTab).style.visibility='visible';}
if(ns4){MM_findObj('Content'+nTab).visibility='show';}
if(ns6){MM_findObj('Content'+nTab).style.visibility='visible';}}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function EcrireCookie(nom)
{var la_date=new Date();var la_date_ms=la_date.getTime()+(31*24*60*60*1000);var la_date_2=new Date(la_date_ms);document.cookie=nom+"="+escape("1")+";expires="+la_date_2.toGMTString();document.cookie;}
function Lire(nom)
{var c=document.cookie;var fin;if(c.indexOf(";",c.indexOf(nom+"=")+nom.length+1)==-1)
{fin=c.length;}
else
{fin=c.indexOf(";",c.indexOf(nom+"=")+nom.length+1);}
if(c.indexOf(nom+"=")==-1)
{return"Cookie Invalide";}
return unescape(c.substring(c.indexOf(nom+"=")+nom.length+1,fin));}
function EffacerCookie(nom)
{var date=new Date;date.setFullYear(date.getFullYear()-1);document.cookie=nom+"="+escape("0")+";expires="+date.toGMTString();document.cookie;}
function changeLocation(url,lieuId){var redirect=url;redirect+="?LIEUID="+lieuId;if(echeanceId!=''){redirect+="&ECHEANCEID="+echeanceId;}
if(grpId!=''){redirect+="&GRPID="+grpId;}
window.location=redirect;}
