
function auteur(nom1,nom2,nom3,nom4,nom5,nom6){

var nbarg=arguments.length;	
var num= new Array(0,0,0,0,0,0,0);
var i=0;
for (i=0; i < nbarg; i++) {
	switch(arguments[i]){
	case 'Ecopublix' : 	num[i]=0;break;
	case 'Antoine' : 	num[i]=1;break;
	case 'Camille' : 	num[i]=2;break;
	case 'Clement' : 	num[i]=3;break;
	case 'Emmanuel' : 	num[i]=4;break;
	case 'Fabien' : 	num[i]=5;break;
	case 'Gabrielle' : 	num[i]=6;break;
	case 'Guilhem' : 	num[i]=7;break;
	case 'Julien' : 	num[i]=8;break;
	case 'Laurent' : 	num[i]=9;break;
	case 'Mathieu' : 	num[i]=10;break;

	case 'Petitsuix' : 	num[i]=1;break;
	case 'Manix' : 		num[i]=2;break;
	case 'Dyslexix' : 	num[i]=3;break;
	case 'Kanelbullix' :num[i]=4;break;
	case 'Aivix' : 		num[i]=5;break;
	case 'Noblabla' : 	num[i]=6;break;
	case 'Overzelus' : 	num[i]=8;break;
	case 'Capitalrix' : num[i]=9;break;
	case 'Effefix' : 	num[i]=10;break;
	}
}

var auteurs = new Array();
auteurs[0]="Ecopublix";
auteurs[1]="Antoine";
auteurs[2]="Camille";
auteurs[3]="Cl\351ment";
auteurs[4]="Emmanuel";
auteurs[5]="Fabien";
auteurs[6]="Gabrielle"
auteurs[7]="Guilhem";
auteurs[8]="Julien";
auteurs[9]="Laurent";
auteurs[10]="Mathieu";

var photos= new Array();
photos[0]="http://www.ecopublix.org/ecopublix/Pseudos/Ecopublix.jpg";
photos[1]="http://www.ecopublix.org/ecopublix/Pseudos/Antoine.jpg";
photos[2]="http://www.ecopublix.org/ecopublix/Pseudos/Camille.jpg";
photos[3]="http://www.ecopublix.org/ecopublix/Pseudos/Clement.jpg";
photos[4]="http://www.ecopublix.org/ecopublix/Pseudos/Emmanuel.jpg";
photos[5]="http://www.ecopublix.org/ecopublix/Pseudos/Fabien.jpg";
photos[6]="http://www.ecopublix.org/ecopublix/Pseudos/Gabrielle.jpg";
photos[7]="http://www.ecopublix.org/ecopublix/Pseudos/Guilhem.jpg";
photos[8]="http://www.ecopublix.org/ecopublix/Pseudos/Julien.jpg";
photos[9]="http://www.ecopublix.org/ecopublix/Pseudos/Laurent.jpg";
photos[10]="http://www.ecopublix.org/ecopublix/Pseudos/Mathieu.jpg";

document.write("<div style='height:60px';>");
for (i=0; i < nbarg; i++) {
document.write("<a href='http://www.ecopublix.eu/2006/11/qui-sommes-nous.html#"+arguments[i]+"'><img style='FLOAT: left;  MARGIN: 0px 10px 0px 0px; CURSOR: hand' alt='"+auteurs[num[i]]+"' src='"+photos[num[i]]+"'/></a>");
}
document.write("<strong>Par ");
for (i=0; i < nbarg; i++) {
document.write("<a href='http://www.ecopublix.eu/2006/11/qui-sommes-nous.html#"+arguments[i]+"'>"+auteurs[num[i]]+"</a>");
if(i<nbarg-2){document.write(", ");} 
if(i==nbarg-2){document.write(" et ");} 
}
document.write("</strong></div>");

}

