function isIE6(){
	return navigator.appVersion.indexOf("MSIE 6")!= -1;
}
function isIE7(){
	return navigator.appVersion.indexOf("MSIE 7")!= -1;
}
if(isIE6() && !window.ieAlreadyChecked && location.pathname != "/erreur/ie")  location = "/erreur/ie";
function checkFlash(){

    var hasReqestedVersion = DetectFlashVer(8, 0, 0);
    
    if (!hasReqestedVersion) {
        if (location.pathname != "/erreur/flash") 
            location = "/erreur/flash";
    }
    
    
}



function isDefined(o){
    return (o !== null) && (typeof o !== 'undefined')
}

function eventTarget(e){
    var el = isDefined(window.event) ? window.event.srcElement : e.target;
    return el;
}

window.onload = function onBodyLoad(){

    try {



        var contact = document.getElementById("contact");
        
        if (contact) {
      
        
            var map = document.createElement('map');
            map.name = "map"
            var area1 = document.createElement('area');
            area1.shape = "poly";
            area1.href = 'javascript:document.getElementById("contact").onclick()';
            area1.coords = "55,7, 271,68,220,240,162,228, 7,51";
			
            map.appendChild(area1);
          
            
            var elt = document.createElement('img');
            elt.useMap = "#map";
            
            elt.src = '/style/image/transparent.png';
            
            area1.onmouseover = function(e){
          
                contact.src = "/style/image/contacter-2.png";
            }
            area1.onmouseout = function(e){
            
                contact.src = "/style/image/contacter-1.png";
            }
            
          
            elt.style.width = contact.offsetWidth + 'px';
            elt.style.height = contact.offsetHeight + 'px';
			
            elt.style.position = 'absolute';
            elt.style.left = '762px';
            elt.style.top = '44px';
			if(isIE6() || isIE7()){
				
				elt.onmouseover = function(e){
          			contact.src = "/style/image/contacter-2.png";
					elt.style.cursor="pointer";
            	}
            	elt.onmouseout = function(e){
            		 contact.src = "/style/image/contacter-1.png";
					 elt.style.cursor="";
            	}
				elt.onclick = function(e){
            		 document.getElementById("contact").onclick();
            	}
			}
            document.body.appendChild(map);
            
            document.body.appendChild(elt);
        }
        /*var page = document.getElementById("page");
         page.style.left = ((screen.availWidth - page.offsetWidth) / 2) + "px";*/
        window.visuel1 = document.getElementById("visuel1");
        window.visuel2 = document.getElementById("visuel2");
        
        if (window.visuel1) {
        
            window.visuel1.resetSrc = window.visuel1.src;
        }
        if (window.visuel2) {
        
            window.visuel2.resetSrc = window.visuel2.src;
        }
        window.updating = false;
        
        window.message = null;
        
       
        
    }
    finally {
        document.body.style.visibility = 'visible';
    }
}


function updateVisuel(visuel1Picture, visuel2Picture){



    if (!window.updating) {
    
        if (window.visuel1) 
            window.visuel1.src = visuel1Picture;
        /*  if (window.visuel2) 
         window.visuel2.src = visuel2Picture;*/
    }
    window.updating = true;
}

function resetVisuel(reset){

    if (reset) {
    
        if (window.visuel1) 
            window.visuel1.src = window.visuel1.resetSrc;
    }
    /*  if (window.visuel2) 
     window.visuel2.src = window.visuel2.resetSrc;*/
    window.updating = false;
}




		
		
       






