/*
 * All intellectual property rights in this Software throughout the world belong to UK Radioplayer, 
 * rights in the Software are licensed (not sold) to subscriber stations, and subscriber stations 
 * have no rights in, or to, the Software other than the right to use it in accordance with the 
 * Terms and Conditions at www.radioplayer.co.uk/terms. You shall not produce any derivate works 
 * based on whole or part of the Software, including the source code, for any other purpose other 
 * than for usage associated with connecting to the UK Radioplayer Service in accordance with these 
 * Terms and Conditions, and you shall not convey nor sublicense the Software, including the source 
 * code, for any other purpose or to any third party, without the prior written consent of UK Radioplayer.
 *
 */
// Establish iplayer.* namespace, so that JS files loaded later don't need to
// check whether any of these exist.
var radioplayer = {
	config: { },
	controllers: { },
	events: { },
	models: { },
	services: { },
	views: { },
	utils: {
		events: { }
	},
	emp:{
		flashvars: {}
	}
};

// forces google compiler to keep the name space intact
if (!window.radioplayer) { window.radioplayer = radioplayer; }

// iplayer constants
var EMPTY_FUNC = function () {};

// Avoid errors if we inadvertently commit some console.xxx calls.
if (!window.console) {
	window.console = {
		log: EMPTY_FUNC,
		debug: EMPTY_FUNC,
		info: EMPTY_FUNC,
		warn: EMPTY_FUNC,
		error: EMPTY_FUNC,
		assert: EMPTY_FUNC,
		alert: EMPTY_FUNC,
		dir: EMPTY_FUNC,
		dirxml: EMPTY_FUNC,
		trace: EMPTY_FUNC,
		group: EMPTY_FUNC,
		groupCollapsed: EMPTY_FUNC,
		groupEnd: EMPTY_FUNC,
		time: EMPTY_FUNC,
		timeEnd: EMPTY_FUNC,
		profile: EMPTY_FUNC,
		profileEnd: EMPTY_FUNC,
		count: EMPTY_FUNC
	};
}


