function lj_this()
{
	var u = 'http://www.livejournal.com/';
	var w = window.open('','','toolbar=0,resizable=1,scrollbars=1,status=1,width=730,height=500');
	if (window.LJ_bookmarklet) {
		return LJ_bookmarklet(w, u)
	};
	var e = document.createElement('script');
	e.setAttribute('type', 'text/javascript');
	e.onload = function() { LJ_bookmarklet(w, u) };
	e.setAttribute('src', u + 'js/bookmarklet.js');
	document.getElementsByTagName('head').item(0).appendChild(e);
	return false;
}

function subst(to)
{
	var ref = location.href;
	var title = document.title;
	to = to.replace('{ref}', ref);
	to = to.replace('{title}', title);
	return to;
}

function popup(url)
{
	var w = window.open(url,'','toolbar=0,resizable=1,scrollbars=1,status=1,width=730,height=500');
	return false;
}

