// declaration de variables globales

// ajouts largeur/hauteur dans les popups photos
var addWidth = 150;
var addHeight = 100;


// afficher la popup de photo a la bonne taille
function showPhoto(id_photo,width,height) {
    winWidth = width + addWidth;
    winHeight = height + addHeight;
    win = window.open('photos_popup.php?id_photo='+id_photo+'&width='+width+'&height='+height, 'photo', 'height='+winHeight+'width='+winWidth+',resizable=yes,scrollbars=yes,status=no,toolbar=no,top=0,left=0,screenX=0,screenY=0');
}

// fonction interne a la popup de photo
function popupResize(width,height) {
    window.resizeTo(width+addWidth,height+addHeight);
}
