
<!--
/*document.getElementsByTagName function( e, t, rec ) {
	t = t.toUpperCase();
	if( rec !== false ) rec = true;
	var r = [];
	for ( var c = e.firstChild; c; c = c.nextSibling ) {
		if ( c.nodeType == 1 && ( c.nodeName == t || t == "*" ) )
			r.push( c );
		if( rec )
			r = r.concat( jQuery.getElementsByTagName( c, t ) );
	}
	return r;
}*/

function defineTables(){

var tables=document.getElementsByTagName("div");

var nwidth=14;
var nheight=14;
var swidth=7;
var sheight=7;

for (x in tables)
{
	if(tables[x].className=='to_round')
	{
		//récupère le contenu
		var contenu=tables[x].innerHTML;
		
		var string='<table cellpadding="0" cellspacing="0" border="0" ><tr>';
		string += '<td width="'+swidth+'" height="'+sheight+'"><img width="'+swidth+'" height="'+sheight+'" src="images/cadre_hg.png" /></td>';
		string += '<td style="background-image:url(images/cadre_h.png)" height="'+sheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+sheight+'"><img width="'+nwidth+'" height="'+sheight+'" src="images/cadre_hd.png" /></td>';
		string += '</tr><tr>';
		
		string += '<td style="background-image:url(images/cadre_g.png)" width="'+swidth+'" ></td>';
		string += '<td style="background-image:url(images/cadre.png)" >'+contenu+'</td>';
		string += '<td style="background-image:url(images/cadre_d.png)" width="'+nwidth+'" ></td>';
		string += '</tr><tr>';		
		
		string += '<td width="'+swidth+'" height="'+nheight+'"><img width="'+swidth+'" height="'+nheight+'" src="images/cadre_bg.png" /></td>';
		string += '<td style="background-image:url(images/cadre_b.png)" height="'+nheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+nheight+'"><img width="'+nwidth+'" height="'+nheight+'" src="images/cadre_bd.png" /></td>';
		string += '</tr></table>';		
		
		//alert(string);
		tables[x].innerHTML=string;
	}
	if(tables[x].className=='to_round_g')
	{
		//récupère le contenu
		var contenu=tables[x].innerHTML;
		
		var string='<table cellpadding="0" cellspacing="0" border="0" ><tr>';
		string += '<td width="'+swidth+'" height="'+sheight+'"><img width="'+swidth+'" height="'+sheight+'" src="images/cadreg_hg.png" /></td>';
		string += '<td style="background-image:url(images/cadreg_h.png)" height="'+sheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+sheight+'"><img width="'+nwidth+'" height="'+sheight+'" src="images/cadreg_hd.png" /></td>';
		string += '</tr><tr>';
		
		string += '<td style="background-image:url(images/cadreg_g.png)" width="'+swidth+'" ></td>';
		string += '<td style="background-image:url(images/cadreg.png)" >'+contenu+'</td>';
		string += '<td style="background-image:url(images/cadreg_d.png)" width="'+nwidth+'" ></td>';
		string += '</tr><tr>';		
		
		string += '<td width="'+swidth+'" height="'+nheight+'"><img width="'+swidth+'" height="'+nheight+'" src="images/cadreg_bg.png" /></td>';
		string += '<td style="background-image:url(images/cadreg_b.png)" height="'+nheight+'"></td>';
		string += '<td width="'+nwidth+'" height="'+nheight+'"><img width="'+nwidth+'" height="'+nheight+'" src="images/cadreg_bd.png" /></td>';
		string += '</tr></table>';		
		
		tables[x].innerHTML=string;
	}
}

return false;
}

function defineObjects(){
	
	/*var table=document.getElementsByName("video_inc");

	for (x in table)
	{
			alert(table[x].tagName);
		//embellish(objects[x]);
	}*/

return false;
}


function embellish(source) {

 // new page fragment 
 var fragment= document.createDocumentFragment();

 //new table 
 var table= document.createElement("table");
 table.align= "center";
 table.border="0";
 table.style.marginTop="10px";
 table.style.marginBottom="10px";
 // new tr 
 var tr= document.createElement("tr");
 // new td 
 var td= document.createElement("td");
 td.width=source.width;
 td.height=source.height;

 // copy source sans td, ds tr et ds table
 td.appendChild(source.cloneNode(true));
 tr.appendChild(td);
 table.appendChild(tr);

 // put table in page fragment 
 fragment.appendChild(table)
	
 // replace source with new fragment (contains a copy of source) 
source.parentNode.replaceChild(fragment, source);
}
-->
