function Block(name){
	//ATTRIBUTES
	this.HTMLelement;
	this.title;
	this.content;

	var vh = 32;
	var vb = 15;
	var h1 = 31;
	var h2 = 33;
	var b1 = 14;
	var b2 = h1-b1;
	var b4 = 14;
	var b3 = h2-b4;

	if( typeof Block.initialized == "undefined" ) {
	
	//METHODS
		Block.prototype.setTitle = function(titleText) {
			this.title.appendChild(document.createTextNode(titleText));
		}
		
		Block.prototype.setContentSize = function(width, height){
			this.HTMLelement.style.width=width+b1+b4+"px";
			this.HTMLelement.style.height=height+vb+vh+"px";
		}
		
		Block.initialized = true; 
  }
	
	//CONSTRUCTOR
	this.HTMLelement = document.createElement("div");
	this.HTMLelement.id=name+'_bloc';
	var table = document.createElement('table');
	this.HTMLelement.appendChild(table);
	table.border = 0;
	table.vAlign='100%';
	table.style.width="100%";
	table.className='bloc';
	var tbody = table.appendChild(document.createElement('tbody'));

	var ligne = document.createElement('tr');
	tbody.appendChild(ligne);
	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.width=h1+"px";
	boite.height=vh+"px";
	boite.vAlign='top';
	img = document.createElement('img')
	boite.appendChild(img);
	img.src =tpath+'bloc_hg.gif';
	img.style.width=h1+"px";
	img.style.height=vh+"px";
	img.className="corner";
	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.className="b_m";
	boite.width="100%";
	boite.id=name+'_titre'
	this.title = boite;
	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.width=h2+"px";
	boite.vAlign='top';
	img = document.createElement('img')
	boite.appendChild(img);
	img.src =tpath+'bloc_hd.gif';
	img.style.width=h2+"px";
	img.style.height=vh+"px";
	img.className="corner";

	var table = document.createElement('table');
	this.HTMLelement.appendChild(table);
	table.border = 0;
	table.vAlign='100%';
	table.style.width="100%";
	table.className='bloc';
	var tbody = table.appendChild(document.createElement('tbody'));

	ligne = document.createElement('tr');
	tbody.appendChild(ligne);
	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.className='b_g';
	boite.width=b1+"px";
	boite.vAlign='top';

	boite = document.createElement('td');
	boite.id=name;
	ligne.appendChild(boite);
	boite.align='center';
	boite.vAlign='top';
	boite.backgroundColor="#EADD80";
	this.content = boite;

	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.className='b_d';
	boite.width=b4+"px";
	boite.vAlign='top';

	var table = document.createElement('table');
	this.HTMLelement.appendChild(table);
	table.border = 0;
	table.vAlign='100%';
	table.style.width="100%";
	table.className='bloc';
	var tbody = table.appendChild(document.createElement('tbody'));

	var ligne = document.createElement('tr');
	tbody.appendChild(ligne);
	var boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.width=b1+"px";
	boite.height=vb+"px";
	boite.vAlign='top';

	img = document.createElement('img')
	boite.appendChild(img);
	img.src =tpath+'bloc_bg.gif';
	img.style.width=b1+"px";
	img.style.height=vb+"px";
	img.className="corner";
	boite.vAlign='top';

	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.className="b_b";
	boite.height=vb+"px";
	boite.width="100%";
	boite.vAlign='top';

	boite = document.createElement('td');
	ligne.appendChild(boite);
	boite.width=b4+"px";
	boite.vAlign='top';
	img = document.createElement('img')
	boite.appendChild(img);
	img.src =tpath+'bloc_bd.gif';
	img.style.width=b4+"px";
	img.className="corner";
	boite.vAlign='top';


}
