// <![CDATA[
		var otwarte=false;
		var otwierane=false;
		var animacja;
		 function pokaz(obj)
			{
			if(!otwierane)
			{
			if(otwarte)
		    {
			obj.parentNode.innerHTML='<a href="#list" onclick="pokaz(this);return false;">zobacz</a> wszystkie projekty';
			SetCookie("show","0");
			}
			else
			{
			obj.parentNode.innerHTML='<a href="#list" onclick="pokaz(this);return false;">ukryj</a> najstarsze projekty';
			SetCookie("show","1");
			}
			otwierane=true;
			animacja = setInterval('animuj()',25);
			}
			}
		
		function animuj()
		{
			if(otwarte)
			{
				if(document.getElementById('list').offsetHeight>473)
				{
					document.getElementById('list').style.height=Math.max(document.getElementById('list').offsetHeight-10,473)+'px';
				}
				else
				{
					try
					{
						clearInterval(animacja);
					} catch (e) {} ;
					otwarte=false;
					otwierane=false;
				}
			}
			else
			{
				if(document.getElementById('list').offsetHeight<document.getElementById('list').scrollHeight)
				{
					document.getElementById('list').style.height=Math.min(document.getElementById('list').offsetHeight+10,document.getElementById('list').scrollHeight)+'px';
				}
				else
				{
					try
					{
						clearInterval(animacja);
					} catch (e) {} ;
					otwarte=true;
					otwierane=false;
				}
			}
		}
		// ]]> 
			// <![CDATA[
		var otwarte=false;
		var otwierane=false;
		var animacja;
		
		function showAll()
		{
			var show = GetCookie('show');
			if(show==1)
			{
				document.getElementById('link').innerHTML='<a href="#list" onclick="pokaz(this);return false;">ukryj</a> najstarsze projekty';
				document.getElementById('list').style.height=document.getElementById('list').scrollHeight+'px';
				otwarte=true;
			}
		}
		
		function SetCookie(name, value, expires, path, domain, secure) {
				document.cookie = name + "=" + escape (value) +
						 ((expires) ? "; expires=" + expires.toGMTString() : "") +
						 ((path) ? "; path=" + path : "") +
						 ((domain) ? "; domain=" + domain : "") +
						 ((secure) ? "; secure" : "");
		}

		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;
		}
		// ]]> 
		
