
/////////////////////////////////////////////////////////////////////////////////
//         Paragraph Widget Renderer
////////////////////////////////

// Add widget to library:
library["JPARAGRAPH"]=widgetInfo("JPARAGRAPH","new jParagraph", "Párrafo") 


function jParagraph_Render(config)
{
	
	this.num=jParagraph_Render.count++
	

	
	this.config=config

}


jParagraph_Render.prototype.render=jParagraph_RenderRender
jParagraph_Render.prototype.destroy=jParagraph_RenderDestroy


function jParagraph_RenderRender()
{
	
	var div
	
	div="jParagraphDIV" + this.num
	
	//ml=createLayer("menuDIV",null,0,0,130,1000,"","#CCFFCC")
	
	cfg=this.config
	createLayer(div,null,0,0,100,100,"<P>"+renderText(cfg["TEXT"])+"</P>",null)
	
	d=new DynLayer(div)
	
	d.css.cssText=cfg["STYLE"]
	d.show();

	return false;	

}

function jParagraph_RenderDestroy()
{
	this.config=null
	delete this.config
}


jParagraph_Render.count=0
