nebulaplayer.plugins = {
	OAS: {
		getSitePage: function () {
			try {
				return sitepage;
			} catch (e) {
				return null;
			}
		},
		hostid: null,
		enabled: false,
		setHostId: function (id) {
			nebulaplayer.plugins.OAS.hostid = id;
		},
		getHostId: function () {
			return nebulaplayer.plugins.OAS.hostid;
		},
		setEnabled: function (active) {
			nebulaplayer.plugins.OAS.enabled = active;
		},
		getEnabled: function () {
			return nebulaplayer.plugins.OAS.enabled;
		},
		delegateEvent: function (target, eventType) {
			var i = 0;
			for (i; i<nebulaplayer.manager.__players.length; i++) {
				var player = nebulaplayer.manager.__players[i];
				if (player.instance == target) {
					switch (eventType) {
						case 'ad':
							player.enabled = false;
							break;
					}
					break;
				}
			}
		}
	}
}