		function reklama(nazwa,adres,wymiar1,wymiar2)
		{
		        center1=screen.width/2 - wymiar1/2;
		        center2=screen.height/2 - wymiar2/2;
		        okno=window.open("", "", "height="+wymiar2+",width="+wymiar1+", left="+center1+",top="+center2);
		        okno.document.open();
		        okno.document.write("<html>\n<head><meta http-equiv=\"imagetoolbar\" content=\"no\">\n<title>BLITZ-ART Reklama</title>\n</head>\n<body marginwidth=0 marginheight=0 topmargin=0 bottommargin=0 scroll=no style=\"margin:0px; background:#454545\" onclick=\"document.close();\">\n<a href="+adres+" target=_blank onclick=javascript:window.close()><img src="+nazwa+" border=0></a>\n</body>\n</html>");
		        //okno.document.close();
		}

		function panel(idt, idf)
		{
			//idt = id tab
			//idf = id frame
			document.getElementById("tab1").className='tabu';
			document.getElementById("tab2").className='tabu';
			document.getElementById("tab3").className='tabu';
			document.getElementById("tab4").className='tabu';
			document.getElementById("tab5").className='tabu';
			
			document.getElementById("appframe1").style.display='none';
			document.getElementById("appframe2").style.display='none';
			document.getElementById("appframe3").style.display='none';
			document.getElementById("appframe4").style.display='none';
			document.getElementById("appframe5").style.display='none';
					
			document.getElementById(idt).className='taba';
			document.getElementById(idf).style.display='block';

		}

		function createCookie(name,value,days)
		{
			if (days)
			{
				var date = new Date();
				date.setTime(date.getTime()+(days*24*60*60*1000));
				var expires = "; expires="+date.toGMTString();
			}
			else var expires = "";
			document.cookie = name+"="+value+expires+"; path=/";
		}
		
		function readCookie(name)
		{
			var nameEQ = name + "=";
			var ca = document.cookie.split(';');
			for(var i=0;i < ca.length;i++)
			{
				var c = ca[i];
				while (c.charAt(0)==' ') c = c.substring(1,c.length);
				if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
			}
			return null;
		}
		
		function eraseCookie(name)
		{
			createCookie(name,"",-1);
		}
		
		function overmenu(menu_item)
		{
			var state = 'url(http://www.blitz-art.com/gfx/menubar-hover.png) repeat-x top left';
			document.getElementById(menu_item).style.background=state;
		}
		
		function outmenu(menu_item)
		{
			var state = '';
			document.getElementById(menu_item).style.background=state;
		}
		

		function togglepopup() 
		{
				var state = document.getElementById('popup').style.display;
				
				if (state == 'none')
					{
						document.getElementById('popup').style.display = 'block';
					}
				else 
					{
						document.getElementById('popup').style.display = 'none';
					}
		} 
		
		function showpopup() 
		{
				document.getElementById('popup').style.display = 'block';
		}

		function hidepopup() 
		{
				document.getElementById('popup').style.display = 'none';
		}