var defile;// l'element a deplacer
var psinit = 280; // position horizontale de depart, doit être égale ou inférieure à la zone d'affichage définie dans #cadrpg et #newshr
var pscrnt = psinit;       
function texteDefile() {
   if (!defile) defile = document.getElementById('defile');
   if (defile) {
      if(pscrnt < ( - defile.offsetWidth) ){
         pscrnt = psinit;
                } else {
         pscrnt+= -1; // pixel par deplacement
      }
      defile.style.left = pscrnt+"px";
   }
}
setInterval("texteDefile()",20); // delai de deplacement

		sfHover = function() {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+="sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp("sfhover\\b"), "");
			}
		}
		}
		if (window.attachEvent) window.attachEvent("onload", sfHover);

    var show=1;
    function minimize(){
        moveBy(4000,4000);
        show=0;
    }
    function reshow(){
        if(show==0){
            moveBy(-4000,-4000);
            show=1;
        }
    }

function monBoss() {
  window.open("word.php",'word','width=824,height=650,location=0,status=0,toolbar=0,scrollbars=0,menu=0');
  // w.focus();
  if (window.navigator.appName == 'Microsoft Internet Explorer') {
    var obj_window = window.open('', '_self');
    obj_window.opener = window;
    obj_window.focus();
    opener=self;
    self.close();
  }
}

function open_popup(url)
{
popup = window.open(url, "popup","width=680,height=550,left=30,top=20,scrollbars=yes,resizable=yes,menubar=yes,status=yes");
}
