// JavaScript Document

function flash1()
{
   document.write('<param name="movie" value="bandnlogo-new.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/bandnlogo-new.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="990" height="150"></embed>');
}

function flash2()
{
   document.write('<param name="movie" value="accueil22.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/accueil22.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="210" height="158"></embed>');
}

function flash3()
{
   document.write('<param name="movie" value="part23.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/part23.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="280"></embed>');
}

function flash4()
{
   /*document.write('<param name="movie" value="pubicintro1.swf" />');*/
   document.write('<param name="movie" value="pubici16.swf" />');
   document.write('<param name="quality" value="high" />');
   /*document.write('<embed src="img/animation/pubicintro1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="146"></embed>');*/
   document.write('<embed src="img/animation/pubici16.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="146"></embed>');
}

function flash5()
{
   document.write('<param name="movie" value="conc23.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/conc23.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="280"></embed>');
}

function flash6()
{
   document.write('<param name="movie" value="pubici.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/pubici.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="192" height="230"></embed>');
}

function flash7()
{
   document.write('<param name="movie" value="teddy1.wmv" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/video/teddy1.wmv" quality="high" pluginspage="http://www.microsoft.com/windows/windowsmedia/fr/mp10/" type="application/x-mplayer2" width="320" height="260" AUTOPLAY="false" CONTROLLER="true"></embed>');
}

function flash8()
{
   document.write('<param name="movie" value="pubici-site.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/pubici-site.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="192" height="230"></embed>');
}

function flash9()
{
   document.write('<param name="movie" value="pub-event.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/pub-event.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="56"></embed>');
}

function flash10()
{
   document.write('<param name="movie" value="pub-casto.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/pub-casto.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="195" height="250"></embed>');
}

function flash11()
{
   document.write('<param name="movie" value="9novs.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/9novs.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="260" height="80"></embed>');
}

function flash12()
{
   document.write('<param name="movie" value="nouveau.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/nouveau.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="35"></embed>');
}

function flash13()
{
   document.write('<param name="movie" value="diapo-reve.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/diapo-reve.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="470" height="400"></embed>');
}

function flash14()
{
   document.write('<param name="movie" value="JINGLE.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/JINGLE.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="80"></embed>');
}

function flash15()
{
   document.write('<param name="movie" value="progress.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/progress.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="150"></embed>');
}

function flash16()
{
   document.write('<param name="movie" value="fileUpload.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/fileUpload.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="150" ></embed>');
}

function flash17()
{
   document.write('<param name="movie" value="progressReg.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/progressReg.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="150" ></embed>');
}

function flash18()
{
   document.write('<param name="movie" value="comedy.swf" />');
   document.write('<param name="quality" value="high" />');
   document.write('<embed src="img/animation/comedy.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="150" ></embed>');
}

function openBrWindow(theURL,winName,features) { 
      window.open(theURL,winName,features);
   }

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(0);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0].lastFrame = 0;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}





nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
	{
	if (nav == "Mic" && ver >= 4)
		{
		url_site="http://www.icietlaevenements.com";
		titre_site = "Ici & La Evenements";
		document.write('<A class="lien1" HREF="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);"> Cliquez ici pour me garder dans vos Favoris !<BR>')
		}
	else
		{
		document.write('<span class="favori">Faites CTRL+D pour me garder dans vos Favoris !</span>')
		}
	}
	
	
function ouvre_popup(page) {
       window.open(page,"nom_popup","menubar=no, status=no, scrollbars=no, menubar=no, width=500, height=100");
   }
   
   
   function close_popup() { 
   popup.close ();
   }
   
   function ovr_popup(page) {
	 	   			var gauche = ( screen.width - 500 ) / 2; // 500 = largeur du popup
	  		var haut = ( screen.height - 180 ) / 2; // 180 = hauteur du popup
			options = 'width=' + '500' + 'px, height=' + '180' + 'px,  top=' + haut + ', left=' + gauche;
       window.open(page,"popup",'menubar=no, status=no, scrollbars=no, menubar=no, ' + options+'"');
   }

	// Utilisation: spop( 'monfichier.html', 'MaPopup', 100, 100, 'Mes options (Facultatif)' )
	// spop( fichier, nom, largeur, hauteur, options )
	function spop( fichier, nom, largeur, hauteur, options )
		{
			var id = Math.round( Math.random() * 100 );
			var gauche = ( screen.width - largeur ) / 2;
	  		var haut = ( screen.height - hauteur ) / 2;
			if ( options )
				{
					options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche + ', ' + options;
				}
			else
				{
					options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche;
				}
			document.open( fichier, nom + id, options );
		}