// JavaScript Document

function FondImage(img)
{
	this.img = "./Images/" + img + ".png";
	this.bouton = new Image();
	this.bouton.src = this.img;
	imgWidth = this.bouton.width;
	imgHeight = this.bouton.height;
	r = imgWidth / imgHeight;
	imgWidth = Math.floor( ratiodiv * 140);
	imgHeight = Math.floor( imgWidth / r );
	/*
	alert(	"bouton.src : " + this.bouton.src + "\n" +
			"bouton.width : " + this.bouton.width + "\n" +
			"imgWidth : " + imgWidth + "\n" +
			"bouton.height : " + this.bouton.height + "\n" +
			"imgHeight : " + imgHeight + "\n" +
			"r : " + r 
		);
	*/	
	image  = "<img src='" + this.bouton.src;
	image += "' width='" + imgWidth + "' height='" + imgHeight + "' alt='Label " + img + "' ";
	image += "name='I" + img + "'>";
	document.write(image);
}

function VingtAvril()
{
	this.id = "VingtAvrilT"
	var zfontSizeT = Math.floor(70 * ratioHCS);
	ztopT = 0;
	zleftT = 0;
	zwidthT = zWindowWidth - Math.floor(ratioW * 100);
	zheightT = Math.floor(ratioHCS * 300);
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthT + "px";
	document.getElementById(this.id).style.height = zheightT + "px";
	document.getElementById(this.id).style.top = ztopT + "px";
	document.getElementById(this.id).style.left = zleftT + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeT + "px";
	document.getElementById(this.id).style.textAlign = "justify";
	i = 1;
	this.id = "VingtAvril" + i;
	while ( document.getElementById(this.id) )
	{
		var zfontSize = Math.floor(60 * ratioHCS);
		zheight = Math.floor(ratioHCS * 80);
		ztop =  zheightT + Math.floor( ratioHCS * 110) + ( i - 1 ) * zheight;
		zleft = Math.floor(ratioW * 40);
		zwidth = Math.floor( zWindowWidth * 6 / 7 );
		document.getElementById(this.id).style.position = "absolute";
		document.getElementById(this.id).style.zindex = "auto";
		document.getElementById(this.id).style.width = zwidth + "px";
		document.getElementById(this.id).style.height = zheight + "px";
		document.getElementById(this.id).style.top = ztop + "px";
		document.getElementById(this.id).style.left = zleft + "px";
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		i++;
		this.id = "VingtAvril" + i;
		
	}
	this.id = "VingtAvrilR"
	var zfontSizeR = Math.floor(60 * ratioHCS);
	ztopR = zWindowHeight - Math.floor( ratioHCS * 100);
	zleftR = zWindowWidth - Math.floor(ratioW * 400);
	zwidthR = Math.floor(ratioW * 300);
	zheightR = Math.floor(ratioHCS * 80);
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthR + "px";
	document.getElementById(this.id).style.height = zheightR + "px";
	document.getElementById(this.id).style.top = ztopR + "px";
	document.getElementById(this.id).style.left = zleftR + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeR + "px";
}

function VingtSeptMai()
{
	this.id = "bandeaudiv";
	ztopTb = 0;
	zleftTb = 0;
	zwidthTb = getWindowWidth() - Math.floor( ratiodiv * 80 );
	zheightTb = Math.floor(ratioHCS * 280);
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthTb + "px";
	document.getElementById(this.id).style.height =zheightTb;
	document.getElementById(this.id).style.top = ztopTb + "px";
	document.getElementById(this.id).style.marginLeft = "auto";
	document.getElementById(this.id).style.marginRight = "auto";
	document.getElementById(this.id).style.textAlign = "center";
	
	this.id = "bandeauimg";
	zwidthTi = zWindowWidth - Math.floor( ratioW * 100 );
	zheightTi = Math.floor(ratioHCS * 280);
	// document.getElementById(this.id).style.width = zwidthTi + "px";
	// document.getElementById(this.id).style.height = zheightTi + "px";
	
	this.id = "VingtSeptMaiT"
	var zfontSizeT = Math.floor( 35 * ratioHCS );
	ztopT = zheightTb;

	zleftT = 0;
	zwidthT = zWindowWidth - Math.floor( ratioW * 100 );
	zheightT = Math.floor(ratioHCS * 1120);
	/*
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthT + "px";
	document.getElementById(this.id).style.height = zheightT + "px";
	document.getElementById(this.id).style.top = ztopT + "px";
	document.getElementById(this.id).style.left = zleftT + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeT + "px";
	document.getElementById(this.id).style.textAlign = "justify";
	*/
	i = 1;
	this.id = "VingtSeptMai" + i;
	while ( document.getElementById(this.id) )
	{
		var zfontSize = Math.floor(40 * ratioHCS);
		zheight = Math.floor(ratioHCS * 50);
		ztop =  ztopT + zheightT + Math.floor( ratioHCS * 110) + ( i - 1 ) * zheight;
		zleft = Math.floor(ratioW * 40);
		zwidth = Math.floor( getWindowWidth() * 5.2 / 7 );
		document.getElementById(this.id).style.position = "absolute";
		document.getElementById(this.id).style.zindex = "auto";
		document.getElementById(this.id).style.width = zwidth + "px";
		document.getElementById(this.id).style.height = zheight + "px";
		document.getElementById(this.id).style.top = ztop + "px";
		document.getElementById(this.id).style.left = zleft + "px";
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		i++;
		this.id = "VingtSeptMai" + i;
		ztopR = ztop + zheight;
	}
	this.id = "VingtSeptMaiR"
	var zfontSizeR = Math.floor(40 * ratioHCS);
	// ztopR = zWindowHeight - Math.floor( ratioHCS * 100);
	zleftR = zWindowWidth - Math.floor(ratioW * 300);
	zwidthR = Math.floor(ratioW * 135);
	zheightR = Math.floor(ratioHCS * 50);
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthR + "px";
	document.getElementById(this.id).style.height = zheightR + "px";
	document.getElementById(this.id).style.top = ztopR + "px";
	document.getElementById(this.id).style.left = zleftR + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeR + "px";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.fontWeight = "600";
}

function VingtSeptMaiApresAffiches()
{
	this.id = "VingtSeptMaiR"
	var zfontSizeR = Math.floor(20 * ratiodiv);
	ztopR = Math.floor( ratiodiv * 10 );
	zleftR = getWindowWidth() - Math.floor( ratiodiv * 150 );
	zwidthR = Math.floor(ratiodiv * 80);
	zheightR = Math.floor(ratiodiv * 25);
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthR + "px";
	document.getElementById(this.id).style.height = zheightR + "px";
	document.getElementById(this.id).style.top = ztopR + "px";
	document.getElementById(this.id).style.left = zleftR + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeR + "px";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.fontWeight = "600";
	/*
	alert ( 
		   	"this.id : " + this.id + "\n"
			+ "getWindowHeight() : " + getWindowHeight() + "\n"
			+ "ztopR : " + ztopR + "\n"
			+ "getWindowWidth() : " + getWindowWidth() + "\n"
			+ "zleftR : " + zleftR
		);
	*/	   	 
}

function ImageWindow(parm, largeur, hauteur)
{
	this.page = parm;
	ratioImage = hauteur / largeur;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = Math.floor( screen.height * 0.90 );
	zwidth = Math.floor( zheight / ratioImage );
	innerzwidth = zwidth - 5;
	innerzheight = zheight - 5;
	ztop = 20;
	zleft = 20;
	/*
	alert("largeur : " + largeur + ", hauteur : " + hauteur + ", ratioImage : " + ratioImage + "\n" +
		  "zheight : " + zheight + ", zwidth : " + zwidth + ", innerzwidth : " + innerzwidth + ", innerzheight : " + innerzheight);
	*/
	wr  = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
	wr += "<html xmlns='http://www.w3.org/1999/xhtml'>";
	wr += "<head><title>Document " + this.page + " </title>";
	wr += "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />";
	wr += "</head><body style='overflow:auto;margin:0px;padding:0px;'>";
	wr += "<img src='" + this.page + "' width='" + innerzwidth + "' height='" + innerzheight + "' />";
	wr += "</body></html>";
	
	option  = 'toolbar=0,';
	option += 'location=0,';
	option += 'personalbar=0,';
	option += 'status=1,';
	option += 'menubar=0,';
	option += 'scrollbars=1,';
	option += 'titlebar=0,';
	option += 'resizable=0,';
	option += 'dependent=0,';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	newFirst = window.open("","AffichagePopUp",option);
	newFirst.document.write(wr);
}

