try{
	var RedbullIcehockeyHelper = {
		inputParams: {
			L: 'de'
		},
		modules: [],
		is: function(data, type) {
			return (data && typeof data === type);
		},
		insertHtmlAndInjectJs: function(selector, html) {
			if (html) {
				var js = html.match(/<script[^>]*>([^<]*)<\/script>/g);
				html = html.replace(/<script[^>]*>[^<]*<\/script>/g, "");

				var htmlElement = $(selector);
				if (htmlElement.length) {
					htmlElement.html(html);

					if (js && js.length > 0) {
						$.each(js, function(index, value) {
							var script = document.createElement('script');
							script.text = value.replace(/<\/?script[^>]*>/g, "");

							var src = value.match(/\ssrc=['"]([^'"]+)/);

							if (src && src.length > 1) {
								script.src = src[1];
							}

							htmlElement.append(script);
						});
					}

				}
			}
		},
		registerInputParam: function(name, value) {
			this.inputParams[name] = value;
		},
		getInputParam: function(name, counter) {
			if (typeof counter != "undefined") {
				counter = parseInt(counter, 10);
				if (counter > 0) {
					name += '-' + counter;
				}
			}

			if (typeof this.inputParams[name] != "undefined") {
				return this.inputParams[name];
			}

			return null;
		},
		getInputParams: function() {
			return this.inputParams;
		},
		registerModule: function(moduleName) {
			if ($.inArray(moduleName, this.modules) === -1) {
				this.modules.push(moduleName);
			}
		},
		getModules: function() {
			return this.modules;
		},
		getLocationHashParts: function(customHash) {
			var hash = $.trim(customHash ? customHash : window.location.hash),
				hashParts = {};

			if (hash != "")
			hash = hash.replace(/^#/, "").split(",");
			$.each(hash, function(index, value) {
				value = value.split("=");
				hashParts[value[0]] = value[1];
			});

			return hashParts;
		},
		updateLocationHashParts: function(newHashParts)	{
			if (newHashParts && typeof newHashParts === 'object') {
				var hashParts = this.getLocationHashParts();

				$.each(newHashParts, function(index, value) {
					hashParts[index] = value;
				});

				var hashPartsArray = [];

				$.each(hashParts, function(index, value) {
					hashPartsArray.push(index + '=' + value);
				});

				window.location.hash = "#" + hashPartsArray.join(',');
			}
		},
		getCurrentUrl: function() {
			return window.location.href.replace(/#.*$/, "");
		}
	}

	$(function ($) {
		var RedbullIceHockeyRemoteAPI = {
			controlCallbacks:null,
			jsonpCallbackFunction: null,
			dataApiUrl: '/api/data/lang/{LANG}/',
			getDataApiUrl: function(hashParts) {
				var lang = 'de',
					inputParams = RedbullIcehockeyHelper.getInputParams();

				if (typeof inputParams.L !== "undefined") lang = inputParams.L;
				else if (typeof hashParts.L !== "undefined") lang = hashParts.L;

				return this.dataApiUrl.replace('{LANG}', lang);
			},
			init: function(config) {
				var helper = RedbullIcehockeyHelper;

				if (!helper.is(config.getCallback, "function")) throw "Logic missing.";

				if (config.controlCallbacks) {
					this.registerControlCallbacks(config.controlCallbacks);
				}

				if (helper.is(config.initializeInputParams, "function"))
					config.initializeInputParams(helper.getCurrentUrl());

				if (config.getCallback) {
					var activeModules = helper.getModules();
					if (activeModules.length > 0) {
						var postData = helper.getInputParams();
						postData['modules[]'] = activeModules;

						this.ajaxRequest({
							urlPath: this.getDataApiUrl(this.getHashParts()),
							callback: config.getCallback,
							postData: postData
						});
					}
				}
			},
			registerControlCallbacks: function(controlCallbacks) {
				this.controlCallbacks = controlCallbacks;
			},
			initControlCallbacks: function() {
				if (this.controlCallbacks) {
					var scope = this;
					var registeredModules = RedbullIcehockeyHelper.getModules();

					$.each(this.controlCallbacks, function(eventName, callbacksArray) {
						$.each(callbacksArray, function(moduleName, callbackObject) {
							if ($.inArray(moduleName, registeredModules) >= 0) {
								if (typeof callbackObject.selector === "undefined" || typeof callbackObject.getRemoteUrl === "undefined" || typeof callbackObject.callback === "undefined")
									return;//throw "Invalid control callback configuration.";

								if (callbackObject.getRemoteUrl(RedbullIcehockeyHelper.getLocationHashParts())) { // validity test
									callbackObject.remoteApi = scope;

									$(callbackObject.selector).bind(eventName, callbackObject, scope.controlEventHandler);

									if (callbackObject.cssSelectorModulePart) {
										var i = 2, elements;

										$.each(registeredModules, function(index, registeredModuleName) {
											if (registeredModuleName.search(moduleName + '-') >= 0) {
												var moduleIndex = parseInt(registeredModuleName.replace(moduleName + '-', ''), 10);

												if (moduleIndex > 0) {
													elements = $(callbackObject.selector.replace(new RegExp(callbackObject.cssSelectorModulePart, 'g'), callbackObject.cssSelectorModulePart+'-'+moduleIndex));
													if (elements.length) {
														elements.bind(eventName, callbackObject, scope.controlEventHandler);
													}
												}
											}
										});
									}
								}
							}
						});
					});
				}
			},
			getHashParts: function() {
				return RedbullIcehockeyHelper.getLocationHashParts();
			},
			jsonpCallback: function(data) {
				if (this.jsonpCallbackFunction && typeof this.jsonpCallbackFunction == 'function') {
					this.jsonpCallbackFunction(data);
					this.initControlCallbacks();
					this.jsonpCallbackFunction = null;
				}
			},
			ajaxRequest: function(config) {
				if (!config.urlPath || typeof config.urlPath == 'undefined') return;//throw "NoAjaxUrl";
				if (!config.divId && !config.callback) return;//throw "BadAjaxConfig";

				var httpHost = "http://web.ecredbulls.at",
					requestUrl = httpHost + config.urlPath,
					scope = this;

				if (config.callback && typeof config.callback == 'function') {
					this.jsonpCallbackFunction = config.callback;
				}

				var ajaxConfig = {
					dataType: 'jsonp',
					//jsonp: 'jsonp_callback',
					url: requestUrl,
					async: false,
					method: 'POST'
				}

				if (typeof config.context != 'undefined') ajaxConfig.context = config.context;
				if (typeof config.postData != 'undefined') ajaxConfig.data = config.postData;

				$.ajax(ajaxConfig);
			},
			controlEventHandler: function(event) {
				if (event.data.processElement) event.data.processElement(this, event.data);
				var path = event.data.getRemoteUrl(event.data.remoteApi.getHashParts());
				var callback = event.data.callback;

				event.data.remoteApi.ajaxRequest({
					urlPath: path,
					callback: callback,
					context: this
				});

				return false;
			}
		};

		window.RedbullIceHockeyRemoteAPI = RedbullIceHockeyRemoteAPI;

		RedbullIceHockeyRemoteAPI.init({
			getCallback: function(data) {
				var location = window.location.href;
				location = location.replace(/#.*$/, '');

				$.each(data, function(index, value) {
					RedbullIcehockeyHelper.insertHtmlAndInjectJs('#' + index, value.replace(/\{LOCATION\}/g, location));
				});
			},
			initializeInputParams: function(url) {
				var hashParts = RedbullIcehockeyHelper.getLocationHashParts();

				if (RedbullIcehockeyHelper.getInputParam('L') == 'de') {
					RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---EBEL-Bundesliga/001243075557266');
				}
				else if (RedbullIcehockeyHelper.getInputParam('L') == 'en') {
					RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---EBEL-1st-Division/001243081636374');
				}

				switch (url) {

		// ***********************************************************************
		// REDBULL DEUTSCH - URLS:
		// ***********************************************************************

		// NEWS
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---News/001243074772325":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---News/001243074772325":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 28);
			RedbullIcehockeyHelper.registerInputParam('sortModifiers', 'first4ReversedBegin1-dependsOnLeagueId:1');
			RedbullIcehockeyHelper.registerInputParam('leagueId-2', 26);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType', 'first4ReversedBegin1');
		break;

		// TEAMS BUNDESLIGA
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Bundesliga/001243075513188":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Bundesliga/001243075513188":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 12);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---EBEL-Bundesliga--Detail/001243077215737");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - BUNDESLIGA Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---EBEL-Bundesliga--Detail/001243077215737":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---EBEL-Bundesliga--Detail/001243077215737":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 12);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - FARMTEAM
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Farmteam/001243075558921":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Farmteam/001243075558921":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 13);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243077600216");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - FARMTEAM Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243077600216":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243077600216":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 13);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - U18
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U18/001243075559645":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U18/001243075559645":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 14);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U18--Detail/001243077600380");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - U18 Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U18--Detail/001243077600380":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U18--Detail/001243077600380":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 14);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - U16
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U16/001243075560034":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U16/001243075560034":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 15);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U16--Detail/001243077600622");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - U16 Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U16--Detail/001243077600622":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---U16--Detail/001243077600622":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 15);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U15
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15/001243077215933":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15/001243077215933":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 9);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109898519");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U15 - Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109898519":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109898519":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 9);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109898519");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U13/U12
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12/001243077216001":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12/001243077216001":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 8);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12-Detail/001243109972994");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U13/U12 - Detail
		case "http://cutover.redbull.com/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12-Detail/001243109972994":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12-Detail/001243109972994":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 8);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U13-U12-Detail/001243109972994");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U11/U10
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10/001243077216329":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10/001243077216329":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 7);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109990036");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U11/U10 - Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109990036":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109990036":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 7);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109990036");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U9
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9/001243077216397":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9/001243077216397":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 11);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110972798");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U9 - Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110972798":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110972798":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 11);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110972798");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U7
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7/001243077216465":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7/001243077216465":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 10);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110985714");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U7 - Detail
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110985714":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110985714":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 10);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110985714");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// SEASON - BUNDESLIGA
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---EBEL-Bundesliga/001243075557266":
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---EBEL-Bundesliga/001243075557266":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 28);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType', 'first4ReversedBegin1');
			RedbullIcehockeyHelper.registerInputParam('sortModifiers', 'first4ReversedBegin1-dependsOnLeagueId:1,commonGame');
			RedbullIcehockeyHelper.registerInputParam('leagueId-2', 26);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId-2', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType-2', 'first3ReversedBegin7');
			//RedbullIcehockeyHelper.registerInputParam('sortModifiers-2', 'first3ReversedBegin7-dependsOnLeagueId:1,commonGame');
			RedbullIcehockeyHelper.registerInputParam('leagueId-3', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId-3', 0);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType-3', '');
			RedbullIcehockeyHelper.registerInputParam('sortModifiers-3', '');
			//RedbullIcehockeyHelper.registerInputParam('tableTitle', 'EBEL');
			//RedbullIcehockeyHelper.registerInputParam('leagueSeasonGameTable-seasonTitle', 'PLATZIERUNGSRUNDE 2011/2012');

			break;
		/*
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---EBEL-Bundesliga/001243075557266":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 1);
			RedbullIcehockeyHelper.registerInputParam('tableTitle', 'EBEL');

		break;
		*/
		// SEASON - FARMTEAM
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---Farmteam/001243077216512":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---Farmteam/001243077216512":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', '2');
			RedbullIcehockeyHelper.registerInputParam('leagueIds-2', 3);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 2);
			RedbullIcehockeyHelper.registerInputParam('hideFooterLink', 1);
			RedbullIcehockeyHelper.registerInputParam('tableTitle', 'U20 BL');

		break;

		// SEASON - U18
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---U18/001243077216571":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---U18/001243077216571":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 4);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 4);

		break;

		// SEASON - U16
		/*
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---U16/001243077216613":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 25);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 25);
			RedbullIcehockeyHelper.registerInputParam('hideFooterLink', 1);
			RedbullIcehockeyHelper.registerInputParam('tableTitle', 'U17 BL');

		break;
		*/
		// SEASON - U16 - NEW
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---U16/001243077216613":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---U16/001243077216613":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 25);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 25);
			RedbullIcehockeyHelper.registerInputParam('leagueId-2', 5);
			RedbullIcehockeyHelper.registerInputParam('hideFooterLink', 1);
			RedbullIcehockeyHelper.registerInputParam('tableTitle', 'U17 BL');

		break;

		// SEASON - EUROPEAN TROPHY
		case "http://cutover.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---European-Trophy/001243077216794":
		case "http://www.redbull.com/cs/Satellite/de_AT/EC-Red-Bull-Salzburg---Season---European-Trophy/001243077216794":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 6);
			RedbullIcehockeyHelper.registerInputParam('hideLeagueTitle', 1);

		break;

		// ***********************************************************************
		// REDBULL ENGLISH - URLS:
		// ***********************************************************************

		// NEWS - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---News/001243081529371":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---News/001243081529371":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 28);
			RedbullIcehockeyHelper.registerInputParam('sortModifiers', 'first4ReversedBegin1-dependsOnLeagueId:1');
			RedbullIcehockeyHelper.registerInputParam('leagueId-2', 26);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType', 'first4ReversedBegin1');

		break;

		// TEAMS BUNDESLIGA - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---1st-Division/001243081635629":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---1st-Division/001243081635629":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 12);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---1st-Division---Detail/001243081645762");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - BUNDESLIGA Detail - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---1st-Division---Detail/001243081645762":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---1st-Division---Detail/001243081645762":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 12);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - FARMTEAM - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Farmteam/001243081646298":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Farmteam/001243081646298":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 13);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243082721078");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - FARMTEAM Detail - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243082721078":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Farmteam--Detail/001243082721078":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 13);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - U18 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U18/001243081701086":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U18/001243081701086":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 14);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U18-Detail/001243088753105");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - U18 Detail - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U18-Detail/001243088753105":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U18-Detail/001243088753105":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 14);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - U16 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U16/001243081703840":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U16/001243081703840":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 15);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U16-Detail/001243081700327");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - U16 Detail - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U16-Detail/001243081700327":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---U16-Detail/001243081700327":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 15);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U15 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U15/001243081692958":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U15/001243081692958":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 9);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109937304");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U15 - English - Detail
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109937304":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109937304":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 9);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U15-Detail/001243109937304");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;


		// TEAMS - JUNIORS U13/U12 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U13-U12/001243081686420":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U13-U12/001243081686420":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 8);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams-Juniors-U13-U12-Detail/001243109979254");
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable"); // RASTA - DELETE ME

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U13/U12 - English - Detail
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams-Juniors-U13-U12-Detail/001243109979254":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams-Juniors-U13-U12-Detail/001243109979254":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 8);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams-Juniors-U13-U12-Detail/001243109979254");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U11/U10 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U11-U10/001243081681090":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U11-U10/001243081681090":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 7);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109997617");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U11/U10 - English - Detail
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109997617":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109997617":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 7);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U11-U10-Detail/001243109997617");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U9 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U9/001243081704303":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U9/001243081704303":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 11);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110981978");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U9 - English - Detail
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110981978":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110981978":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 11);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U9-Detail/001243110981978");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;

		// TEAMS - JUNIORS U7 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U7/001243081695548":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors---U7/001243081695548":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 10);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110990621");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - JUNIORS U7 - English - Detail
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110990621":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110990621":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 10);
			RedbullIcehockeyHelper.registerInputParam('markActivePersons', 1);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "coaches-/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Teams---Juniors-U7-Detail/001243110990621");

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
			if (hashParts.person) RedbullIcehockeyHelper.registerInputParam('personId', hashParts.person);

		break;


		// TEAMS - Salute - EC Red Bull Salzburg
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---EC-Red-Bull-Salzburg/001243127775822":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---EC-Red-Bull-Salzburg/001243127775822":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---EC-Red-Bull-Salzburg/001243127779149":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---EC-Red-Bull-Salzburg/001243127779149":
			RedbullIcehockeyHelper.registerInputParam('leagueId', 17);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(1) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);
		break;

		// TEAMS - Salute - Frölunda Indians
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Froelunda-Indians/001243128689232":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Froelunda-Indians/001243128689232":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Froelunda-Indians/001243128692367":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Froelunda-Indians/001243128692367":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 18);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(2) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - HC ČSOB Pojištovna Pardubice
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-CSOB-Pojistovna-Pardubice/001243128862968":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-CSOB-Pojistovna-Pardubice/001243128862968":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-CSOB-Pojistovna-Pardubice/001243128863198":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-CSOB-Pojistovna-Pardubice/001243128863198":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 19);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(3) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - HC Mountfield České Budějovice
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-Mountfield-Ceske-Budejovice/001243128867733":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-Mountfield-Ceske-Budejovice/001243128867733":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-Mountfield-Ceske-Budejovice/001243128868738":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-Mountfield-Ceske-Budejovice/001243128868738":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 20);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(4) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - Salute - HC Plzeň 1929
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-Plzen-1929/001243128870330":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---HC-Plzen-1929/001243128870330":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-Plzen-1929/001243128870624":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---HC-Plzen-1929/001243128870624":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 21);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(5) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - Jokerit
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Jokerit/001243128872204":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Jokerit/001243128872204":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Jokerit/001243128873062":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Jokerit/001243128873062":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 22);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(6) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - Linköpings HC
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Linkoepings-HC/001243128875255":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Linkoepings-HC/001243128875255":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Linkoepings-HC/001243128875741":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Linkoepings-HC/001243128875741":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 23);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(7) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;

		// TEAMS - Salute - Luleå Hockey
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Lulea-Hockey/001243128877477":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Teams---Lulea-Hockey/001243128877477":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Lulea-Hockey/001243128878237":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Teams---Lulea-Hockey/001243128878237":

			RedbullIcehockeyHelper.registerInputParam('leagueId', 24);
			RedbullIcehockeyHelper.registerInputParam('detailUrl', "disable");

			$('div#ecrbss-navigation-level-3 div:nth-child(8) a').addClass('active');

			if (hashParts.position) RedbullIcehockeyHelper.registerInputParam('positionId', hashParts.position);

		break;



		// SEASON - BUNDESLIGA - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---EBEL-1st-Division/001243081636374":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---EBEL-1st-Division/001243081636374":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 28);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType', 'first4ReversedBegin1');
			RedbullIcehockeyHelper.registerInputParam('sortModifiers', 'first4ReversedBegin1-dependsOnLeagueId:1,commonGame');
			RedbullIcehockeyHelper.registerInputParam('leagueId-2', 26);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId-2', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType-2', 'first3ReversedBegin7');
			//RedbullIcehockeyHelper.registerInputParam('sortModifiers-2', 'first3ReversedBegin7-dependsOnLeagueId:1,commonGame');
			RedbullIcehockeyHelper.registerInputParam('leagueId-3', 1);
			//RedbullIcehockeyHelper.registerInputParam('dependsOnLeagueId-3', 0);
			//RedbullIcehockeyHelper.registerInputParam('dependencyType-3', '');
			RedbullIcehockeyHelper.registerInputParam('sortModifiers-3', '');
			//RedbullIcehockeyHelper.registerInputParam('tableTitle', 'EBEL');
			//RedbullIcehockeyHelper.registerInputParam('leagueSeasonGameTable-seasonTitle', 'PLATZIERUNGSRUNDE 2011/2012');

		break;

		// SEASON - FARMTEAM - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---Farmteam/001243081642279":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---Farmteam/001243081642279":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', 2);
			RedbullIcehockeyHelper.registerInputParam('leagueIds-2', 3);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 2);

		break;

		// SEASON - U18 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---U18/001243081644700":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---U18/001243081644700":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 4);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 4);

		break;

		// SEASON - U16 - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---U16/001243081643326":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---U16/001243081643326":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 25);
			RedbullIcehockeyHelper.registerInputParam('leagueId', 25);
			RedbullIcehockeyHelper.registerInputParam('hideFooterLink', 1);
			RedbullIcehockeyHelper.registerInputParam('tableTitle', 'U17 BL');

		break;

		// SEASON - EUROPEAN TROPHY - English
		case "http://cutover.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---European-Trophy/001243081636921":
		case "http://www.redbull.com/cs/Satellite/en_INT/EC-Red-Bull-Salzburg---Season---European-Trophy/001243081636921":

			RedbullIcehockeyHelper.registerInputParam('leagueIds', 6);
			//RedbullIcehockeyHelper.registerInputParam('countdownId', 1);
			RedbullIcehockeyHelper.registerInputParam('hideLeagueTitle', 1);

		break;


		//Salute - Information
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information/001243127718316":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information/001243127718316":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information/001243127724624":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information/001243127724624":
			RedbullIcehockeyHelper.registerInputParam('leagueId', -1);
			RedbullIcehockeyHelper.registerInputParam('gamePlaceId', 2);
			RedbullIcehockeyHelper.registerInputParam('gamePlaceId-2', 1);
			RedbullIcehockeyHelper.registerInputParam('group', 1);

			$('div#ecrbss-navigation-level-3 div:nth-child(1) a').addClass('active');
			if (RedbullIcehockeyHelper.getInputParam('L') == 'de') {
				RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/de_AT/Red-Bulls-Salute---Spielplan/001243127791725');
			}
			else if (RedbullIcehockeyHelper.getInputParam('L') == 'en') {
				RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/en_INT/Red-Bulls-Salute---Schedule/001243127792175');
			}

		break;

		//Salute - Information / Kontakt
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information---Kontakt/001243129382383":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information---Kontakt/001243129382383":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information---Kontakt/001243129392026":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information---Kontakt/001243129392026":

			$('div#ecrbss-navigation-level-3 div:nth-child(2) a').addClass('active');

		break;

		//Salute - Information / Partner
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information---Partner/001243129145251":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Information---Partner/001243129145251":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information---Partner/001243129149228":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Information---Partner/001243129149228":

			$('div#ecrbss-navigation-level-3 div:nth-child(3) a').addClass('active');

		break;



		//Salute - Spielplan
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Spielplan/001243127791725":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Spielplan/001243127791725":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Schedule/001243127792175":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Schedule/001243127792175":
			RedbullIcehockeyHelper.registerInputParam('leagueIds', 16);
			RedbullIcehockeyHelper.registerInputParam('gamePlaceId', 2);
			RedbullIcehockeyHelper.registerInputParam('gamePlaceId-2', 1);
			RedbullIcehockeyHelper.registerInputParam('group', 1);
			RedbullIcehockeyHelper.registerInputParam('hideLeagueTitle', 1);
			RedbullIcehockeyHelper.registerInputParam('seasonTableAccordionOpen', 1);
			RedbullIcehockeyHelper.registerInputParam('leagueId', -1);

			if (RedbullIcehockeyHelper.getInputParam('L') == 'de') {
				RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/de_AT/Red-Bulls-Salute---Spielplan/001243127791725');
			}
			else if (RedbullIcehockeyHelper.getInputParam('L') == 'en') {
				RedbullIcehockeyHelper.registerInputParam('countdownLink', '/cs/Satellite/en_INT/Red-Bulls-Salute---Schedule/001243127792175');
			}
		break;


		//Salute - Tickets
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Tickets/001243127793099":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Tickets/001243127793099":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Tickets/001243127793444":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Tickets/001243127793444":
			RedbullIcehockeyHelper.registerInputParam('group', 1);
		break;

		//Salute - Highlights
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Highlights/001243127797508":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---Highlights/001243127797508":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Highlights/001243127798765":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---Highlights/001243127798765":
			RedbullIcehockeyHelper.registerInputParam('group', 1);
		break;

		//Salute - History
		case "http://cutover.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---History/001243127809659":
		case "http://www.redbull.com/cs/Satellite/de_AT/Red-Bulls-Salute---History/001243127809659":
		case "http://cutover.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---History/001243127816940":
		case "http://www.redbull.com/cs/Satellite/en_INT/Red-Bulls-Salute---History/001243127816940":
			RedbullIcehockeyHelper.registerInputParam('group', 1);
		break;


		/* doku
		Teaser:
		RedbullIcehockeyHelper.registerInputParam('group', 1); - ked chcem zobrazit teasers z grupy 1

		*/



				}
			},
			controlCallbacks: {
				click: {
					teamStatsTable: {
						leagueTeamsTableUrl: '/api/league-teams-table/lang/{LANG}/league/{LEAGUE_ID}/season/{SEASON_ID}/filter/{FILTER}/sort/0',
						selector: "#teamStatsTable div.tabelle div.header a.filter",
						cssSelectorModulePart: '#teamStatsTable',
						getRemoteUrl: function(hashParts) {
							var counter = 0;
							if (hashParts.counter) {
								counter = hashParts.counter;
							}

							if (RedbullIcehockeyHelper.getInputParam('leagueId', counter)) hashParts.league = RedbullIcehockeyHelper.getInputParam('leagueId', counter);

							if (RedbullIcehockeyHelper.getInputParam('L')) hashParts.L = RedbullIcehockeyHelper.getInputParam('L');

							if (!hashParts.league || typeof hashParts.league === "undefined") throw "NoLeague";
							if (!hashParts.L || typeof hashParts.L === "undefined") throw "NoLang";

							if (!hashParts.season || typeof hashParts.season === "undefined") hashParts.season = 0;

							if (!hashParts.filter || typeof hashParts.filter === "undefined") hashParts.filter = 0;

							var tmpUrl = this.leagueTeamsTableUrl.replace("{LEAGUE_ID}", hashParts.league).replace("{SEASON_ID}", hashParts.season).replace("{FILTER}", hashParts.filter).replace('{LANG}', hashParts.L);

							var additionalParams = [];

							if (RedbullIcehockeyHelper.getInputParam('hideFooterLink', counter)) additionalParams.push('hideFooterLink=1');
							if (RedbullIcehockeyHelper.getInputParam('tableTitle', counter)) additionalParams.push('tableTitle=' + RedbullIcehockeyHelper.getInputParam('tableTitle', counter));
							if (RedbullIcehockeyHelper.getInputParam('dependsOnLeagueId', counter)) additionalParams.push('dependsOnLeagueId=' + RedbullIcehockeyHelper.getInputParam('dependsOnLeagueId', counter));
							if (RedbullIcehockeyHelper.getInputParam('dependencyType', counter)) additionalParams.push('dependencyType=' + RedbullIcehockeyHelper.getInputParam('dependencyType', counter));

							if (counter) {
								//additionalParams.push('counter=' + hashParts.counter);
								tmpUrl += '/counter/' + counter;
							}

							if (additionalParams.length > 0) tmpUrl += '?' + additionalParams.join('&');

							return tmpUrl;
						},
						callback: function(data, textStatus, jqXHR) {
							var hashParts = RedbullIcehockeyHelper.getLocationHashParts();
							var selector = '#teamStatsTable';
							var counter = 0;

							if (hashParts.counter) {
								counter = parseInt(hashParts.counter, 10)
								if (counter > 0) {
									selector += '-' + counter;
								}
							}

							RedbullIcehockeyHelper.insertHtmlAndInjectJs(selector, data['teamStatsTable'+(counter ? '-'+counter : '')]);
						},
						processElement: function(element) {
							var hash = element.href.match(/#.*$/);
							if (hash && hash.length > 0) window.location.hash = hash[0];

							var hashParts = RedbullIcehockeyHelper.getLocationHashParts();
							var counter = 0;
							var linkSelector = this.selector;
							if (typeof hashParts.counter != "undefined") {
								counter = parseInt(hashParts.counter, 10);

								if (counter > 0) {
									linkSelector = linkSelector.replace(this.cssSelectorModulePart, this.cssSelectorModulePart + '-' + counter);
								}
							}

							$(linkSelector).removeClass('active');
							$(element).addClass('active');
						}
					},
					gameCountdown: {
						gameCountdownUrl: '/api/league-games-countdown/lang/{LANG}/league/{LEAGUE_ID}/game/{GAME_NR}',
						selector: "#gameCountdown div.countdown-slider a.left, #gameCountdown div.countdown-slider a.right",
						cssSelectorModulePart: '#gameCountdown',
						getRemoteUrl: function(hashParts) {
							if (RedbullIcehockeyHelper.getInputParam('leagueId')) hashParts.league = RedbullIcehockeyHelper.getInputParam('leagueId');
							if (RedbullIcehockeyHelper.getInputParam('L')) hashParts.L = RedbullIcehockeyHelper.getInputParam('L');

							if (!hashParts.league || typeof hashParts.league === "undefined") throw "NoLeague";
							if (!hashParts.L || typeof hashParts.L === "undefined") throw "NoLang";

							if (!hashParts.game || typeof hashParts.game === "undefined") hashParts.game = 0;

							var url = this.gameCountdownUrl.replace("{LEAGUE_ID}", hashParts.league).replace("{GAME_NR}", hashParts.game).replace('{LANG}', hashParts.L);

							if (hashParts.gamePlaceId) {
								url += '/game-place/' + hashParts.gamePlaceId;
							}

							if (hashParts.counter) {
								url += '?counter=' + hashParts.counter;
							}

							return url;
						},
						callback: function(data, textStatus, jqXHR) {
							var hashParts = RedbullIcehockeyHelper.getLocationHashParts();
							var selector = '#gameCountdown';
							var counter = 0;

							if (hashParts.counter) {
								counter = parseInt(hashParts.counter, 10)
								if (counter > 0) {
									selector += '-' + counter;
								}
							}

							RedbullIcehockeyHelper.insertHtmlAndInjectJs(selector, data['gameCountdown'+(counter ? '-'+counter : '')]);
						},
						processElement: function(element) {
							var hash = element.href.match(/#.*$/);
							if (hash && hash.length > 0) window.location.hash = hash[0];
						}
					},
					teamsPlayersTable: {
						selector: ".persons-list a",
						activeSelector: ".persons-list tr",
						getRemoteUrl: function(hashParts) {
							//if (RedbullIcehockeyHelper.getInputParam('detailUrl')) return null;
							if (!RedbullIcehockeyHelper.getLocationHashParts().person) return null;
							return this.personDetailUrl.replace("{LEAGUE_ID}", hashParts.league).replace("{PERSON_ID}", hashParts.person).replace("{LANG}", hashParts.L);
						},
						callback: function(data, textStatus, jqXHR) {
							RedbullIcehockeyHelper.insertHtmlAndInjectJs('#personDetail', data.personDetail);
							window.scrollTo(0, 0);
						},
						processElement: function(element) {
							var href = element.href.match(/#.*$/);
							if (href && href.length > 0) {
								href = href[0];
								var hash = href.replace(/^[^#]*/, '');
								var newHashParts = RedbullIcehockeyHelper.getLocationHashParts(hash);

								RedbullIcehockeyHelper.updateLocationHashParts(newHashParts);
							}

							$(this.activeSelector).removeClass('active');
							$(element).parent().parent().addClass('active');
						},
						personDetailUrl: '/api/person-detail/lang/{LANG}/league/{LEAGUE_ID}/person/{PERSON_ID}/'
					}
				},
				change: {
					teamsPlayersTable: {
						selector: "#position",
						getRemoteUrl: function(hashParts) {
							var detailUrl = RedbullIcehockeyHelper.getInputParam('detailUrl');

							return this.playersTableUrl.replace("{LEAGUE_ID}", hashParts.league).replace("{POSITION_ID}", hashParts.position)
										+ (detailUrl ? '?detailUrl=' + escape(RedbullIcehockeyHelper.getInputParam('detailUrl')) : '');
						},
						callback: function(data, textStatus, jqXHR) {
							var location = window.location.href;
							location = location.replace(/#.*$/, '');

							$('#teamsPlayersTable').html(data.teamsPlayersTable.replace(/\{LOCATION\}/g, location));
							window.scrollTo(0, 0);
						},
						processElement: function(element, self) {
							var newHashParts = {
								league: RedbullIcehockeyHelper.getInputParam('leagueId'),
								position: element.value
							};

							RedbullIcehockeyHelper.updateLocationHashParts(newHashParts);
						},
						playersTableUrl: '/api/team-players-table/league/{LEAGUE_ID}/position/{POSITION_ID}/'
					}
				}
			}
		});

	});
}
catch(er){
	switch(er){
		case('NoLeague'):
		case('NoLang'):
		case('Logic missing.'):
		case('Invalid control callback configuration.'):
		case('NoAjaxUrl'):
		case('BadAjaxConfig'):{
			break;
		}
	}
}
