base_cfgs["b_949"]={
settings: [
{type:'hidden',name:'url'},
{type:'text',title:'Text',size:'30',name:'text', eg:'My house'},
{type:'select',title:'Font',name:'font',remote:{service:'graphics',cfg:{action:'query'}}},
{type:'color',title:'Color',name:'color'},
{type:'select',title:'Size',name:'size',items:[{title:'Tiny',value:'20'},{title:'Small',value:'40'},{title:'Medium',value:'90'},{title:'Large',value:'140'}]}
],
width:1,
height:1,
scalable:1
}
box_functions['b_949']=function(box,var_store,when) {
var img_id=box.elements['image'] // Get the image idvar img=document.getElementById(img_id);var title=box.db['text'];img.title=title;img.alt=img.title;var link=document.getElementById(img_id + '_link');if (box.db.link) {	var anchor=document.createElement('A');	anchor.href=box.db.link;	dojo.dom.replaceNode(img,anchor);	anchor.appendChild(img);} else if (box.db.fullsize) {	dojo.require("dojox.image.Lightbox");	dojo.addOnLoad(function() {		var lightbox=new dojox.image.Lightbox({href:box.db.fullsize,title:title});		lightbox.startup();		dojo.connect(img,"onclick",lightbox,"show");		img.style.cursor='pointer';	});}function adjustDimension(img) {	img.onload=function() {		mw.dim=mw.getImageDimensions(img);		setTimeout("mw.selected.setDimensions(mw.dim);",1);    }}function loadImage(rendered) {	img.src=rendered.url;	img.style.height=rendered.height;	img.style.width=rendered.width;	mw.dim={height:rendered.height,width:rendered.width};		img.onload=function() {		setTimeout("mw.selected.setDimensions(mw.dim);",1);			dojo.fadeIn({node:img,duration:300}).play();		}	box.db['url']=rendered.url;
        //var config_form=dojo.byId('rxr_cfg_form');
	//config_form.elements[0].value=rendered.url;} // end// If the editor is on and the page has loaded once, we can render subsequent request// Only render// If we're in edit mode we may need to render an imageif (rox.editor) {	if (box.fresh_copy) {		// If we're making a copy, just apply the DB			img.src=box.db['url'];	} else if (!rox._page_loaded_once) {		// If this is the first time it's loaded, just apply the DB		img.src=box.db['url'];	} else {		// All other scenarios require a new rendering		var graphic=new roxer.graphic({			text:box.db['text'],			color:box.db['color'],			size:box.db['size'],
			font:box.db['font']		});		dojo.style(img, "opacity", 0);		dojo.connect(graphic,"onrendered", function(rendered) {loadImage(rendered)});	}} else {	// Just set the URL normally	img.src=box.db['url'];}var pub={size_guide:img};return pub;};
rox.loadBox('b_949')