function imgFichier( img, largeur, hauteur )
{
	this.id = img;
	ratioImage = hauteur / largeur;
	
	zwidth = Math.floor( ( workareaWidth - 60 * ratio2 ) / 6 ) ;
	innerzwidth = zwidth - 5;
	zheight = Math.floor( zwidth * ratioImage );
	innerzheight = zheight - 5;
	
	if ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.width = innerzwidth + "px";
		document.getElementById(this.id).style.height = innerzheight + "px";
	}
	else 
	{ 
		alert( "this.id : " + this.id + ", problème fonction imgFichier" ); 
	}
}

function afficherIMG()
{
	zwidth = Math.floor( ( zWindowWidth - Math.floor( 100 * ratiodiv ) ) / 5 );
	ratioImage = 745 / 1053;
	zheight = Math.floor( zwidth / ratioImage ) ;
	iwidth = zwidth - Math.floor( 10 * ratiodiv );
	iheight = zheight - Math.floor( 10 * ratiodiv );
	// alert("Début afficherIMG");
	
	for(i = 1; i <= URLAffiches27mai[0]; i++)
	{
		this.id = URLAffiches27mai[i];
		image  = "<div id='AffichesPortFolio" + i + "'";
		image += "onclick='javascript:Affiches27maiBig(" + '"' + URLAffiches27mai[i] + '"' + ");'>";
		image += "<img id=";
		image += "'URLAIMG" + i;
		image += "' src='";
		image += this.id;
		image += "' alt='";
		image += "Affiche N&deg; " + i;
		image += "' title='Affiche N&deg; " + i;
		image += "' width='" + iwidth + "' height='" + iheight + "' />\n";
		image += "</div>";
		image += "<script type='text/javascript'>dimIMG(" + i + ");</script>\n";
		// if (i == 11) {alert(image);}
		document.write(image);
	}
}

function dimIMG(i)
{	
	this.i = i;
	zwidth = Math.floor( ( zWindowWidth - Math.floor( 100 * ratiodiv ) ) / 5 );
	ratioImage = 745 / 1053;
	zheight = Math.floor( zwidth / ratioImage ) ;
	iwidth = zwidth - Math.floor( 10 * ratiodiv );
	iheight = zheight - Math.floor( 10 * ratiodiv );
		
	j = Math.floor( (i - 1) / 5 );
	k = i - 5 * j;
	
	this.id = "AffichesPortFolio" + i;
	/*
	if ( i == 11) alert("this.id : " + this.id 
		  + "\ni : " + i + ", j : " + j + ", k : " + k );
	*/
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.top = 50 + j * ( zheight + Math.floor( 20 * ratiodiv ) ) + "px";
	document.getElementById(this.id).style.left = ( k - 1 ) * ( 10 + zwidth ) + "px";
	document.getElementById(this.id).style.height = zheight  + "px";
	document.getElementById(this.id).style.width = zwidth  + "px";
	document.getElementById(this.id).style.margin = Math.floor( 20 * ratiodiv ) + "px";
	document.getElementById(this.id).style.padding = 0 + "px";
	document.getElementById(this.id).style.borderColor = "#000000";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.backgroundColor = "#FFFFFF";
	/*
	if ( i == 11 )
	{
		alert("this.id : " + this.id 
			  + "\ni : " + i + ", j : " + j + ", k : " + k   
			  + "\nzheight : " + document.getElementById(this.id).style.height 
			  + "\nzwidth :  " + document.getElementById(this.id).style.width
			  + "\nztop : " + document.getElementById(this.id).style.top
			  + "\nzleft : " + document.getElementById(this.id).style.left);
			
	}
	*/
	this.id = "URLAIMG" + i;
	
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.width = zwidth + "px";
	
}

function Affiches27maiBig(parm)
{
	this.page = parm;
	ratioImage = 1053 / 745;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = Math.floor( screen.height * 0.75 + ratiodiv * 60 );
	zwidth = Math.floor( zheight / ratioImage );
	innerheight = zheight - Math.floor( ratiodiv * 60 );
	innerwidth = Math.floor( innerheight / ratioImage );
	
	trailerBIGtop = innerheight + Math.floor( ratiodiv * 10 );
	trailerBIGleft = 0;
	trailerBIGwidth = Math.floor( ratiodiv * 300 );
	trailerBIGheight = Math.floor ( ratiodiv * 20 );
	returnBIGtop = innerheight + Math.floor( ratiodiv * 10 );
	returnBIGleft = trailerBIGwidth + Math.floor( ratiodiv * 30 );
	returnBIGwidth = Math.floor( ratiodiv * 100 );
	returnBIGheight = Math.floor ( ratiodiv * 20 );
	
	ztop = 0;
	zleft = 0;
	/*
	alert("Affiches27maiBig : " + "\n"
		  + "ratioImage : " + ratioImage + "\n" 
		  + "zheight : " + zheight + "\n"
		  + "innerheight : " + innerheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  + "innerwidth : " + innerwidth 
		  );
	*/
	var wr = new String();
	wr  = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n";
	wr += "<html xmlns='http://www.w3.org/1999/xhtml'>\n";
	wr += "<head>\n";
	wr += "<title>Document " + this.page + " </title>\n";
	wr += "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />\n";
	wr += "<script type='text/javascript' src='./indexoper.js'></script>\n";
	wr += "<link rel='stylesheet' href='./indexoper.css' type='text/css' />\n";
	wr += "<link rel='stylesheet' href='./indexoper-style.css' type='text/css' />\n";
	wr += "</head>\n";
	wr += "<body style='overflow:auto;margin:0px;padding:0px;'>\n";
	wr += "<div id='imageBig' style='width:";
	wr += innerwidth + 'px;';
	wr += 'height:' + innerheight + "px;background-color:#FFFFFF;'>\n";
	wr += "<img  id='image' src='" + this.page + "' width='" + innerwidth + "' height='" + innerheight + "' />\n";
	wr += "</div>\n";
	wr += "<div id='trailerBIG' style='top:";
	wr += trailerBIGtop + "px;width:";
	wr += trailerBIGwidth + "px;left:";
	wr += trailerBIGleft + "px;height:";
	wr += trailerBIGheight + "px;'>\n";
	wr += "&copy; CGT M&eacute;taux Montpellier - 2010\n";
	wr += "</div>\n";
	wr += "<div class='ReturnOut' id='returnBIG' style='top:";
	wr += returnBIGtop + "px;width:";
	wr += returnBIGwidth + "px;left:";
	wr += returnBIGleft + "px;height:";
	wr += returnBIGheight + "px;' ";
	wr += "onmouseout='this.className=" + '"ReturnOut"' + "' ";
	wr += "onmouseover='this.className=" + '"ReturnOver"' + "' ";
	wr += "onclick='javascript:window.close()'";
	wr += ">\n";
	wr += "Retour\n";
	wr += "</div>\n";
	wr += "<script type='text/javascript'>BigTrailerReturn();</script>\n";
	wr += "</body>\n";
	wr += "</html>\n";
	// alert(wr);
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + opt + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	newBig=window.close("AffichePopUpBig");
	newBig=window.open("","AffichagePopUpBig",option);
	newBig.document.write(wr);
	
}

function FlbN(id)
{
	this.id = id;
	switch (this.id)
	{
		
			
	}
}

