function Button(id,sX,sY,sH,sW,classS,colorS,colorB,contentC,linkC)
{
 	this.id=id;
	this.posX=sX;
	this.posY=sY;
	this.width=sW;
	this.height=sH;	
	this.classS=classS;
	this.colorS=colorS;
	this.colorBorder=colorB;
	this.content=contentC;
	this.link=linkC;	

	//contenedor seleccion
	m_buttonX=sX;
	m_buttonY=sY;
	m_buttonHeight=this.width;
	m_buttonWidth=this.height;
	

	this.table_00="<table height='"+this.selHeight+"' width='"+this.width+"' border='0' cellspacing='0' cellpadding='0'><tr><td rowspan='3' bgcolor='"+this.colorBorder+"' width='1'><img src='"+rutaEst+"fijos/images/t.gif' width='1' ></td><td bgcolor='"+this.colorBorder+"'><img src='"+rutaEst+"fijos/images/t.gif' width='1' ></td><td rowspan='3' width='1' bgcolor='"+this.colorBorder+"'><img src='"+rutaEst+"fijos/images/t.gif' width='1'></td></tr><tr><td><table bgcolor='";
	this.table_01="' cellpadding='0' cellspacing='0' border='0' width='"+(this.width-2)+"' ><tr>";
	this.table_02="</td></tr></table></td></tr><tr><td bgcolor='"+this.colorBorder+"'><img src='"+rutaEst+"fijos/images/t.gif' width='1' ></td></tr></table>";

	//area de seleccion
	buildLayer("m_button"+this.id,"m_button",55,"visible");
		textF=this.table_00+this.colorS+this.table_01+"<td><a href="+this.link+" class='"+this.classS+"'>&nbsp;"+this.content+"&nbsp;</a>"+this.table_02;		   	
 		document.write(textF);
	closeLayer();

function hide()
{ 	hideLayer("","","","m_button"+this.id);}

function show()
{ 	showLayer("","","","m_button"+this.id);}

function move(x,y)
{ 	
	changeStyle("","","","m_button"+this.id,"left",x);
	changeStyle("","","","m_button"+this.id,"top",y);
}
	this.hide=hide;
	this.show=show;
	this.move=move;		
}

