//<!--EFFETS SUR LOGO USEP - PHOTO!-->
//<!-- script chargé sur http://gloubiweb.free.fr -->
//<!-- Original:  Colin Patterson (colnrita@westnet.com.au ) -->
//<!--hide


var wdmax=150;          //set maximum width of square image (px)

var wdmin=0;            //set minimum thickness of edge-on image (px)

var inc=5;              //set step change in px (wdmax-wdmin must be a multiple) )These two variables

var rate = 20;          //pause between steps (in millisec)                      )determine flip-flop speed

var pause = 500;       //pause between flip and flop (in millisec)

var ff="flip";          //initialise whether movement starts with a "flip" (sideways) or "flop" (vertical) change.

                        

function flipflop() {

 if (ff=="flip") {

  var wd = document.getElementById("etiquette").getAttribute("width");

  wd = wd - inc;

  document.getElementById("etiquette").setAttribute("width",wd);

  if (wd==wdmin) {

   document.getElementById("etiquette").setAttribute("src","photoArticleUsep.jpg"); //substitute name of your second picture

   inc=-inc;

   }

  if (wd==wdmax) {

   ff="flop";

   inc=-inc;

   setTimeout("flipflop()",pause);

   }

   else {

   setTimeout("flipflop()",rate);

   }

  }

 else {

  var ht = document.getElementById("etiquette").getAttribute("height");

  ht = ht - inc;

  document.getElementById("etiquette").setAttribute("height",ht);

  if (ht==wdmin) {

   document.getElementById("etiquette").setAttribute("src","cadreUsep.jpg"); //substitute name of your first picture

   inc=-inc;

   } 

  if (ht==wdmax) {

   ff="flip";

   inc=-inc;

   setTimeout("flipflop()",pause);

   }

   else {

   setTimeout("flipflop()",rate);

   }

  }

}



-->