function DossierFEindustrie()
{
	this.id = "bandeaudiv";
	var pfontSize = 5 + "mm";
	ztopTb = 0;
	zleftTb = 0;
	zwidthTb = zWindowWidth - Math.floor( ratioW * 100);
	ratioCS = 1500 / 600;
	zheightTb = Math.floor( zwidthTb / ratioCS );
	
	document.getElementById(this.id).style.width = zwidthTb + "px";
	document.getElementById(this.id).style.height = zheightTb + "px";
	document.getElementById(this.id).style.top = ztopTb + "px";
	document.getElementById(this.id).style.left = zleftTb + "px";
	
	
	this.id = "enteteSoutien";
	// ztopeS = ztopTb + zheightTb + 40;
	// zheighteS = Math.floor( ratiodiv * 110 );
	
	document.getElementById(this.id).style.width = zwidthTb + "px";
	// document.getElementById(this.id).style.height =  zheighteS+ "px";
	// document.getElementById(this.id).style.top = ztopeS + "px";
	document.getElementById(this.id).style.left = zleftTb  + "px";
	document.getElementById(this.id).style.fontSize =  pfontSize;
	// alert(document.getElementById(this.id).style.height);
		
	this.id = "ComitSoutFEI"
	var zfontSizeT = Math.floor( 40 * ratioHCS );
	// ztopT = zheighteS + ztopeS + Math.floor( 70 * ratioHCS );
	zwidthT = zWindowWidth - Math.floor( ratioW * 680 );
	zmargeT = zWindowWidth - zwidthT;
	zleftT = Math.floor( zmargeT / 2 );
	// zheightT = Math.floor(ratioHCS * 50);
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthT + "px";
	// document.getElementById(this.id).style.height = zheightT + "px";
	// document.getElementById(this.id).style.top = ztopT + "px";
	document.getElementById(this.id).style.left = zleftT + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeT + "px";
	document.getElementById(this.id).style.fontWeight = "600";
	document.getElementById(this.id).style.fontFamily = "serif";
	document.getElementById(this.id).style.color = "#FFFFFF";
	document.getElementById(this.id).style.backgroundColor = "#880000";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.borderColor = "#FF0000";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	
	this.id="corpus";
	
	// ztop =  ztopT + zheightT + Math.floor( ratioHCS * 20 );
	zleft = 0;
	zwidth = zWindowWidth - Math.floor( ratioW * 40 );
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = "auto";
	document.getElementById(this.id).style.height = "auto";
	// document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.borderColor = "#0000FF";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.margin = "20px";
	document.getElementById(this.id).style.padding = "20px";
	
	i = 1;
	this.id = "hyperl" + i;
	
	while ( document.getElementById(this.id) )
	{
		
		var zfontSize = Math.floor( 30 * ratioHCS );		
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		document.getElementById(this.id).style.color = "#FF0000";
		
		i++;
		this.id = "hyperl" + i;
	}
	
	i = 1;
	this.id = "h4" + i;
	while ( document.getElementById(this.id) )
	{
		
		var zfontSize = Math.floor( 36 * ratioHCS );		
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		document.getElementById(this.id).style.color = "#009900";
		
		i++;
		this.id = "h4" + i;
	}
	
	i = 1;
	this.id = "sommaireFEI" + i;
	while ( document.getElementById(this.id) )
	{
		
				
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.fontStyle =  "italic";
		
		i++;
		this.id = "sommaireFEI" + i;
	}
	
	this.id = "ComitSoutFEIR"
	var zfontSizeR = Math.floor(40 * ratioHCS);
	// ztopR = zWindowHeight - Math.floor( ratioHCS * 100);
	zleftR = zWindowWidth - Math.floor(ratioW * 300);
	zwidthR = Math.floor(ratioW * 135);
	zheightR = Math.floor(ratioHCS * 50);
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidthR + "px";
	document.getElementById(this.id).style.height = zheightR + "px";
	// document.getElementById(this.id).style.top = ztopR + "px";
	document.getElementById(this.id).style.left = zleftR + "px";
	document.getElementById(this.id).style.fontSize = zfontSizeR + "px";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.fontWeight = "600";
}

function afficherCS(pagemenu)
{

	zheight2 =  Math.floor( screen.height * 0.75 );
	zwidth = Math.floor( zheight2 * 3.5 / 3 );
	zheight = zheight2 + Math.floor( ratiodiv * 30 );
	ztop =0;
	zleft = 0;
	
	opt = 0;
	
	this.page = pagemenu;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=1,';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=1,';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;

	// alert("Page : " + this.page + "\nOptions : " + option);
	
	nw = window.open(this.page,'',option);
	 
}

function afficherPDS(pagemenu)
{

	zheight =  Math.floor( getWindowWidth() * 0.7 );
	zwidth = Math.floor( zheight * 1.5 );
	ztop =20;
	zleft = 20;
	
	opt = 1;
	
	this.page = pagemenu;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=1,';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=1,';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;

	// alert("Page : " + this.page + "\nOptions : " + option);
	
	nw = window.open(this.page,'_parent',option);
	 
}

function afficherTLB(pagemenu)
{

	zheight =  screen.height - Math.floor( ratiodiv * 90 );
	zwidth = Math.floor( zheight * 6 / 3 );
	ztop =15;
	zleft = 15;
	opt = 0;
	this.page = pagemenu;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=1,';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=1,';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;

	// alert("Page : " + this.page + "\nOptions : " + option);
	
	nw = window.open(this.page,'',option);
	 
}



function object_jpg()
{
	// alert('toto');
	zwidthTb = zWindowWidth - Math.floor( ratioW * 100 );
	ratioCS = 1500 / 600;
	zheightTb = Math.floor( zwidthTb / ratioCS );
	svg  = "<object id='bandeaudi' type='image/svg+xml' width='";
	svg += zwidthTb;
	svg += "' height='";
	svg += zheightTb;
	svg += "' data='Images/CollecteSolidariteComiteSoutienFEindustrie.svg'";
	svg += "</object>";
	// alert(svg + " " + zwidthTb + " " + zheightTb);
	code = document.write(svg);
	// alert (code);
}

function image_jpg()
{
	zwidthTb = zWindowWidth - Math.floor( ratioW * 100 );
	ratioCS = 1500 / 600;
	zheightTb = Math.floor( zwidthTb / ratioCS );
	img  = "<img id='bandeaudi' src='./Images/CollecteSolidariteComiteSoutienFEindustrie.png'";
	img += " alt='Comité de soutien aux salariés de FE Industries (Marseillan)'";
	
	img += " width='";
	img += zwidthTb;
	img += "'";
	img += " height='";
	img += zheightTb;
	
	img += "'>";
	document.write(img);
}
/*
function redimension(id)
{
	
	this.id = id;
	//alert(this.id)
	
	ztop = Math.floor( ratiodiv * ZoZo01[2] );
	zheight = getWindowHeight() - ztop;
	ztot = ztop + zheight;
	
	document.getElementById(this.id).style.left	= Math.floor( ratiodiv * ZoZo01[1] ) + "px";
	document.getElementById(this.id).style.top 	=  ztop + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.width 	= Math.floor( ratiodiv * ZoZo01[4] ) + "px";
	
	
	alert ( "this.id : " + this.id + "\n"
			
			+ "top : " + document.getElementById(this.id).style.left + "\n"
			+ "left : " + document.getElementById(this.id).style.left + "\n"
			+ "height : " + document.getElementById(this.id).style.height + "\n"
			+ "width : " + document.getElementById(this.id).style.width + "\n"
			+ "zWindowWidth : " + getWindowHeight() + "\n"
			+ "top + height : " + ztot + "\n"
			+ "fontSize : " + document.getElementById(this.id).style.fontSize
			
		);
	
}
*/
function TitreVSMAA()
{
	this.id = "TitreVSMAA";
	ztop = 0;
	zwidth = zWindowWidth - 2 * Math.floor( 350 * ratiodiv );
	zleft = Math.floor( 350 * ratiodiv );
	
	zheight = Math.floor( 25 * ratiodiv );
	var zfontSize = Math.floor( 20 * ratiodiv );
	zmargin = Math.floor( 5 * ratiodiv );
	zpadding =  Math.floor( 5 * ratiodiv );
	
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.width = zwidth;
	document.getElementById(this.id).style.fontSize = zfontSize + "px";
	document.getElementById(this.id).style.padding = zpadding + "px";
	document.getElementById(this.id).style.margin = zmargin + "px";
	/*
	alert ( "this.id : " + this.id + "\n"
			+ "top : " + document.getElementById(this.id).style.top + "\n"
			+ "left : " + document.getElementById(this.id).style.left + "\n"
			+ "height : " + document.getElementById(this.id).style.height + "\n"
			+ "width : " + document.getElementById(this.id).style.width + "\n"
			+ "zWindowWidth : " + zWindowWidth + "\n"
			+ "fontSize : " + document.getElementById(this.id).style.fontSize + "\n"
			+ "padding : " + document.getElementById(this.id).style.padding
		);
	*/
}

