

function raz(){
document.getElementById("im_emission").src = "images/ina/off/bh_emission.jpg"
document.getElementById("im_animateur").src = "images/ina/off/bh_animateur.jpg"
document.getElementById("im_artiste").src = "images/ina/off/bh_artiste.jpg"
document.getElementById("im_video").src = "images/ina/off/bh_videos.jpg"
document.getElementById("im_melody_et_vous").src = "images/ina/off/bh_lachaine.jpg"
document.getElementById("im_services").src = "images/ina/off/bh_services.jpg"

}

function aff_emission(){
document.getElementById("im_emission").src = "images/ina/on/bh_emission.jpg"

}
function aff_animateur(){
document.getElementById("im_animateur").src = "images/ina/on/bh_animateur.jpg"

}
function aff_artiste(){
document.getElementById("im_artiste").src = "images/ina/on/bh_artiste.jpg"
}
function aff_video(){
document.getElementById("im_video").src = "images/ina/on/bh_videos.jpg"
}
function aff_melody_et_vous(){
document.getElementById("im_melody_et_vous").src = "images/ina/on/bh_lachaine.jpg"
}
function aff_services(){
document.getElementById("im_services").src = "images/ina/on/bh_services.jpg"
}


function MM_preloadImages() { //v3.0
  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_findObj(n, d) { //v4.01
  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_reloadPage(init) {  //reloads the window if Nav4 resized
  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 MM_swapImgRestore() { //v3.0
  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_swapImage() { //v3.0
  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];}
}


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}




function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
document.getElementById("calemission").contentmeasure=document.getElementById("calemission").offsetWidth
if (windowedge-document.getElementById("calemission").x < document.getElementById("calemission").contentmeasure)
edgeoffset=document.getElementById("calemission").contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
document.getElementById("calemission").contentmeasure=document.getElementById("calemission").offsetHeight
if (windowedge-document.getElementById("calemission").y < document.getElementById("calemission").contentmeasure){ //move up?
edgeoffset=document.getElementById("calemission").contentmeasure+obj.offsetHeight
if ((document.getElementById("calemission").y-topedge)<document.getElementById("calemission").contentmeasure) //up no good either?
edgeoffset=document.getElementById("calemission").y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu_emission(obj, e){
aff_emission()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calemission").style.left=leleft;
}
}


function garde_affichage_emission(){
aff_emission()
document.getElementById("calemission").style.left=leleft;
}

function dropdownmenu_animateur(obj, e){
aff_animateur()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calanimateur").style.left=leleft;
}
}


function garde_affichage_animateur(){
aff_animateur()
document.getElementById("calanimateur").style.left=leleft;
}


function dropdownmenu_artiste(obj, e){
aff_artiste()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calartiste").style.left=leleft;
}
}


function garde_affichage_artiste(){
aff_artiste()
document.getElementById("calartiste").style.left=leleft;
}

function dropdownmenu_video(obj, e){
aff_video()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calvideo").style.left=leleft;
}
}

function garde_affichage_video(){
aff_video()
document.getElementById("calvideo").style.left=leleft;
}


function dropdownmenu_melody_et_vous(obj, e){
aff_melody_et_vous()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calmeloetvous").style.left=leleft;
}
}

function garde_affichage_melody_et_vous(){
aff_melody_et_vous()
document.getElementById("calmeloetvous").style.left=leleft;
}

function dropdownmenu_services(obj, e){
aff_services()
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()


if (ie4||ns6){
leleft = getposOffset(obj, "left") + 2 - clearbrowseredge(obj, "rightedge")
document.getElementById("calservices").style.left=leleft;
}
}

function garde_affichage_services(){
aff_services()
document.getElementById("calservices").style.left=leleft;
}
function clickreturnvalue(){
//Bloque la navigation
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}



function delayhidemenu(){
raz()
document.getElementById("calemission").style.left=-500;
document.getElementById("calanimateur").style.left=-500;
document.getElementById("calartiste").style.left=-500;
document.getElementById("calvideo").style.left=-500;
document.getElementById("calmeloetvous").style.left=-500;
document.getElementById("calservices").style.left=-500;
}

