
(
	function()
	{
		var c = document.getElementById('fitbrains_blog_widget_container');

		var b = escape( c.getAttribute('b') );
		var n = c.getAttribute('n');
		var d = c.getAttribute('d');

		c.style.width = (c.getAttribute('w') ? c.getAttribute('w') : 250) + 'px';
		c.style.height = (c.getAttribute('h') ? c.getAttribute('h') : 400) + 'px';

		c.style.border = '2px solid '+unescape(b);
		c.style.overflow = 'hidden';
		c.style.position = 'relative';

		c.innerHTML = '<iframe src="http://www.fitbrains.com/widgets/blog/widget.php?b='+b+'&n='+n+'&d='+d+'&u=ref-'+location.href+'" frameborder="0" scrolling="no" width="100%" height="100%"></iframe>';
	}
)();