function BigTrailerReturn()
{
	this.id = "trailerBIG";
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 24 );
	this.id = "returnBIG";
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 24);
	/*
	alert( "this.id : trailerBIG " 
		  	+ document.getElementById("trailerBIG").style.fontSize 
			+ "\n" 
			+ "this.id : returnBIG "
			+ document.getElementById("returnBIG").style.fontSize
		);
	*/
}

function AfficherWindow(parm)
{
	this.page = parm;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = Math.floor( screen.height * 0.80 );
	zwidth = Math.floor( zheight * 1.2 );
	ztop = 20;
	zleft = 20;
	/*
	alert("this.page : " + this.page + "\n"
		  + "ztop : " + ztop + "\n"
		  + "zleft : " + zleft + "\n"
		  + "zheight : " + zheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  );
	*/
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + opt + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	// alert(option);
	
	newBig=window.open(this.page,"aquisad",option);
	
}

function ragi()
{
	this.i= 1;
	this.id = "noteRAG" + this.i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 13 );
		document.getElementById(this.id).style.color = "#FF0000";
		this.i++;
		this.id = "noteRAG" + this.i;
	}
}

function statutspreamb()
{
	this.id = "TitreStatuts";
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 44 );
	this.id = "preamb";
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 34 );
		
}

function AfficherStatutsCGT(parm)
{
	this.page = parm;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = getWindowHeight();
	zwidth = Math.floor( zheight * 210 / 270 );
	ztop = 10;
	zleft = 10;
	/*
	alert("this.page : " + this.page + "\n"
		  + "ztop : " + ztop + "\n"
		  + "zleft : " + zleft + "\n"
		  + "zheight : " + zheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  );
	*/
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + 1 + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	// alert(option);
	
	newB=window.open(this.page,"aquisad",option);
	
}

function StatPar() {
	this.i = 1;
	while ( document.getElementById('StatPar'+i) ) {
		document.getElementById('StatPar'+i).style.fontSize = Math.floor( ratiodiv * 36 ) + "px";
		document.getElementById('StatPar'+i).style.paddingLeft = Math.floor( ratiodiv * 20 ) + "px";
		document.getElementById('StatPar'+i).style.paddingRight = Math.floor( ratiodiv * 20 ) + "px";
		document.getElementById('StatPar'+i).style.paddingTop = Math.floor( ratiodiv * 10 ) + "px";
		document.getElementById('StatPar'+i).style.paddingLeft = Math.floor( ratiodiv * 10 ) + "px";
		i++;
	}
}

function AfficherTelecStatuts()
{
	this.page = 'pageBlanche.php';
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = getWindowHeight();
	innerHeight = zheight - Math.floor( ratiodiv * 250 );
	zwidth = Math.floor( innerHeight * 5 / 3 );
	ztop = 10;
	zleft = Math.floor(ratiodiv * 350);
	/*
	alert("this.page : " + this.page + "\n"
		  + "ztop : " + ztop + "\n"
		  + "zleft : " + zleft + "\n"
		  + "zheight : " + zheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  );
	*/
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + 1 + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	// alert(option);
	
	newB=window.open('',"pageBlanche",option);
	
	docu = "pdf_stat45congres.pdf";
	title = "T&eacute;l&eacute;chargement des statuts de la CGT";
	
	explain  = '<div id="explain">\n';
	explain += '<h3 id="explainTit" style="text-align:center;">Explications</h3>\n';
	explain += '<p>Utiliser la fonction Adobe Readerpour copier le fichier sur votre disque dur</p>\n';
	explain += '</div>\n';
	
	// alert(explain);
	
	// newB.document.write(explain);
	
	pageBlanche  = '<div id="obj">\n'; 
	pageBlanche += '<object data="' + docu + '" ';
	pageBlanche += 'id="statutsCGT" type="application/pdf" ';
	pageBlanche += 'width="100%" height="' + zheight + '">\n';
	pageBlanche += 'alt : <a href="' + docu + '">' + docu + '</a>\n';
	pageBlanche += '</object>\n';
	pageBlanche += '</div>\n';
	pageBlanche += '<script type="text/javascript">';
	pageBlanche += 'ratiodiv = screen.width / 1280;';
	pageBlanche += 'this.id = "explain";';
	pageBlanche += 'document.getElementById(this.id).style.height = Math.floor( ratiodiv * 70 ) + "px";';
	pageBlanche += 'this.id = "obj";';
	pageBlanche += 'document.getElementById(this.id).style.top = Math.floor( 10 + ratiodiv * 70 ) + "px";';
	pageBlanche += 'document.getElementById(this.id).style.height = Math.floor( 10 + ratiodiv * 600 ) + "px";';
	pageBlanche += '// alert(this.id);';
	pageBlanche += '</script>\n';
		
	// alert(pageBlanche);
	newB.document.write(pageBlanche);
	
}

function TitreTcgt()
{
	i = 1;
	this.id = "TitreTcgt" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.position = "relative";
		document.getElementById(this.id).style.zindex = "auto";
		document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 18 ) + "px";
		document.getElementById(this.id).style.textAlign = "center";
		document.getElementById(this.id).style.fontFamily ='Georgia, "Times New Roman", Times, serif';
		document.getElementById(this.id).style.color = "#000077";
		document.getElementById(this.id).style.fontWeight = 500;
		document.getElementById(this.id).style.margin = 0 + "px";
		document.getElementById(this.id).style.padding = 0 + "px";
		/*
		alert("this.id : " + this.id + " ,\n"
			  + "fontSize : " + document.getElementById(this.id).style.fontSize + "\n"
			  + "Calculé : " + Math.floor( ratiodiv * 18 ) + "px" 
			 );
		*/
		i++;
		this.id = "TitreTcgt" + i;
		
	}
	j = 1;
	this.id = "TitreComprendo" + j;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 13 ) + "px";
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.fontStyle = "italic";
		document.getElementById(this.id).style.fontFamily ='Georgia, "Times New Roman", Times, serif';
		document.getElementById(this.id).style.color = "#770000";
		document.getElementById(this.id).style.fontWeight = 500;
		j++;
		this.id = "TitreComprendo" + j;
	}
	k = 1;
	this.id = "TitreHref" + k;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 14 );
		k++;
		this.id = "TitreHref" + k;
	}
}

function AfficherLibertesSyndicales(parm)
{
	this.page = parm;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zheight = getWindowHeight() + Math.floor( ratiodiv * 25 );
	zwidth = Math.floor( zheight * 4 / 3 );
	ztop = 0;
	zleft = 70;
	/*
	alert("this.page : " + this.page + "\n"
		  + "ztop : " + ztop + "\n"
		  + "zleft : " + zleft + "\n"
		  + "zheight : " + zheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  );
	*/
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + 1 + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	// alert(option);
	
	newC=window.open(this.page,"LibSyndic",option);
	
}

function TitreLibSyndDiv()
{
	this.id = "TitreLibSynd";
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 26 ) + "px";
	i = 1;
	this.id = "LibSyndH5" + i;
	while ( document.getElementById( this.id ) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor ( ratiodiv * 20 ) + "px";
		i++;
		this.id = "LibSyndH5" + i;
	}
	i = 1;
	this.id = "LibSyndH4" + i;
	while ( document.getElementById( this.id ) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor ( ratiodiv * 23 ) + "px";
		i++;
		this.id = "LibSyndH4" + i;
	}
	i = 1;
	this.id = "LSpn" + i;
	while ( document.getElementById( this.id ) )
	{
		document.getElementById(this.id).style.fontSize = Math.floor ( ratiodiv * 18 ) + "px";
		i++;
		this.id = "LSpn" + i;
	}
}

