/*
 * Copyright (c) ${year}, Inmite s.r.o. (www.inmite.eu).
 *
 * All rights reserved. This source code can be used only for purposes specified
 * by the given license contract signed by the rightful deputy of Inmite s.r.o.
 * This source code can be used only by the owner of the license.
 *
 * Any disputes arising in respect of this agreement (license) shall be brought
 * before the Municipal Court of Prague.
 */

$(document).ready(function() {
	var params = $.getUrlVars();
	var paramsCookie = $.getCookieVars();
	var startPath = '';
	if(params && params['sm']) {
		startPath = params['sm'];
	} else {
		params = paramsCookie;
		if(params && params['sm'])
			startPath = params['sm'];
	}

    Supermap.init(startPath, params, SupermapConfig);
});

