<!--
function montre(id) {	  
	if (document.getElementById) {		  
		document.getElementById(id).style.display="block";		
	} else if (document.all) {		  
		document.all[id].style.display="block";		
	} else if (document.layers) {		  
		document.layers[id].display="block";		
	} 
} 
  function cache(id) {
    if (document.getElementById) {
	    document.getElementById(id).style.display="none";
	} else if (document.all) {
	    document.all[id].style.display="none";
	} else if (document.layers) {
	    document.layers[id].display="none";
	} 
}

// Fonction de rollover
function rollover(nom,src) {	
	document.images[nom].src=src;
}


// Fonctions de préload
function load() {
	if (document.images) {
		this.length=load.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=load.arguments[i];
		}
	}
}
// Cette fonction charge dans le cache toutes les images passées en paramètre
function preload() {
	var temp=new load("home/entreprise01_over.gif","home/entreprise02_over.gif","home/equipement_over.gif","home/produits_over.gif","home/services_over.gif","home/actu_over.gif","home/faconnage_over.gif","home/prepresse_over.gif","home/impression_over.gif","home/ftp_over.gif","home/conseils_over.gif","home/formes_over.gif","commun/contact_over.gif","commun/plan_acces_over.gif","commun/devis_over.gif")
}

preload()

//

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_hideDiv(evt) { //v1.3 by PVII
 var b,relT,mT=false; 
 if(document.layers){b=evt.target;if(b.p7aHide){
  b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;
  while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;}
  if(!b.contains(event.toElement)){b.style.display="none";}
 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
  while(relT!=null){if(b==relT){mT=true;break;}
  relT=relT.parentNode;}if(!mT){b.style.display="none";}}
}

function P7_autoHide() { //v1.3 by PVII
 var i,g,args=P7_autoHide.arguments;
 for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
  g.p7aHide=true;if(document.layers){
  g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}}
}

// openwindow
var win = null;
function NewWindow(mypage,myname,w,h,scroll,menu){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',menubar='+menu+',noresize'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function displayWindow(theURL,winName,width,height,features) { 
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
}

// impression
function Print(id){
 if(window.print()){
 var d=eval(id)==null||eval(id+".closed");
 if(!d){eval(id+".print()");}}
}

// menu de redirection formes de decoupe
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//-->