function DossierNegoAnnuelleOblig()
{
	var pfontSize = 5 + "mm";
	this.id = "NAOTitre";
	ztop = 0;
	zheight = Math.floor( ratiodiv * 45 );
	zwidth = Math.floor( ratiodiv * 750 );
	zleft = 0;
	var zfontSize = Math.floor( ratiodiv * 35 )
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height =  zheight+ "px";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft  + "px";
	document.getElementById(this.id).style.fontSize =  zfontSize+ "px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.borderColor = "#F90";
	document.getElementById(this.id).style.backgroundColor = "#F90";
	document.getElementById(this.id).style.color = "#008";
	document.getElementById(this.id).style.margin = Math.floor( ratiodiv * 20 ) + "px";
	document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 20 ) + "px";
	document.getElementById(this.id).style.textAlign = "center";
	// alert(document.getElementById(this.id).style.height);
		
	this.id = "NAOReferences"
	var zfontSize = Math.floor( 22 * ratiodiv );
	ztop = Math.floor( 130 * ratiodiv );
	zwidth = Math.floor( ratiodiv * 650 );
	zmarges = zWindowWidth - zwidth - Math.floor( ratiodiv * 230 );
	zleft = Math.floor( zmarges / 2 );
	zheight = Math.floor( ratiodiv * 32);
	
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.fontSize = zfontSize + "px";
	document.getElementById(this.id).style.fontWeight = "500";
	document.getElementById(this.id).style.fontFamily = "Arial, Helvetica, sans-serif";
	document.getElementById(this.id).style.color = "#008";
	document.getElementById(this.id).style.backgroundColor = "#FFF";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.borderColor = "#000000";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.margin = Math.floor( ratiodiv * 10 ) + "px";
	document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 10 ) + "px";
	
	this.id="NAOcorpus";
	
	ztop = Math.floor( ratiodiv * 216 );
	zleft = 0;
	
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = "auto";
	document.getElementById(this.id).style.height = "auto";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.borderColor = "#0000FF";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.margin = "20px";
	document.getElementById(this.id).style.padding = "20px";
	document.getElementById(this.id).style.textAlign = "justify";
	
	i = 1;
	this.id = "hyperl" + i;
	
	while ( document.getElementById(this.id) )
	{	
		document.getElementById(this.id).style.fontSize = 6 + "mm";
		document.getElementById(this.id).style.color = "#FF0000";
		document.getElementById(this.id).style.fontWeight = 600;
		
		i++;
		this.id = "hyperl" + i;
	}
	
	i = 1;
	this.id = "h4" + i;
	while ( document.getElementById(this.id) )
	{		
		document.getElementById(this.id).style.fontSize = 6 + "mm";
		document.getElementById(this.id).style.color = "#009900";
		
		i++;
		this.id = "h4" + i;
	}
	
	i = 1;
	this.id = "NAOdocs" + i;
	while ( document.getElementById(this.id) )
	{
			
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.fontStyle =  "italic";
		document.getElementById(this.id).style.textAlign = "justify";
		
		i++;
		this.id = "NAOdocs" + i;
		
	}
	
	i = 1;
	this.id = "h3" + i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 7 + "mm";
		document.getElementById(this.id).style.borderStyle = "solid";
		document.getElementById(this.id).style.borderWidth = "1px";
		document.getElementById(this.id).style.borderColor = "#000066";
		document.getElementById(this.id).style.backgroundColor = "#FFFFCF";
		document.getElementById(this.id).style.color = "#000088";
		document.getElementById(this.id).style.margin = "5px";
		document.getElementById(this.id).style.padding = "5px";
		document.getElementById(this.id).style.width = Math.floor( ratiodiv * 175) + "px";
		document.getElementById(this.id).style.textAlign = "center";
		i++;
		this.id = "h3" + i;
		
	}
	
	i = 1;
	this.id = "p" + i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.backgroundColor = "#FFF";
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.padding = "5px";
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.fontFamily = '"Times New Roman", Times, serif';
		
		i++;
		this.id = "p" + i;
	}
	
	this.id = "NAOreturn"
	var zfontSize = Math.floor(20 * ratiodiv);
	
	zleft = zWindowWidth - Math.floor(ratiodiv * 300);
	zwidth = Math.floor(ratiodiv * 70);
	zheight = Math.floor(ratiodiv * 26);
	
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.fontSize = zfontSize + "px";
	document.getElementById(this.id).style.textAlign = "center";
}

function NAOsigleCGT(parm) {
		
	var NAOsigleCGT	= new Array("NAOsigleCGT",		840,		0,		150,	207		);
	
	this.id = parm;
	
	zleft = Math.floor( ratiodiv * NAOsigleCGT[1] );
	ztop = Math.floor( ratiodiv * NAOsigleCGT[2] );
	zwidth = Math.floor( ratiodiv * NAOsigleCGT[3] );
	zheight = Math.floor( ratiodiv * NAOsigleCGT[4] )
	
	document.getElementById(this.id).style.left = zleft  + "px";
	document.getElementById(this.id).style.top = ztop  + "px";
	document.getElementById(this.id).style.width = zwidth  + "px";
	document.getElementById(this.id).style.height = zheight  + "px";
	document.getElementById(this.id).style.padding = 0 + "px";
	document.getElementById(this.id).style.margin = 0 + "px";
	/*
	alert ( "this.id : " + this.id + "\n" 
			+ "top : " + document.getElementById(this.id).style.top + "\n"
			+ "left : " + document.getElementById(this.id).style.left + "\n"
			+ "height : " + document.getElementById(this.id).style.height + "\n"
			+ "width : " + document.getElementById(this.id).style.width + "\n"
		 );
	*/
	a  = '<img  src="./Images/LogoCGTmetMOP.png" alt="Sigle CGT" width="' + zwidth + '" height="' + zheight + '" />';
	document.write(a);
}

/*-------------------------------------------*/
/* Fontions javascript pour DossierAuxel.php */
/*-------------------------------------------*/

var defaultBackgroundColor = "#FFF";

function AUXsigleCGT(parm)
{
	this.parm = parm;
	NAOsigleCGT(this.parm); 
}

function AUXmaxsize(x)
{
	this.y =Math.floor( ratiodiv * x );
	return(this.y);
}

