var yokwayBu="";
try {
	parent.top.inYokway=true;
	l = parent.top.location;
	yokwayBu=l.protocol+'//'+l.host;if (l.port) yokwayBu+=':'+l.port;
} catch (err) {}

function shareSomething(context) {w=window;w.sharingContext=context;w.o=w.document.createElement('scri'+'pt');w.o.setAttribute('src',yokwayBu+'/js/bookmarklet.js');w.o.setAttribute('type','text/javascript');void(w.document.body.appendChild(w.o));}

function sendCancelMessage(url) {
	try {
		var existingDialog = parent.top.document.getElementById('yokwayAuthoringDiv');
		if (existingDialog) {
			existingDialog.parentNode.removeChild(existingDialog);
		}
	} catch (err) {
		parent.top.location=url+"#yokway_closeBm";
	}
}

function sendCloseMessage(url) {
	try {
		wizard = parent.top.wizard;
		parent.top.document.location.reload();
	} catch(err) {
		parent.top.location=url+"#yokway_closeBm";
	}
}

