function checksize() { 
	sw=Math.round((screen.availWidth-750)/2);	
	sh=Math.round((screen.availHeight-535)/2);
	window.moveTo(sw,sh); 
	window.focus();
}
function redirect_resolution(){
	if (self!=top){top.location=document.href;}
	var dim=window.screen.availWidth;
	if(dim <= 800 )
	{
		document.getElementById("leSiteFlash").width = '90%'; 
		document.getElementById("leSiteFlash").height = '90%'; 
		if (document.getElementById("leSiteFlashBis")){
				document.getElementById("leSiteFlashBis").width = '90%'; 
				document.getElementById("leSiteFlashBis").height = '90%'; 
		}
	}
	else if(dim > 800 &&dim < 1600)
	{
		if (dim > 1024 ){	document.getElementById("corps").className = 'fond2'; }
		document.getElementById("leSiteFlash").width = '920'; 
		document.getElementById("leSiteFlash").height = '553'; 
		if (document.getElementById("leSiteFlashBis")){
				document.getElementById("leSiteFlashBis").width = '920'; 
				document.getElementById("leSiteFlashBis").height = '553'; 
		}
	}
	else if(dim >= 1600)
	{
		document.getElementById("corps").className = 'fond3'; 
		document.getElementById("leSiteFlash").width = '920'; 
		document.getElementById("leSiteFlash").height = '553'; 
		if (document.getElementById("leSiteFlashBis")){
				document.getElementById("leSiteFlashBis").width = '920'; 
				document.getElementById("leSiteFlashBis").height = '553'; 
		}
	}
}
function commander(){
	window.open("commander.php","commander","width=550,height=450");
}
function commanderEN(){
	window.open("commander.php?lang=EN","commander","width=550,height=450");
}
function tarifs(valeur){
	window.open("tarifs.php?transport="+valeur,"Tarifs","width=750,height=535");
}
function zoom(valeur){
	window.open("zoom-vehicules.php?vehicule="+valeur,"Zoom","width=10,height=10,top=0,left=0");
}
function handicap(){
	window.open("transport-handicapes.php","handicap","width=760,height=500,top=0,left=0");
}
function handicapE(){
	window.open("transport-handicapes.php?lang=en","handicap","width=760,height=500,top=0,left=0");
}
function affiche_infos(){
	if (document.getElementById('informations').style.display=='block'){
		document.getElementById('informations').style.display='none';
		document.getElementById('image').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/infos.png', sizingMethod='scale')";
		document.getElementById('image').title="Afficher les informations sur le document";
		position="off";
	}else{
		document.getElementById('informations').style.display='block';
		document.getElementById('image').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/infos-close.png', sizingMethod='scale')";
		document.getElementById('image').title="Masquer les informations sur le document";
	}
}
function affiche_infos_temp(){
	alert(position);
	if (position=="on"){
		document.getElementById('informations').style.display='none';
		document.getElementById('image').src='img/infos.png';
		}
}
function IE_CorrectAlpha_PNG(){ 
for(i=0; i<document.images.length; i++){ 
img    = document.images[i]; 
imgExt  = img.src.substring(img.src.length-3, img.src.length); 
imgExt  = imgExt.toUpperCase(); 
if (imgExt == "PNG"){ 
imgID    = (img.id) ? "id='" + img.id + "' " : "";
imgClass= (img.className) ? "class='" + img.className + "' " : ""; 
imgTitle= (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "; 
imgStyle= "display:inline-block;" + img.style.cssText; 
if (img.align == "left") { imgStyle = "float:left;"  + imgStyle; } else if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; } 
if (img.parentElement.href)   { imgStyle = "cursor:hand;" + imgStyle; }        
strNewHTML    = '<span '+imgID+imgClass+imgTitle+' style="width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\', sizingMethod=\'scale\');" title="Afficher les informations sur le document"></span>'; 
img.outerHTML = strNewHTML; 
i = i-1; 
}}} 
window.attachEvent("onload", IE_CorrectAlpha_PNG);
function retourDevis(){
	alert('Vous devez remplir le formulaire de demande de devis, avant de commander en ligne. Merci');
	top.close();
}
function retourDevisEN(){
	alert('Vous devez remplir le formulaire de demande de devis, avant de commander en ligne. Merci');
	top.close();
}