function DossierAuxel()
{
	var pfontSize = 5 +"mm";
	
	this.id = "AUXTitre";
	ztop = 0;
	zheight = Math.floor( ratiodiv * 45 );
	zwidth = Math.floor( ratiodiv * 750 );
	zleft = 0;
	var zfontSize = AUXmaxsize(28);
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height =  zheight+ "px";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft  + "px";
	document.getElementById(this.id).style.fontSize =  zfontSize + "px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.borderColor = "#F90";
	document.getElementById(this.id).style.backgroundColor = "#F90";
	document.getElementById(this.id).style.color = "#008";
	document.getElementById(this.id).style.margin = Math.floor( ratiodiv * 20 ) + "px";
	document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 20 ) + "px";
	document.getElementById(this.id).style.textAlign = "center";
	// alert( "this.id : " + this.id + ", fontSize : " + zfontSize );
		
	this.id = "AUXReferences"
	
	var zfontSize = AUXmaxsize(19);
	ztop = Math.floor( 130 * ratiodiv );
	zwidth = Math.floor( ratiodiv * 650 );
	zmarges = zWindowWidth - zwidth - Math.floor( ratiodiv * 230 );
	zleft = Math.floor( zmarges / 2 );
	zheight = Math.floor( ratiodiv * 32);
	
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.fontSize = zfontSize + "px";
	document.getElementById(this.id).style.fontWeight = "500";
	document.getElementById(this.id).style.fontFamily = '"Times New Roman", Times, serif';
	document.getElementById(this.id).style.color = "#008";
	document.getElementById(this.id).style.backgroundColor = "#FFFFBF";
	document.getElementById(this.id).style.textAlign = "center";
	document.getElementById(this.id).style.borderColor = "#000000";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.margin = Math.floor( ratiodiv * 10 ) + "px";
	document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 10 ) + "px";
	
	this.id="AUXcorpus";
	
	ztop = Math.floor( ratiodiv * 216 );
	zleft = 0;
	
	document.getElementById(this.id).style.position = "absolute";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zWindowWidth - Math.floor( ratiodiv * 65 ) + "px";
	// document.getElementById(this.id).style.width = "auto";
	document.getElementById(this.id).style.height = "auto";
	document.getElementById(this.id).style.top = ztop + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.borderColor = "#00FF00";
	document.getElementById(this.id).style.borderWidth = "1px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.margin = "10px";
	document.getElementById(this.id).style.padding = "10px";
	document.getElementById(this.id).style.textAlign = "justify";
	/*
	alert ( "this.id : " + this.id + "\n" 
			+ "top : " + document.getElementById(this.id).style.top + "\n"
			+ "left : " + document.getElementById(this.id).style.left + "\n"
			+ "height : " + document.getElementById(this.id).style.height + "\n"
			+ "width : " + document.getElementById(this.id).style.width + "\n"
		 );
	*/
	i = 1;
	this.id = "hyperl" + i;
	
	while ( document.getElementById(this.id) )
	{
		
		// var zfontSize = AUXmaxsize(20);		
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.color = "#FF0000";
		document.getElementById(this.id).style.fontWeight = 600;
		document.getElementById(this.id).style.textDecoration = "none";
		
		
		i++;
		this.id = "hyperl" + i;
	}
	
	i = 1;
	this.id = "h4" + i;
	while ( document.getElementById(this.id) )
	{
		
		var zfontSize = AUXmaxsize(24);		
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		document.getElementById(this.id).style.color = "#000099";
		document.getElementById(this.id).style.fontWeight = "600";
		document.getElementById(this.id).style.fontStyle = "italic";
		document.getElementById(this.id).style.textDecoration = "underline";
		document.getElementById(this.id).style.margin = "0px";
		document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 5 ) + "px";
		
		i++;
		this.id = "h4" + i;
	}
	
	i = 1;
	this.id = "h5" + i;
	while ( document.getElementById(this.id) )
	{
		
		// var zfontSize =AUXmaxsize(22);		
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.color = "#009900";
		
		i++;
		this.id = "h5" + i;
	}
	
	i = 1;
	this.id = "AUXdiv" + i;
	while ( document.getElementById(this.id) )
	{
		
		var zfontSize = AUXmaxsize(22);		
		document.getElementById(this.id).style.paddingBottom = Math.floor( ratiodiv * 10 ) + "px";
		document.getElementById(this.id).style.paddingTop = Math.floor( ratiodiv * 10 ) + "px";
		document.getElementById(this.id).style.paddingLeft = 0 + "px";
		document.getElementById(this.id).style.paddingRight = 0 + "px";
		document.getElementById(this.id).style.margin = 0 + "px";
		document.getElementById(this.id).style.borderColor = "#FF0000";
		document.getElementById(this.id).style.borderWidth = "1px";
		document.getElementById(this.id).style.borderStyle = "none";
		document.getElementById(this.id).style.display = "block";
		
		i++;
		this.id = "AUXdiv" + i;
	}
	
	i = 1;
	this.id = "AUXdocs" + i;
	while ( document.getElementById(this.id) )
	{
		
		zfontSize = AUXmaxsize(20);		
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.fontStyle =  "italic";
		document.getElementById(this.id).style.textAlign = "justify";
		
		i++;
		this.id = "AUXdocs" + i;
		
	}
	
	i = 1;
	this.id = "h3" + i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = AUXmaxsize(24) + "px";;
		document.getElementById(this.id).style.borderStyle = "solid";
		document.getElementById(this.id).style.borderWidth = "1px";
		document.getElementById(this.id).style.borderColor = "#000066";
		document.getElementById(this.id).style.backgroundColor = "#FFFFCF";
		document.getElementById(this.id).style.color = "#000088";
		document.getElementById(this.id).style.margin = "5px";
		document.getElementById(this.id).style.padding = "5px";
		document.getElementById(this.id).style.width = Math.floor( ratiodiv * 250 ) + "px";
		document.getElementById(this.id).style.textAlign = "center";
		i++;
		this.id = "h3" + i;
		
	}
	
	i = 1;
	this.id = "AUXp" + i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.backgroundColor = defaultBackgroundColor;
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 5 ) + "px";
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.fontFamily = '"Times New Roman", Times, serif';
		document.getElementById(this.id).style.margin = 0 + "px";
		document.getElementById(this.id).style.padding = 0 + "px";
		document.getElementById(this.id).style.paddingTop = Math.floor( ratiodiv * 10 ) + "px";
		document.getElementById(this.id).style.paddingBottom = Math.floor( ratiodiv * 10 ) + "px";
		
		// alert("this.id : " + this.id + ", fontSize : " + document.getElementById(this.id).style.fontSize );  
		
		i++;
		this.id = "AUXp" + i;
	}
	
	i = 1;
	this.id = "AUXli" + i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = pfontSize;
		document.getElementById(this.id).style.fontStyle = "italic";
		document.getElementById(this.id).style.backgroundColor = "#FFF";
		document.getElementById(this.id).style.color = "#000066";
		document.getElementById(this.id).style.paddingRight = 0 + "px";
		document.getElementById(this.id).style.marginLeft = Math.floor(ratiodiv * 10) + "px";
		document.getElementById(this.id).style.paddingBottom = Math.floor(ratiodiv * 5) + "px";
		document.getElementById(this.id).style.paddingTop = Math.floor(ratiodiv * 5) + "px";
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.fontFamily = '"Times New Roman", Times, serif';
		
		i++;
		this.id = "AUXli" + i;
	}
	
	this.id = "AUXreturn"
	var zfontSize = AUXmaxsize(20);
	
	zleft = zWindowWidth - Math.floor(ratiodiv * 300);
	zwidth = Math.floor(ratiodiv * 70);
	zheight = Math.floor(ratiodiv * 26);
	
	document.getElementById(this.id).style.position = "relative";
	document.getElementById(this.id).style.zindex = "auto";
	document.getElementById(this.id).style.width = zwidth + "px";
	document.getElementById(this.id).style.height = zheight + "px";
	document.getElementById(this.id).style.left = zleft + "px";
	document.getElementById(this.id).style.fontSize = zfontSize + "px";
	// document.getElementById(this.id).style.textAlign = "center";


	i = 1;
	this.id = "Auxh6" + i;
	while ( document.getElementById(this.id) )
	{
		// alert(this.id);
		var zfontSize = AUXmaxsize(22);		
		document.getElementById(this.id).style.fontSize = zfontSize + "px";
		document.getElementById(this.id).style.color = "#000099";
		document.getElementById(this.id).style.fontWeight = "500";
		document.getElementById(this.id).style.fontStyle = "italic";
		document.getElementById(this.id).style.margin = "0px";
		document.getElementById(this.id).style.padding = Math.floor( ratiodiv * 5 ) + "px";
		document.getElementById(this.id).style.paddingLeft = Math.floor( ratiodiv * 15 ) + "px";
		
		i++;
		this.id = "Auxh6" + i;
	}
}

function AUXnote(id)
{
	this.i = id;
	this.note = AUXnotename[this.i];

	zheight =  Math.floor( screen.height * 0.70 );
	zwidth = Math.floor( zheight * 1.10 );
	ztop = 20;
	zleft = 200;
	
	var opt = 1;
	option  = 'toolbar=opt,';
	option += 'location=opt,';
	option += 'personalbar=opt,';
	option += 'status=1,';
	option += 'menubar=opt,';
	option += 'scrollbars=1,';
	option += 'titlebar=1,';
	option += 'resizable=opt,';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;

	// alert("Page : " + this.note + "\nOptions : " + option);
	
	AUXnw = window.open(this.note,'',option);
	 
}