function pseudo(nom)
{
switch(nom){
case 'Antoine' : 	num=1;break;
case 'Camille' : 	num=2;break;
case 'Clement' : 	num=3;break;
case 'Emmanuel' : 	num=4;break;
case 'Fabien' : 	num=5;break;
case 'Gabrielle' : 	num=6;break;
case 'Guilhem' : 	num=7;break;
case 'Julien' : 	num=8;break;
case 'Laurent' : 	num=9;break;
case 'Mathieu' : 	num=10;break;
}

var auteurs = new Array();
auteurs[1]="Antoine";
auteurs[2]="Camille";
auteurs[3]="Cl\351ment";
auteurs[4]="Emmanuel";
auteurs[5]="Fabien";
auteurs[6]="Gabrielle"
auteurs[7]="Guilhem";
auteurs[8]="Julien";
auteurs[9]="Laurent";
auteurs[10]="Mathieu";

var photos= new Array();
photos[0]="http://www.ecopublix.org/ecopublix/Pseudos/Ecopublix.jpg";
photos[1]="http://1.bp.blogspot.com/_Tk2Fx215J5A/SPL7hYbbsFI/AAAAAAAAAZM/esVaalQ5E78/s400/Antoine.jpg";
photos[2]="http://2.bp.blogspot.com/_Tk2Fx215J5A/SPL7mIPpsTI/AAAAAAAAAZU/FTU8wPuWzaU/s400/Camille.jpg";
photos[3]="http://3.bp.blogspot.com/_Tk2Fx215J5A/SPL7p3Dn8pI/AAAAAAAAAZc/1ThpbvoExbs/s400/Clement.jpg";
photos[4]="http://4.bp.blogspot.com/_Tk2Fx215J5A/SPL7vLknIUI/AAAAAAAAAZk/OMYTWX9XCXE/s400/Emmanuel.jpg";
photos[5]="http://2.bp.blogspot.com/_Tk2Fx215J5A/SPL7xhRLhEI/AAAAAAAAAZs/fBbc1krT-so/s400/Fabien.jpg";
photos[6]="http://4.bp.blogspot.com/_Tk2Fx215J5A/SPL75LWDZhI/AAAAAAAAAZ0/3QsWeu0sUBU/s400/Gabrielle.jpg";
photos[7]="http://4.bp.blogspot.com/_Tk2Fx215J5A/SPL75WQiICI/AAAAAAAAAZ8/uQRzt188Fnc/s400/Guilhem.jpg";
photos[8]="http://4.bp.blogspot.com/_Tk2Fx215J5A/SPL75Qw6HvI/AAAAAAAAAaE/0WebJhpgjxQ/s400/Julien.jpg";
photos[9]="http://3.bp.blogspot.com/_Tk2Fx215J5A/SPL75n9w3sI/AAAAAAAAAaM/l52Sz6RlUTg/s400/Laurent.jpg";
photos[10]="http://1.bp.blogspot.com/_Tk2Fx215J5A/SPL75vPKx_I/AAAAAAAAAaU/JQNLoTVv91w/s400/Mathieu.jpg";

document.write("<a href='http://www.ecopublix.eu/2006/11/qui-sommes-nous.html#"+nom+"'><img alt='"+auteurs[num]+"' src='"+photos[num]+"'/><br/>"+auteurs[num]+"<br/><br/></a>");

}

function pop(imageici)
{	
IMG=new Image;
url_img=imageici;
IMG.src=(url_img);
controlc(url_img);
}

function controlc(url_img)
{
	if ( (IMG.width>20) && (IMG.height>20)){affichec(url_img);}
	else{fct="controlc(' "+ url_img +" ');"; intervalle=setTimeout(fct,20);}
}	

function affichec(url_img)
{
	w=IMG.width+210;
	h=IMG.height+210;
	// teste les images trop grandes ou trop petites
	if (w<300){ w=300; }
	if (h<200){ h=200; }
	if (w>screen.width-50){ w=screen.width-50; }
	if (h>screen.height-50){ h=screen.height-50;}
	// pour positionner la fenêtre au milieu de l'écran avec les bonnes dimensions
	wdim=(screen.width-w)*0.5;
	hdim=(screen.height-h)*0.5;
	// ouvertyre de la fenêtre au milieu de l'écran
	winprops='height='+h+',width='+w+',top='+hdim+',left='+wdim+',directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=yes';
	superpopup=open("","Nouvelle",winprops); // on associe à la variable popup une pop-up
	var blocage = "ATTENTION : pour utiliser cette fonctionnalit\351, il faut d\351sactiver momentan\351ment le bloqueur de popups."
	if(superpopup==null || typeof(superpopup.document)=="undefined"){ alert(blocage) }else{ 
	// Ecriture de doc HTML
	// A l'intérieur de la fenêtre, on insère une table qui contient l'image et la légende 
	//popup.document.write("<SCRIPT language=javascript>function resize(a,b) { if (document.images[0].complete) { window.resizeTo(a,b);} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 	//popup.document.write("<BODY 	onload='resize("+w+","+h+")'>");
	// On appelle la matrice de légendes'
	superpopup.document.write("<html><head></head><body> <p align='center'><table width width='250' border='0'><tr><td><br>");
	superpopup.document.write("<div align='center'><a href='javascript: onClick=window.close()'> <img src=' "+ url_img +" '></a></div>");	
	// N.B.:  le HREF='#' produit un cadre violet
	superpopup.document.write("</td></tr><tr><td></p><p align='justify'></p></td></tr><tr><td><br>");
    superpopup.document.write("<div align='center'><a class='figure' href='#' onclick='window.close()'>Fermer cette fen&ecirc;tre </a></div></td></tr></table></body></html>");
	superpopup.resizeTo(w,h); };

	// Actualisation du popup sous IE
	navigateur=navigator.appName;
	if (navigateur=='Microsoft Internet Explorer')
	{superpopup.history.go(0);}
}

