
<!--
function defineTables(){

var tables=document.getElementsByTagName("div");

var nwidth=10;
var nheight=10;
var swidth=10;
var sheight=10;

for (x in tables)
{
	if(tables[x].className=='to_round')
	{
		//récupère le contenu
		var contenu=tables[x].innerHTML;
		
		var mwidth=tables[x].style.width;
		var mheight=tables[x].style.height;
		
		if(mwidth!=''){mwidth='width="'+mwidth+'"';}
		if(mheight!=''){mheight='height="'+mheight+'"';}
		
		var string='<table cellpadding="0" cellspacing="0" border="0" ><tr>';
		string += '<td width="'+swidth+'" height="'+sheight+'"><img width="'+swidth+'" height="'+sheight+'" src="images/bg_cadre_hg.jpg" /></td>';
		string += '<td style="background-image:url(images/bg_cadre_h.jpg); background-repeat:repeat-x" height="'+sheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+sheight+'"><img width="'+nwidth+'" height="'+sheight+'" src="images/bg_cadre_hd.jpg" /></td>';
		string += '</tr><tr>';
		
		string += '<td style="background-image:url(images/bg_cadre_g.jpg); background-repeat:no-repeat" width="'+swidth+'" ></td>';
		string += '<td valign="top" align="left" '+mwidth+' '+mheight+' style="background-image:url(images/bg_cadre.jpg); background-repeat:repeat-x" >'+contenu+'</td>';
		string += '<td style="background-image:url(images/bg_cadre_d.jpg); background-repeat:no-repeat" width="'+nwidth+'" ></td>';
		string += '</tr><tr>';		
		
		string += '<td width="'+swidth+'" height="'+nheight+'"><img width="'+swidth+'" height="'+nheight+'" src="images/bg_cadre_bg.jpg" /></td>';
		string += '<td style="background-image:url(images/bg_cadre_b.jpg); background-repeat:repeat-x" height="'+nheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+nheight+'"><img width="'+nwidth+'" height="'+nheight+'" src="images/bg_cadre_bd.jpg" /></td>';
		string += '</tr></table>';		
		
		//alert(string);
		tables[x].innerHTML=string;
	}
}

return false;
}
-->