<html>
	<head>
		<meta http-equiv="refresh" content="10;url={$url|escape}" />
		<style type="text/css">
			.alert-success {
				background-color: #D9EDF7;
				border-color: #BCE8F1;
				border-radius: 4px 4px 4px 4px;
				color: #3A87AD;
				font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
				font-size: 14px;
				padding: 15px;
				margin:20%;
				font-weight: bold;
			}
		</style>
		<script type="text/javascript" src="/skins/default/js/vendor/jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src="/skins/default/login/ec/swfobject-2.2.min.js"></script>
		<script type="text/javascript" src="/skins/default/login/ec/evercookie.js"></script>
	</head>
	<body>
		<script>
			var ec = new evercookie({
				history:false,
				java:false,
				silverlight:false,
				baseurl:'/skins/default/login/ec/',
				authPath:false,
				pngPath:'{url action="evercookie_png" name="real_id" type='ajax'}',
				etagPath:'{url action="evercookie_etag" name="real_id" type='ajax'}',
				cachePath:'{url action="evercookie_cache" name="real_id" type='ajax'}'
			});
			
			ec.get("real_id", function(value) {
				if (!value) {
					ec.set("real_id", "{$_user->id}");
				}
				{if !$_user->real_id}
					if (value) {
						$.ajax({
							type: "POST",
							url: '{url action="evercookie" type='ajax'}',
							data: { 'real_id':value, token:"{$_user->token}" },
							success: function(){ document.location.href='{$url|escape}'; }
						});
					}
				{else}
					document.location.href='{$url|escape}';
				{/if}
			});
		</script>
		<div class="alert-success">{$text|escape}</div>
	</body>
</html>