function popup(imageurl)
{
var url_big="http://www.ecopublix.org/ecopublix/Images/"+imageurl+".png";
var url_small="http://www.ecopublix.org/ecopublix/Images/"+imageurl+"_400.png";
document.write("<p align='center'><a onclick=pop('"+url_big+"'); href='javascript:void(0);'><img style='MARGIN: 0px 10px 10px 0px; CURSOR: hand; WIDTH: 400 px;' src='"+url_small+"' alt='' border='0' /><br>Cliquer pour agrandir</a></p>");
}

function illustration(urlillustr)
{
var url_ill="http://www.ecopublix.org/ecopublix/Images/"+urlillustr+".png";
document.write ("<a href='javascript:void(0);'><img style='FLOAT: left; MARGIN: 5px 10px 0px 0px; CURSOR: hand' src='"+url_ill+"' alt='' border='0' /></a>");
}

function illustrationgif(urlillustr)
{
var url_ill="http://www.ecopublix.org/ecopublix/Images/"+urlillustr+".gif";
document.write ("<a href='javascript:void(0);'><img style='FLOAT: left; MARGIN: 5px 10px 0px 0px; CURSOR: hand' src='"+url_ill+"' alt='' border='0' /></a>");
}

function gif(imageurl)
{
var url_big="http://www.ecopublix.org/ecopublix/Images/"+imageurl+".gif";
var url_small="http://www.ecopublix.org/ecopublix/Images/"+imageurl+"_400.png";
document.write("<p align='center'><a onclick=pop('"+url_big+"'); href='javascript:void(0);'><img style='MARGIN: 0px 10px 10px 0px; CURSOR: hand; WIDTH: 400 px;' src='"+url_small+"' alt='' border='0' /><br>Cliquer pour lancer l'animation</a></p>");
}

function image(imageurl)
{
	var url_big="http://www.ecopublix.org/ecopublix/Images/"+imageurl+".png";
	document.write("<a href='javascript:void(0);'><img style='DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center' src='"+url_big+"' alt='' border='0' /></a>");
}

function toggleIt(id) 
{
	post = document.getElementById(id);
	if (post.style.display != 'none') {post.style.display = 'none';} 
	else {post.style.display = '';}
}

function showFullPost(id)
{
	var post = document.getElementById(id);
        var spans = post.getElementsByTagName('span');
        for (var i = 0; i < spans.length; i++) {
             if (spans[i].id == "fullpost")
                 spans[i].style.display = 'inline';
             if (spans[i].id == "readmore")
                spans[i].style.display = 'none';
        }
}

function showFull(id) {
	var post = document.getElementById(id);
        var spans = post.getElementsByTagName('span');
       for (var i = 0; i < spans.length; i++) {
             if (spans[i].id == "fullpost")
                 spans[i].style.display = 'inline';
             if (spans[i].id == "showlink")
                 spans[i].style.display = 'none';
             if (spans[i].id == "hidelink")
                 spans[i].style.display = 'inline';
        }
}


function hideFull(id) {
	var post = document.getElementById(id);
        var spans = post.getElementsByTagName('span');
        for (var i = 0; i < spans.length; i++) {
            if (spans[i].id == "fullpost")
                spans[i].style.display = 'none';
             if (spans[i].id == "showlink")
                 spans[i].style.display = 'inline';
             if (spans[i].id == "hidelink")
                 spans[i].style.display = 'none';
        }
        post.scrollIntoView(true);
}


function checkFull(id) {
var post = document.getElementById(id);
        var spans = post.getElementsByTagName('span');
        var found = 0;
        for (var i = 0; i < spans.length; i++) {
            if (spans[i].id == "fullpost")
                 found = 1;
             if ((spans[i].id == "showlink") && (found == 0))
                 spans[i].style.display = 'none';
        }
}

