    /* Lance l'impression 
     * Ouvre "impression.php" en popup 
     * prend l'id "idDuCadre" du cadre à imprimer */
    function impression (idDuCadre) { 
        var popupImpression = null;
        popupImpression = window.open('impression.php?cadreImpression='+idDuCadre,'popupImpression','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=500, height=600, left=0, top=0');
        popupImpression.focus(); 
    } 
    
    function transfertContenu (idHote, idCible) {
        document.getElementById(idCible).innerHTML = document.getElementById(idHote).innerHTML;
        //void(0);
    }

    
	/**/
	function videoSelect(pId, pArrayVideo, pArrayTitre, pArrayDesc) {
		var lecteur ="<div id=\"flashcontentVideo\">";
			lecteur+="<a href=\"http://www.macromedia.com/go/getflash/\" target=\"_blank\" title=\"Mettre &agrave; jour le Player Flash\">Vous devez mettre &agrave; jour votre Player Flash.<div>Cliquez ici pour effectuer la mise &agrave; jour</div></a>";
			lecteur+="</div>";
		
			lecteur+="<div class=\"description\">";
			lecteur+="<div class=\"titre\">"+ pArrayTitre[pId] +"</div>";
			lecteur+="<div class=\"texte\">"+ pArrayDesc[pId] +"</div>";
			lecteur+="</div>";
			lecteur+="<div class=\"bas\"></div>";
		
		for (i=0;i<pArrayVideo.length;i++) {
			if (i!=pId)
				document.getElementById("video_"+ i).className="video";
			else 
				document.getElementById("video_"+ pId).className="videoHover";
		}
		
		document.getElementById("lecteur").innerHTML=lecteur;
		
		document.getElementById("videos").className="videosClick";
		document.getElementById("lecteur").className="lecteurClick";
		
		var soVideos = new SWFObject("http://www.missionlocale-aubervilliers.org/lecteur_video.swf", "flashcontentVideo", "330", "285", "8", "#FFFFFF");
			soVideos.addVariable("video", pArrayVideo[pId]); // this line is optional, but this example uses the variable and displays this text inside the flash movie
			soVideos.write("flashcontentVideo");
		
	}

    
    
    
    
    
    
    
    
    
    
    
    
    /*    
    //var t;            
    //t = 1;
    function changerTaille(modif) {
                                                              
        //alert(document.getElementById("contenu_imprimable").getElementsByTagName("p")[0].style.fontSize);        
        
        //var tailleTab = document.getElementsByTagName("p").length;
        //for (i=0;i<tailleTab;i++) {
            //var t = document.getElementById("contenu_imprimable").getElementsByTagName("p")[i].style.fontSize;         
            //t = t + modif;    
            //document.getElementById("contenu_imprimable").getElementsByTagName("p")[i].style.fontSize = t + "em";
        //}
        
        
        
		AllChilds = document.getElementById("contenu_imprimable").childNodes  ;
		
		for (var z = 0; z < AllChilds.length; z++) {
            if (AllChilds[z].tagName!=undefined)
				//alert(AllChilds[z].tagName);
                //AllChilds[z].style.fontSize = (AllChilds[z].style.fontSize + 5 ) + "px";
                //alert(AllChilds[z].style.fontSize);
		};
        
        
        // http://admin.iacom.net/dev/ml/interieur.html
        // http://developer.mozilla.org/fr/docs/Explorer_un_tableau_HTML_avec_des_interfaces_DOM_et_JavaScript#R.C3.A9cup.C3.A9rer_un_n.C5.93ud_texte_dans_le_tableau
    }
*/


/*var tags, ch, ch2, mono, mono2, r, cadre, d;
var l=0;

    window.onload=function(){
	    document.getElementById("contenu_imprimable").onclick=function(){
		    structure(document.getElementById("contenu_imprimable"),this)
	    }
    }   

    function getfontsize(pElement){ 
        var fontsize; 
        var textsize = parseInt(pElement.className.fontSize); 
        if(textsize){ 
            fontsize = "" + Math.abs(textsize - mintextsize);
        } else {
            fontsize = 0; 
        } 
        return fontsize;
    }    
    
    function structure(n,arch){
	    tags=[];
	    ch=n.getElementsByTagName('*');

	    for(j=0;j!=ch.length;j++){
		    ch2=ch[j];
		    r=-3;

		    while(ch2.parentNode){
			    ch2=ch2.parentNode;
			    r++;
			    if(r>=l){
				    l=r
			    }
		    }
            //ch[j].className="smaller";
            var font_size = $('body').css('font-size')
            alert(font_size);
            //tags.push("<"+ch[j].tagName.toLowerCase()+">");
	        //tags.push(ch[j].getElementsByTagName('*').length)
	    }
        */
        
        /*
	    for(j=0;j!=tags.length;j++){
		    if(isFinite(tags[j])){
			    tags.splice(2*tags[j]+j+1,0,tags[j-1].replace('<','</'))
		    }

		    mono=/\/(br|input|img|hr)\>/g;
		    if(isFinite(tags[j]) || tags[j].search(mono)!=-1){
			    tags.splice(j,1,"")
		    }
	    }

	    for(j=0;j!=tags.length;j++){
		    if(tags[j+2]==tags[j].replace('<','<\/')){
			    tags[j]+=tags[j+2];
			    tags[j]=tags[j].replace('\n','');
			    tags.splice(j+2,1,"")
		    }

		    mono2=/\<(br|input|img|hr)\>/;
		    tags[j]=tags[j].replace(mono2,"<$1 />");
		    if(tags[j].split('<').length>2){
			    tags[j]=tags[j].replace(/\>l\d+/,"> ")
		    }
	    }

	    cadre=document.createElement('p');
	    cadre.style.cssText="margin-left:auto;margin-right:auto;text-align:left;font-weight:bold;border:solid #ff0000 2px;background-color:#ffff00;width:"+(l*60+100)+"px";
	    cadre.title="Cliquez pour m'effacer";
	    cadre.onclick=function(){
		    ch[0].replaceChild(arch,this)
	    }

	    for(j=0;j!=tags.length;j++){
		    if(tags[j]!=""){
			    d=document.createElement('div');
			    d.style.marginLeft=tags[j].replace(/[^\d]+/g,"")+"px";
			    d.appendChild(document.createTextNode(tags[j].substring(tags[j].indexOf('<'))));
			    cadre.appendChild(d)
		    }
	    }
	    ch[0].replaceChild(cadre,arch)
        
    }
         */