function AUXnoteCSS(note)
{
	this.note = note;
	this.id = "AUXnote" + this.note;
	
	document.getElementById(this.id).style.margin = 5 + "mm";
	document.getElementById(this.id).style.padding = 5 + "mm";
	
	this.id = "AUXRh1";
	
	zwidth =  Math.floor( ratiodiv * 800 );
	zmarges = zWindowWidth - zwidth + Math.floor( ratiodiv * 40 );
	zleft = Math.floor( zmarges / 2);
	
	document.getElementById(this.id).style.backgroundColor = "#FFF9F0";
	document.getElementById(this.id).style.Color = "#000088";
	document.getElementById(this.id).style.margin =2 + "mm";
	document.getElementById(this.id).style.padding = 2 + "mm";
	document.getElementById(this.id).style.fontSize = 8 + "mm";
	document.getElementById(this.id).style.borderColor = "#990000";
	document.getElementById(this.id).style.borderWidth = 1 + "px";
	document.getElementById(this.id).style.borderStyle = "solid";
	document.getElementById(this.id).style.textAlign = "center";
	// document.getElementById(this.id).style.left = zleft + "px";
	// document.getElementById(this.id).style.width = zwidth + "px";;
	
	i = 1;
	this.id = "AUXRh2" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 7 + "mm";
		i++;
		this.id = "AUXRh2" + i;
	}
	
	i = 1;
	this.id = "AUXRh3" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 6 + "mm";
		document.getElementById(this.id).style.textAlign = "left";
		document.getElementById(this.id).style.Color = "#000088"
		document.getElementById(this.id).style.fontWeight = 500;
		document.getElementById(this.id).style.fontStyle = "italic";
		document.getElementById(this.id).style.textDecoration = "underline";
		document.getElementById(this.id).style.marginTop = 3 + "mm";
		document.getElementById(this.id).style.marginBottom = 3 + "mm";
		i++;
		this.id = "AUXRh3" + i;
	}
	
	i = 1;
	this.id = "AUXRp" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 5 + "mm"; 
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.Color = "#000088"
		document.getElementById(this.id).style.fontWeight = 500;
		document.getElementById(this.id).style.marginTop = 2 + "mm";
		document.getElementById(this.id).style.marginBottom = 2 + "mm";
		// if (i == 1) { alert ( document.getElementById(this.id).style.fontSize ); }
		i++;
		this.id = "AUXRp" + i;
	}
	
	i = 1;
	this.id = "AUXRli" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 5 + "mm"; 
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.Color = "#000088"
		document.getElementById(this.id).style.fontWeight = 500;
		document.getElementById(this.id).style.marginTop = 2 + "mm";
		document.getElementById(this.id).style.marginBottom = 2 + "mm";
		// if (i == 1) { alert ( document.getElementById(this.id).style.fontSize ); }
		i++;
		this.id = "AUXRli" + i;
	}
	
	i = 1;
	this.id = "AUXRli2" + i;
	while( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.fontSize = 5 + "mm"; 
		document.getElementById(this.id).style.textAlign = "justify";
		document.getElementById(this.id).style.Color = "#000088"
		document.getElementById(this.id).style.fontWeight = 500;
		document.getElementById(this.id).style.marginTop = 2 + "mm";
		document.getElementById(this.id).style.marginBottom = 2 + "mm";
		// if (i == 1) { alert ( document.getElementById(this.id).style.fontSize ); }
		i++;
		this.id = "AUXRli2" + i;
	}
}

var FlbAccord = new Array(
						  	7,
							"HyperlCGT",
							"SitesUtiles",
							"TribuneSociale",
							"ConvCol",
							"AccordsBranche",
							"EtudesSalaires",
							"InfosSalaires"
						);

function accordeonOuvert(parm)
{
	this.i = 1;
	this.id = parm + this.i;
	// alert(this.id);
	while ( document.getElementById( this.id ) )
	{
		document.getElementById( this.id ).style.display = "block";
		document.getElementById( this.id ).style.visibility = "visible";
		/*
		if ( parm == "TribuneSociale" )
		{
			alert(this.id + " open" + "\n" + "display:" + document.getElementById( this.id ).style.display);
		}
		*/
		this.i++;
		this.id = parm + this.i;
	}
}

function zozo()
{
	this.parm = "TribuneSociale";
	Debut = new Date();
	TempsDebut = Debut.getTime();
	// window.setTimeout("accordeonClos('TribuneSociale')" , 5000 );
	accordeonClos( this.parm );
	Fin = new Date();
	TempsFin = Fin.getTime();
	Elapsed = (TempsFin - TempsDebut);
	ligne = "<!-- Temps elapsed chargement page : " + Elapsed + " secondes -->";
	// document.write(ligne);
	alert("Elpsed time : " + Elapsed);
}

var accordeonClosTS = function(name)
{
	var oThis = this;
	this.name = name;
	this.montempo = function()
	{
		this.i = 1;
			this.id = this.name + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.name + this.i;
			}
	};
	this.tempo = function()
	{
		setTimeout ( function() { oThis.montempo(); } , 4000 );
	};
	
}

function accordeonClos(parm)
{
	this.parm = parm;
	// alert(this.parm);
	switch(this.parm)
	{
		case FlbAccord[1] :
			// HyperlCGT
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[2] :
			// SitesUtiles
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[3] :
			// TribuneSociale
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[4] :
			// ConvCol
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[5] :
			// AccordsBranche
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[6] :
			// EtudesSalaires
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[7] :
			// InfosSalaires
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[8] :
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
		case FlbAccord[9] :
			this.i = 1;
			this.id = this.parm + this.i;
			while ( document.getElementById( this.id ) )
			{
				document.getElementById( this.id ).style.display = "none";
				/*
				alert(
						  "this.parm : " + this.parm + "\n" +
						  "this.i : " + this.i + "\n" +
						  "this.id : " + this.id + "\n" +
						  "display : " + document.getElementById( this.id ).style.display
					 );
				*/
				this.i++;
				this.id = this.parm + this.i;
			}
			break;
	}
}

function FlbAcc(parm)
{
	this.parm = parm;
	this.i = 1;
	this.id = this.parm + this.i;
	while ( document.getElementById(this.id) )
	{
		document.getElementById(this.id).style.position = "relative";
		document.getElementById(this.id).style.zindex = "auto";
		if ( this.parm == "TribuneSociale" )
		{
			document.getElementById(this.id).style.width = Xwidth * 2 + "px";
		}
		else
		{
			document.getElementById(this.id).style.width = Xwidth2 + "px";
		}
		document.getElementById(this.id).style.left = 0 + "px";
		
		// document.getElementById(this.id).style.fontSize = tailleFont(18);
		// alert ( "fontSize : " + document.getElementById(this.id).style.fontSize );
		/*
		if ( this.parm == "TribuneSociale" )
		{
		alert(
			  	"this.parm	: " + this.parm + "\n" +
				"this.i 	: " + this.i + "\n" + 
				"this.id	: " + this.id + "\n" +
				"z-index	: " + document.getElementById(this.id).style.zindex + "\n" +
				"Xwidth		: " + Xwidth
			);
		}
		*/
		this.i++;
		this.id = this.parm + this.i;
	}
}

function image(parm)
{
	this.parm = parm;
	// alert(this.parm);
	
	image = new Image();
	image.src = this.parm;
	r = image.width / image.height;
	/*
	alert ("width : " + image.width + "\n" + 
		   "height : " + image.height + "\n" +
		   "r : " + r );
	*/
	if( getWindowWidth() < image.width - Math.floor(ratiodiv * 30) )
	{
		image.width = getWindowWidth() - Math.floor(ratiodiv * 40);
		image.height = Math.floor( image.width / r );
	}
	// alert (image.width + " " + image.height);
	img  = "<img src=\"";
	img += this.parm + "\" ";
	img += "width=\"" + image.width + "\" ";
	img += "height=\"" + image.height + "\" ";
	img += "style=\"border-style:solid;border-color:#009;border-width:1px;\" ";
	img += "alt=\"Appel à la grève et à la manifestation départementale de Montpellier\" />";
	// alert(img);
	
	document.write(img);
	
}