function commentDisplay(json) {
  for (var i = 0; i < numcomments; i++) {
    var entry = json.feed.entry[i];
    var alturl;
   if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        alturl = entry.link[k].href;
        break;
      }
    }
    alturl = alturl.replace("#", "#comment-");
    if (entry.content){comment = entry.content.$t;} 
	else if (entry.summary) {comment = entry.summary.$t;}
      var re = /<\S[^>]*>/g; 
      comment = comment.replace(re, ""); 
      document.write('<a href="' + alturl + '">' + entry.author[0].name.$t + '</a> commented:<br/>');
      if (comment.length < numchars)
         document.write(comment + '<br/><br/>');
      else
         document.write(comment.substring(0, numchars) + '...<br/><br/>');
  }
  document.write('<span style="font-size:80%">Widget by: <a href="http://hackosphere.blogspot.com">Hackosphere</a></span>');
}

var statusmsg=""
function hidestatus(){
window.status=statusmsg
return true
}

/* Script by Stephen Paul Weber a.k.a. Singpolyma (http://singpolyma-tech.blogspot.com/)
   Based on work by Johan Sundstrom (http://ecmanaut.blogspot.com/2005/10/blogger-hack-inline-comment-faces.html)
   Updated by PurpleMoggy (http://purplemoggy.blogspot.com/)
*/
if( document.all && !document.getElementsByTagName )
  document.getElementsByTagName = function( nodeName )
  {
    if( nodeName == '*' ) return document.all;
    var result = [], rightName = new RegExp( nodeName, 'i' ), i;
    for( i=0; i<document.all.length; i++ )
      if( rightName.test( document.all[i].nodeName ) )
 result.push( document.all[i] );
    return result;
  };

document.getElementsByClassName = function( className, nodeName )

{ 
var result = [], tag = nodeName||'*', node, seek, i;
  var rightClass = new RegExp( '(^| )'+ className +'( |$)' );
  seek = document.getElementsByTagName( tag );
  for( i=0; i<seek.length; i++ )
    if( rightClass.test( (node = seek[i]).className ) )
      result.push( seek[i] );
  return result;
};

function writeScript(src) {
  var thescript = document.createElement("script");
  thescript.type = "text/javascript";
  thescript.src = src;
  document.body.appendChild(thescript);

}//end function writeScript

function addLoadEvent(func) {
        var oldonload = window.onload;
         if (typeof window.onload != 'function'){window.onload = func;}
		 else {
			 window.onload = function() {
             oldonload();
             func();
            }
         }//end if
}//end function addLoadEvent

BloggerProfiles = {};

BloggerProfiles.callbacks = {};

//BloggerProfiles.noimage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAMFBMVEUAAAD%2FAIT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FV4HBuAAAAAnRSTlP%2FAOW3MEoAAAFZSURBVHja7ZhZDsQgCIYJNygnUO5%2FyAFcutkqfWhmMpIuyQxf9EdAU2D2GrgJQcBpD5HFZROZyER%2BAqEoD%2BboQALqAxwIgXp7EXwFEXdDiHkYQUMoSG8cQzAjAWzAIUT85ZLhOKiuMSRRmCM%2BgNSBGpG7QMTxAQJehPyIDuOTnxBXkHM6e5ZyWZwJY7lI7EjLjk3k25HWQveQU8r%2BNiIJLztRSf5SA6RvrtE5INJatYOB%2BFmP0SJDK7a1PI9IsWg1nJpTKWm8QLQ%2FsCG8ecmfXLrTaWK540fZL2VS4m6NI%2F2I94ioV015P9PBuIvks3pBoIq5npiFbo%2FcaxFfjmE%2FsbwyN0iSj1U%2BBewgGu5DkPtaVDBtlrK3LnpeYIjbhOHT6os6vfWEVO8lMKedqZWWTaPG0aTXLkz%2BvpD6yJrCg4iWDUYXohEZ2F47NpGJTOSPkVe%2BXL3xFe4D3BFIBtihCWMAAAAASUVORK5CYII%3D';

