// **********************************************************
// montre en bkground dans une cellule avec hauteur et largeur variables
// **********************************************************
function afficher_tableau(fichier,texte,w,h) {
mafenetre = window.open('','Titre','fullscreen=yes, width=1200, height=800, statusbar=yes, menubar=no, top=0,left=0,screenX=0,screenY=0, scrollbars=yes');
mafenetre.document.write('<head>');
mafenetre.document.write('<link rel="stylesheet" type="text/css" href="http://www.pixeraphoto.com/feuille_style_Sylvie.css">');
mafenetre.document.write('</head>');
mafenetre.document.write('<body class="fond" bgcolor="#000000"> oncontextmenu="return false;">');
mafenetre.document.write('<br> <br> <table align=center width=100% border=0>');
mafenetre.document.write('<tr> <td background="',fichier,'" height=',h,' width=',w,' style="background-position:center; background-repeat:no-repeat;"> <img src="http://familleperreau.com/Sylvie/2009.gif" width="1050" align="center"> </td> </tr>');
mafenetre.document.write(' <tr> <td align=center valign=bottom width=92% class=normal> ',texte);
mafenetre.document.write('<div align=right> <a href="javascript:window.close()"> <b> Retour</a></td> </tr> </table>');
}

// **********************************************************
// montre une tableau de vignettes en plus grand format
// **********************************************************

function afficher(image) {
mafenetre = window.open('','Tableau de vignettes','fullscreen=yes, width=1100, height=750, statusbar=yes, menubar=no, top=0,left=0,screenX=180,screenY=130, scrollbars=no');
mafenetre.document.write('<head>');
mafenetre.document.write('<link rel="stylesheet" type="text/css" href="http://www.pixeraphoto.com/feuille_style_Sylvie.css">');
mafenetre.document.write('</head>');
mafenetre.document.write('<body class="fond" bgcolor="#000000"> oncontextmenu="return false;">');
mafenetre.document.write('<br> <br> <table align=center width=100% border=0>');
mafenetre.document.write('<tr> <td background="',image,'"  style="background-position:center; background-repeat:no-repeat;"> <img src="http://familleperreau.com/Sylvie/2009.gif" width="1000" align="center" onMouseOut="javascript:window.close()"> </td> </tr> </table>');
}

	
// ***********************************************************
// ouvre un document dans une nlle fenetre a la dimension de l'ecran
// ***********************************************************
 function popimage(img) { 
 titre="Agrandissement"; 
 w=open("",'image','width=1,height=1,toolbar=no,scrollbars=no,resizable=no'); 
 w.document.write("<script type='text/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()' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>"); 
 w.document.write("<img src='"+img+"' border='0' alt='image' />"); 
 } 
// *********************************************
// fonction afficher-cacher pour ajouter commentaire ds le blog
// ***********************************************************

function afficher_cacher(id)
{
        if(document.getElementById(id).style.visibility=="hidden")
        {
                document.getElementById(id).style.visibility="visible";
                document.getElementById('bouton_'+id).innerHTML='Cacher le texte';
        }
        else
        {
                document.getElementById(id).style.visibility="hidden";
                document.getElementById('bouton_'+id).innerHTML='Afficher le texte';
        }
        return true;
}

// **********************************************************
// contrarier le clic droit
// **********************************************************

function disableselect(e){
return false
}

function formulaire(){
return true
}


function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
//if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable}
