
/* auteur: chb */
/* Date de création: 20/04/02 */
 /* artejs1.js */
  


function breve (s) 
	{
	a = s.substring (1, s.length) + s.substring (0, 1);
	document.entete.breve.value = a;
	window.setTimeout ("breve ('" + a + "')", 100);
	}

function full_ecran(pgm)
	{
	var wind='fullscreen=0';
	window.open(pgm,"",wind);
	}

function fenetre3(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=375,height=540,left=50,top=50';
	window.open(pgm,"",wind); 
	}

function fenetre4(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=600,height=600,left=50,top=50';
	window.open(pgm,"",wind); 
	}

function fenetre2(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=800,height=600,left=50,top=50';
	window.open(pgm,"",wind); 
	}

function plein_ecran(pgm)
	{
	var wind='channelmode=1,directories=1,fullscreen=1,location=1,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=1 ,width=660,height=495,left=100,top=100';
	window.open(pgm,"",wind);
	}

function Filtre()
	{
	div1.style.filter = "dropshadow(offx=-4, offy=4, "  +   "color=#dedede, enabled=1)" 
	}

function fenetre(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,status=0,width=600,height=540,left=175,top=10';
	window.open(pgm,"",wind); 
	}

function fenetreBis(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=540,height=580,left=175,top=10';
	window.open(pgm,"",wind); 
	}
	
	function fenetreTer(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=840,height=580,left=175,top=10';
	window.open(pgm,"",wind); 
	}

function fenetre_courte(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,status=0,titlebar=0,width=620,height=350,left=175,top=30';
	window.open(pgm,"",wind); 
	}
function fenetre_volante(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,status=0,titlebar=0,width=620,height=390,left=175,top=30';
	window.open(pgm,"",wind); 
	}
<!---width + 40  height + 25 pour les marges --->

function lettre(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,status=0,width=640,height=600,left=175,top=30';
	window.open(pgm,"",wind); 
	}

function lettre21x29(pgm)
	{  
	var wind='channelmode=0,fullscreen=0,toolbar=1,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,status=0,width=600,height=600,left=175,top=10';
	window.open(pgm,"",wind); 
	}

function lettre2(pgm)
	{  
	ejs_pf_topcolor = 'ACBFFF';
	ejs_pf_width = 200;
	ejs_pf_height = 300;
	ejs_pf_file = 'nom_fic';
	ejs_pf_X = 50;
	ejs_pf_y = 100;
	}

function FermeFenetre() 
	{
	window.close();
	}

function ecran(pgm)
	{
	var wind='channelmode=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=1,scrollbars=1,status=0,toolbar=0,titlebar=0 ,width=900, height=640';
	window.open(pgm,"",wind);
	}    
 
 
var indPleinEcran = 0;
var bulleAideReduire = "Reduce";
var bulleAidePleinEcran = "Full Screen";
var eccart = 0;

function reduire1()
  	{
  	if (indPleinEcran==1)
	  			{
	  			parent.window.moveTo (0,0) ;
	  			parent.window.resizeTo(screen.width,screen.height);
				form1.image.src="image/background/PleinEcran.gif";
				indPleinEcran = 0;
				parent.fullScreen=false;
				}
			else
				{
				parent.window.resizeTo(screen.width+10,screen.height);
	  			haut=screen.height-parent.parent.document.body.clientHeight;
	  			parent.window.moveTo (-5,-haut+27) ;
				parent.window.resizeTo(screen.width+10,screen.height+haut);
				form1.image.src="image/background/EcranNav.gif";
				indPleinEcran = 1;
				parent.fullScreen=true;
				if ((parent.document.body.clientHeight > 768 && screen.height == 768)
	 			|| (parent.document.body.clientHeight > 600 && screen.height == 600) )
					{
				 	eccart = parent.parent.document.body.clientHeight - screen.height;
					parent.window.moveTo (-5,-haut+27+eccart);
					parent.window.resizeTo(screen.width+10,screen.height+haut-eccart);
					}
				}
	
	}

              