 var host = top.location.host;
    var cook = ReadCookie(host);
	var div = document.getElementById("FloatWindow");
	var div_frame_width = div.getElementsByTagName("iframe")[0].style.width;
	var hX = (screen.width / 2)
			- ((div_frame_width.substring(0, div_frame_width.length - 2)) / 2);//szerokość wrejmu
	var vY = -(screen.height / 2);
	var nn = (navigator.appName.indexOf("Netscape") != -1);
	var dD = document, dH = dD.html, dB = dD.body, px = dD.layers ? '' : 'px';
	//--------------------------------------
	if(cook =='zeta'){
		div.style.display='none';
	}
	//--------------------------------------
	function hideIt() {
		(document.getElementById) ? dom = true : dom = false;
		if (dom) {
			div.style.display='none';
		    SetCookie(host,'zeta');
		}}
	//--------------------------------------
	function ReadCookie(cookieName) {
		var theCookie = "" + document.cookie;
		var ind = theCookie.indexOf(cookieName);
		if (ind == -1 || cookieName == "")
			return "";
		var ind1 = theCookie.indexOf(';', ind);
		if (ind1 == -1)
			ind1 = theCookie.length;
		return unescape(theCookie.substring(ind + cookieName.length + 1, ind1));
	}
	//--------------------------------------
	function SetCookie(cookieName, cookieValue) {
		var today = new Date();
		var expire = new Date();
		expire.setTime(today.getTime() + 300000);//5 minut
		document.cookie = cookieName + "=" + escape(cookieValue) + ";expires="
				+ expire.toGMTString();
	}
	//--------------------------------------
	function floatMail(iX, iY, id) {
		var L = dD.getElementById ? dD.getElementById(id) : dD.all ? dD.all[id]
				: dD.layers[id];
		this[id + 'Oq'] = L;
		if (dD.layers)
			L.style = L;
		L.nX = L.iX = iX;
		L.nY = L.iY = iY;
		L.P = function(x, y) {
			this.style.left = x + px;
			this.style.top = y + px;
		};
		L.Fm = function() {
			var pX, pY;
			pX = (this.iX >= 0) ? 0 : nn ? innerWidth
					: nn && dH.clientWidth ? dH.clientWidth : dB.clientWidth;
			pY = nn ? pageYOffset : nn && dH.scrollTop ? dH.scrollTop
					: dB.scrollTop;
			if (this.iY < 0)
				pY += nn ? innerHeight
						: nn && dH.clientHeight ? dH.clientHeight
								: dB.clientHeight;
			this.nX += .1 * (pX + this.iX - this.nX);
			this.nY += .1 * (pY + this.iY - this.nY);
			this.P(this.nX, this.nY);
			setTimeout(this.id + 'Oq.Fm()', 20);
		};
		return L;
	}
	//--------------------------------------

	floatMail(hX, vY, 'FloatWindow').Fm();
