function toggleWatcher(token, current_video_id, stringOn, stringOff) {
	if (!self.sharing_active) {
		enableWatcherShare(token, current_video_id, stringOn);
	} else {
		disableWatcherShare(token, current_video_id, stringOff);
	}
}
function enableWatcherShare(token, current_video_id, stringOn) {
	var varg = "";
	if (current_video_id) {
		varg = "&v="+current_video_id;
	}
	showEnabledWatcher(stringOn)
	yt.net.ajax.sendRequest("/watcher?action_start_share=1" + varg + "&t="+ token, { method: "GET" });
}

function disableWatcherShare(token, current_video_id, stringOff) {
	var varg = "";
	if (current_video_id) {
		varg = "&v="+current_video_id;
	}
	showDisabledWatcher(stringOff);
	yt.net.ajax.sendRequest("/watcher?action_stop_share=1"+varg+"&t="+token, { method: "GET" });
}

function showEnabledWatcher(newString) {
	self.sharing_active = true;
	var img = _gel("sharingImg");
	var img2 = _gel('watchSharingImg');
	_removeclass(img, 'active-sharing-off');
	_addclass(img, 'active-sharing-on');

	if (img2) {
		_removeclass(img2, 'active-sharing-off');
		_addclass(img2, 'active-sharing-on');
	}

	if (_gel("watch-active-sharing-status-on")) {
		_hidediv('watch-active-sharing-status-off');
		_showdiv('watch-active-sharing-status-on');
	}

	img.title = newString;

	if (_gel("activesharing_start_button")) {
		_hidediv('activesharing_start_button');
		_showdiv('activesharing_stop_button');
	}

	if (_gel("activesharing_masthead_start")) {
		_hidediv('activesharing_masthead_start');
		_showdiv('activesharing_masthead_stop');
	}
}

function showDisabledWatcher(newString) {
	self.sharing_active = false;
	var img = _gel("sharingImg");
	var img2 = _gel("watchSharingImg");
	_removeclass(img, 'active-sharing-on');
	_addclass(img, 'active-sharing-off');

	if (img2) {
		_removeclass(img2, 'active-sharing-on');
		_addclass(img2, 'active-sharing-off');
	}

	if (_gel("watch-active-sharing-status-on")) {
		_hidediv('watch-active-sharing-status-on');
		_showdiv('watch-active-sharing-status-off');
	}

	img.title = newString;

	if (_gel("activesharing_start_button")) {
		_showdiv('activesharing_start_button');
		_hidediv('activesharing_stop_button');
	}

	if (_gel("activesharing_masthead_start")) {
		_showdiv('activesharing_masthead_start');
		_hidediv('activesharing_masthead_stop');
	}
}