function zimg(parm)
{
	zimg = new Image();
	zimg.src = parm;
	r = zimg.width / zimg.height;
	/*
	alert ("Image : " + zimg.src + "\n" +
		   "width : " + zimg.width + "\n" + 
		   "height : " + zimg.height
		  );
	*/
	zimg.width = getWindowWidth() - Math.floor( ratiodiv * 200 );
	zimg.height = Math.floor( zimg.width / r );
	
	
	img  = "<img src=\"" + parm + "\" ";
	img += "class=\"zimg\" alt=\"Informations pour le sept septembre\" ";
	img += "title=\"Le sept septembre doit &ecirc;tre une grande journ&eacute;e du mouvement contre le projet Sarkozy sur les retraites et pour le progr&egrave; social\" ";
	img += "width=\"" + zimg.width + "\" ";
	img += "height=\"" + zimg.height + "\" />";
	// alert(img);
	document.write(img);
}

function afficherBanderole(parm)
{
	this.page = parm;
	
	// alert ( "parm : " + parm + "\nthis.page : " + this.page );
	
	zwidth = screen.width - Math.floor( ratiodiv * 25 );
	zheight= Math.floor( ratiodiv * 50 + zwidth / 410 * 70 );
	ztop = 20;
	zleft = 20;
	/*
	alert("this.page : " + this.page + "\n"
		  + "ztop : " + ztop + "\n"
		  + "zleft : " + zleft + "\n"
		  + "zheight : " + zheight + "\n"
		  + "zwidth : " + zwidth + "\n"
		  );
	*/
	opt = 0;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=' + opt + ',';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=' + opt + ',';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'dependent=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;
	
	// alert(option);
	
	newBig=window.open(this.page,"banderole2Octobre",option);
	
}

function bandero(parm)
{
	this.parm = parm;
	// alert(this.parm);
	
	image = new Image();
	image.src = this.parm;
	// r = image.width / image.height;
	
	image.width = getWindowWidth() - Math.floor( ratiodiv * 20 );
	image.height = Math.floor( image.width / 410 * 70 );
	
	img  = "<img src=\"";
	img += this.parm + "\" ";
	img += "style=\"border-style:none;\" ";
	img += "width=\"" + image.width + "\" ";
	img += "height=\"" + image.height + "\" ";
	img += "alt=\"Affichage de la bandole CGT Métaux 34 pour le 2 octobre\" />";
	// alert(img);
	
	document.write(img);
}

function TS() 
{
	
	
	for(i = 1; i <= TStop[0]; i++)
	{
		this.id = "TS" + this.i;
	
		// divmain(this.id);
		document.getElementById(this.id).style.width = Math.floor( ratiodiv * 185 ) + "px";
		if ( i == 1 )
		{
			document.getElementById(this.id).style.marginLeft = "auto";
			document.getElementById(this.id).style.marginRight = "auto";
			document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 26 ) + "px"; 
		}
		document.getElementById(this.id).style.height = Math.floor( ratiodiv * TSheight[i] ) + "px";
		// document.getElementById(this.id).style.top = Math.floor( ratiodiv * Flbtop[i] ) + "px";
		document.getElementById(this.id).style.left = TSleft + "px";
		document.getElementById(this.id).style.marginTop = 0.5 + "mm";
		document.getElementById(this.id).style.marginBottom = 0 + "mm";
		document.getElementById(this.id).style.padding = 1 + "mm";
		/*
		alert(
			  	"this.id : " + this.id + "\n" +
				"top : " + document.getElementById(this.id).style.top + "\n" +
				"left : " + document.getElementById(this.id).style.left + "\n" +
				"height : " + document.getElementById(this.id).style.height + "\n" +
				"width : " + document.getElementById(this.id).style.width
			 );
		*/
	}
	
	i = 1;
	this.id = "TST" + i;
	while ( document.getElementById(this.id) )
	{
		
		document.getElementById(this.id).style.position = "relative";
		document.getElementById(this.id).style.zindex = "auto";
		document.getElementById(this.id).style.width = Math.floor( ratiodiv * 185 ) + "px";
		document.getElementById(this.id).style.height = "auto";
		document.getElementById(this.id).style.marginTop = 0 + "mm";
		document.getElementById(this.id).style.marginBottom = 0 + "mm";
		document.getElementById(this.id).style.padding = 1 + "mm";
		
		
		// alert(this.id + " define");
		i++;
		this.id = "TST" + i;
	}
}

function sigleCGTGene()
{
	sigle = new Image();
	sigle.src = "./Images/LogoCGTmetMOP.png";
	zzwidth = sigle.width;
	zzheight = sigle.height;
	r = zzwidth / zzheight;
		
	zwidth = Math.floor( ratiodiv * 120 );
	zheight = Math.floor( zwidth / r )
	/*	
	alert (
			
			"height : " + zheight + "\n"
			+ "width : " + zwidth + "\n"
		 );
	*/	
	a  = "<img  src=\"" + sigle.src + "\" alt=\"Sigle CGT\" "
	a += "width=\"" + zwidth + "\" height=\"" + zheight + "\" />";
	document.write(a);
	
}

function td_titre()
{
	document.getElementById("td_sigle").style.width = Math.floor( ratiodiv * 120 ) + "px";
	document.getElementById("td_titre").style.width = getWindowWidth() - Math.floor( ratiodiv * 120 ) + "px";
	document.getElementById("td_titre").style.fontSize = Math.floor( ratiodiv * 45 ) + "px";
}

function sizeFont(parm)
{
	this.id = parm;
	document.getElementById(this.id).style.fontSize = Math.floor( ratiodiv * 15 ) + "px";
	document.getElementById(this.id).style.paddingTop = Math.floor( ratiodiv * 3) + "px";
}

function tailleFont(size)
{
	this.size = size;
	Npxparcm = screen.width / 47.5;
	Plafond = 0.40 * Npxparcm;
	/*
	alert (
		   	"this.size : " + this.size + "\n" +
			"Math.ceil : " + Math.ceil( this.size ) + "\n" +
			"Plafond = " + Plafond
		);
	*/
	if( this.size >= Plafond )
	{ return "4mm" }
	else { return this.size + "px"; }
}

function getBaseURL()
{
	var url = location.href;
	var baseURL = url.substring(0, url.indexOf('/', 14)); 
 
	if (baseURL.indexOf('http://localhost') != -1) {
		var pathname = location.pathname;
		var index1 = url.indexOf(pathname);
		var index2 = url.indexOf("/", index1 + 1);
		var baseLocalUrl = url.substr(0, index2);
 
		return baseLocalUrl;
	}
	else {
		return baseURL;
	}
}

function flot()
{
	this.id = "Flot";
	divmain(this.id);
	var ligne = getBaseURL();
	document.write("Hyperlien du site : <span style='font-style:normal;font-family:monospace;'>" + ligne + "</span>");
	window.setTimeout( "noflot();", 15000 );
}

function noflot()
{
	document.getElementById("Flot").style.display = "none";
}

function afficherCSFL(pagemenu)
{

	
	zwidth = 1024;
	zheight = getWindowHeight() - Math.floor( ratiodiv * 10 );
	ztop =0;
	zleft = 0;
	
	opt = 0;
	
	this.page = pagemenu;
	option  = 'toolbar=' + opt + ',';
	option += 'location=' + opt + ',';
	option += 'personalbar=' + opt + ',';
	option += 'status=1,';
	option += 'menubar=' + opt + ',';
	option += 'scrollbars=1,';
	option += 'titlebar=1,';
	option += 'resizable=' + opt + ',';
	option += 'left=' + zleft;
	option += ',top=' + ztop;
	option += ',height=' + zheight;
	option += ',width=' + zwidth;

	// alert("Page : " + this.page + "\nOptions : " + option);
	
	nw = window.open(this.page,'',option);
	 
}
