//Début de script ajouter aux favoris
var urlAddress = "http://www.plombiers-reunis.com/";
var pageName = "Plombiers Réunis, aide les plombiers amateurs";
 function addToFavorites(anchor)
 {
if (window.external)
{
window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
}
} 
// Fin de ajouter aux favorits

//Début de Image popup
function PopupImage(img) { 
titre="Image en taille reelle"; 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='20' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 
//Fin de Image en popup

//ouvrir une popup de recommendation
var win = null;
  function NewWindow(mypage,myname,w,h,scroll){
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings =
  'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
  }

//Fin de pop up de reccomendation

//Popup image

function toggleDiv(divId, iState) // 1 visible, 0 hidden
{
    var vDiv = document.getElementById(divId);
    vDiv.style.display= (iState ? "0" : "none");
}
//<a href="#" onclick="javascript:toogleDiv('divVideo',1);">montrer</a>

//fin de popup image
