function div(id){
  this.containerDiv = '';
	this.div = document.createElement('div');
  this.div.id = id
}
div.prototype.classe = function(className){
  this.div.className = className; 
}
div.prototype.container = function(containerDiv){
	if(typeof(containerDiv) == 'object') this.containerDiv = containerDiv;
  else this.containerDiv = getElement(containerDiv);
}
div.prototype.position = function(position){
	this.div.style.position = position;
}
div.prototype.float = function(floatPos){
  this.div.style.cssFloat = floatPos;
}
div.prototype.locate = function(x, y){
	this.position("absolute");
	this.div.style.left = x;
	this.div.style.top = y;
}
div.prototype.width = function(w){
	this.div.style.width = w;
}
div.prototype.height = function(h){
	this.div.style.height = h;
}
div.prototype.zindex = function(val){
	this.div.style.zIndex = val;
}
div.prototype.color = function(color){
	this.div.style.color = color;
}
div.prototype.backgroundColor = function(color){
	this.div.style.backgroundColor = color;
}
div.prototype.padding = function(padding){
	this.div.style.padding = padding;
}
div.prototype.border = function(width, style, color){
	if(width) this.div.style.borderWidth = width;
	if(style) this.div.style.borderStyle = style;
	if(color) this.div.style.borderColor = color;
}
div.prototype.show = function(){
	if(this.containerDiv == '') document.body.insertBefore(this.div,document.body.firstChild);
  else this.containerDiv.appendChild(this.div);
}
div.prototype.hide = function(){
	this.div.parentNode.removeChild(this.div);
}
div.prototype.content = function(content){
	this.div.innerHTML = content;
}
div.prototype.test = function(){
	alert('libreria controls presente');
}
