 	var cManager = new Object();
	cManager.setCookie = function(name, value, expires){
		var d = new Date();
		d.setTime(d.getTime());

		expires = expires * 1000;
		var expires_d = new Date(d.getTime() + expires);

		document.cookie = name + "=" + escape(value) + ";expires=" + expires_d.toGMTString() + ";path=/";
		return true;
	};

	cManager.getCookie = function(name){
		var a_all_cookies = document.cookie.split( ';' );
		var a_temp_cookie = '';
		var cookie_name = '';
		var cookie_value = '';
		var b_cookie_found = false;

		for(i = 0; i < a_all_cookies.length; i++){
			a_temp_cookie = a_all_cookies[i].split( '=' );
			cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
			if(cookie_name == name){
				if(a_temp_cookie.length > 1){
					cookie_value = unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g, ''));
				}
				return cookie_value;
			}
			a_temp_cookie = null;
			cookie_name = '';
		}
		return false;
	};

	cManager.initialize = function(){
		if(this.getCookie('simberaAN') == false){
			this.setCookie('simberaAN', 'true', 60*20);
			cManager.showBox();
		}
	};

	cManager.showBox = function(){
		time = 200;
		jQuery.slimbox("/img/akce/akcni-nabidka.jpg", "Akční nabídka", {
			overlayOpacity: 0.2,
			overlayFadeDuration: time,
			resizeDuration: time,
			imageFadeDuration: time,
			captionAnimationDuration: 100,
		});
	};

	function cManagerInit(){ cManager.initialize(); }

	jQuery(function($){
		cManagerInit();
	});
