<!--
// cookies
// Karol Pokojowczyk
// http://pokojowczyk.com


function getCookieVal(offset){
	var endStr = document.cookie.indexOf(";", offset);
	if (endStr == -1){
	endStr = document.cookie.length;
	}
	return unescape(document.cookie.substring(offset, endStr));
}

function getCookie(name){
	var arg   = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while(i < clen){
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
		return getCookieVal(j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}

function setCookie(name, value){
	var argv = setCookie.arguments;
	var argc = setCookie.arguments.length;
	var expires = (argc >= 2) ? argv[2] : null;
	var path = (argc >= 3) ? argv[3] : null;
	var domain = (argc >= 4) ? argv[4] : null;
	var secure = (argc >= 5) ? argv[5] : false;
	var c =  name + "=" + escape(value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
	document.cookie = c;
	return;
}

function deleteCookie(name){
	var exp = new Date();
	exp.setTime(exp.getTime() - 1);
	var cval = getCookie(name);
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

// cookies end

function NewWindowXYtuned(path, _width, _height, _menubar, _scrollbars, _toolbar, _resizable)
{ 
	window.open(path, "", 'width=' + _width + ',height=' + _height + ', menubar='+_menubar+', scrollbars=' + _scrollbars + ', toolbar=' + 		_toolbar+', resizable=' + _resizable); 
	return; 
}



function getCatalogueThing() {
	var a=getCookie('Catalogue')
	if (a == '' | a==null) a='null';
	a=a.replace(' ','').replace('ó','o');
	return a;
}

function NewWindowXY(path, _width, _height)
{ 
window.open(path, "", 'width=' + _width + ',height=' + _height + ',menubar=no,scrollbars=yes,toolbar=no,resizable=yes'); 
return; 
}


function zmien_wysokosc(a){
	if (a.style.display=='block') a.style.display='none'; else a.style.display='block'; return false;
}

function w(_node, _link, _s, cookieVal){
	if (_node==0) {
		if (__p == cookieVal) {
		document.write('<b><a href="' + _link + '">' + _s + '</a></b>');
		} else {
		document.write('<a href="' + _link + '"><span>' + _s + '</span></a>');
		}
		
	}
	else {
		if (__p == cookieVal) {
		document.write('<a href="' + _link + '"><b>' + _s + '</b></a>');
		} else {
		document.write('<a href="' + _link + '"><span>' + _s + '</span></a>');
		}
	}   
}




// -->