BloggerProfiles.noimage = 'http://www.ecopublix.org/ecopublix/Images/noim.png';
BloggerProfiles.imageWidth = 75;
BloggerProfiles.imageHeight = 75;
BloggerProfiles.callbacks.profile = function(data) {
          if(data.photo) {
             node = document.createElement('img');
             node.alt = 'Photo';
             if(!data.photo.url)
                data.photo.url = BloggerProfiles.noimage;
             node.src = data.photo.url;
             if(data.photo.width)
                node.width = data.photo.width;
             if(data.photo.height)
                node.height = data.photo.height;
             if(node.width > BloggerProfiles.imageWidth) {
                node.height = (BloggerProfiles.imageWidth * node.height) / node.width;
                node.width = BloggerProfiles.imageWidth;
             }
             if (node.height > BloggerProfiles.imageHeight) {
                node.width = (BloggerProfiles.imageHeight * node.width) / node.height;
                node.height = BloggerProfiles.imageHeight;
             }
             thecomments = document.getElementsByClassName('commentphoto-'+escape(data.url));
             for(var i=0; i<thecomments.length; i++)
                thecomments[i].appendChild(node.cloneNode(false));
             if(data.blogs) {
                for(var i=0; i<data.blogs.length; i++) {
                   if(data.blogs[i].url == BloggerProfiles.blogurl) {
                      thecomments = document.getElementsByClassName('commentblock-'+escape(data.url));
                      for(var i2=0; i2<thecomments.length; i2++) {
                         thecomments[i2].style.color = BloggerProfiles.color;
                         thecomments[i2].style.backgroundColor = BloggerProfiles.bgcolor;
                      }//end for thecomments
                   }//end if blogs.url == blogurl
                }//end for blogs
             }//end if data.blogs
          }//end if data.photo
          else {
             node = document.createElement('img');
             node.alt = 'Photo';
             node.src = BloggerProfiles.noimage;
             if (node.width > BloggerProfiles.imageWidth) {
               node.height = (BloggerProfiles.imageWidth * node.height) / node.width;
                node.width = BloggerProfiles.imageWidth;
             }
            if (node.height > BloggerProfiles.imageHeight) {
               node.width = (BloggerProfiles.imageHeight * node.width) / node.height;
                node.height = BloggerProfiles.imageHeight;
             }

             thecomments = document.getElementsByClassName('commentphoto-'+escape(data.url));
             for(var i=0; i<thecomments.length; i++)
                thecomments[i].appendChild(node.cloneNode(false));

             if(data.blogs) {
               for(var i=0; i<data.blogs.length; i++) {
                   if(data.blogs[i].url == BloggerProfiles.blogurl) {
                      thecomments = document.getElementsByClassName('commentblock-'+escape(data.url));
                      for(var i2=0; i2<thecomments.length; i2++) {
                         thecomments[i2].style.color = BloggerProfiles.color;
                         thecomments[i2].style.backgroundColor = BloggerProfiles.bgcolor;
                     }//end for thecomments
                   }//end if blogs.url == blogurl
                }//end for blogs
            }//end if data.blogs
          }//end else
}//end callback

function showCommentPhotos(photoclass,linkclass,linknum,fullclass,blogurl,color,bgcolor) 
{
  var comments, comlinks, i, node, re, by, blocks;
  BloggerProfiles.blogurl = blogurl;
  BloggerProfiles.color = color;
  BloggerProfiles.bgcolor = bgcolor;
  re = new RegExp( '^http://www.blogger.com/profile/\\d+', 'i' );
  comments = document.getElementsByClassName(photoclass);
  comlinks = document.getElementsByClassName(linkclass);
  if(fullclass)
     blocks = document.getElementsByClassName(fullclass);
  else
     blocks = [];
  var profilesobj = {};
  var profileurls = [];
  for(i=0; i<comments.length; i++) {
    by = comlinks[i].getElementsByTagName('a').item(linknum);
    if(by && re.test(by.href)) {
       comments[i].className += ' commentphoto-'+escape(by.href);
       if(blocks && blocks[i])
          blocks[i].className += ' commentblock-'+escape(by.href);
    } else {
       comments[i].className += ' commentphoto-nophoto'+i;
    }//end if-else
  if( !by || !re.test( by.href ) ) {BloggerProfiles.callbacks.profile({'url':'nophoto'+i,'photo':{'url':BloggerProfiles.noimage}});continue;}
    if(!profilesobj[by.href])
       profileurls.push(by.href);
    profilesobj[by.href] = true;
  }//end for

 	for(i=0; i<profileurls.length; i++)
	//writeScript('http://www.ecopublix.org/ecopublix/js/bloggerProfile.php?xn_auth=no&url='+encodeURIComponent(profileurls[i]));
	writeScript('http://singpolymaplay.ning.com/bloggerProfile.php?xn_auth=no&url='+encodeURIComponent(profileurls[i]));
}//end function showCommentPhotos

    

