startList = function() 
{ 
	if (document.all&&document.getElementById) 
	{ 
		navRoot = document.getElementById("nav"); 
		for (i=0; i<navRoot.childNodes.length; i++) 
		{ 
			node = navRoot.childNodes[i]; 
			if (node.nodeName=="LI") 
			{ 
				node.onmouseover=function() 
				{ 
					this.className+=" over"; 
				}; 
				node.onmouseout=function() 
				{ 
					this.className=this.className.replace(" over", ""); 
				}
			}
		}
	}
	//alert(screen.width);
	var ht=document.getElementById("html");
	var d1=document.getElementById("d1");
	var t1=document.getElementById("t1");
	var s1=document.getElementById("s1");
	if (screen.width<'1004')
	{
		ht.style.width="1004px";
	
	}
	else
	{
		ht.style.width="0px";
		ht.style.width="100%";
		
	}
	if (screen.width>'1200')
	{
		d1.style.width="1260px";
		if (t1)
		{
			t1.style.paddingLeft="100px";
		}
		if(s1)
		{
			s1.style.paddingLeft="230px";
		}
		
			
	}
	else
	{
		d1.style.width="1004px";
		if(t1)
		{
			t1.style.paddingLeft="0px";
		}
		if(s1)
		{
			s1.style.paddingLeft="130px";
		}
		
	}
	if(screen.width>'1300')
	{
		var tl=document.getElementById("tl");
		tl.style.width="400px";
	}
	if(screen.width>'1400')
	{
		var tl=document.getElementById("tl");
		tl.style.width="500px";
	}
	

}
window.onload=startList;

function menuon(id)
{
	var menu=document.getElementById('menu'+id);
	var img=document.getElementById('img'+id);
	menu.className='m_ali';
	img.src='themes/standard/images/menu_a.gif';
}
function menuoff(id)
{
	var menu=document.getElementById('menu'+id);
	var img=document.getElementById('img'+id);
	menu.className='m_li';
	img.src='themes/standard/images/menu_na.gif';
}

function tabon(id1,id2,id3)
{
	var id='1';
	var getid;
	var get;
	for (i='1';i<=id2;i++)
	{
		for (ii='1';ii<=id3*id2;ii++)
		{
			getid='tr'+id1+'w'+i+'w'+ii;
			get=document.getElementById(getid);
			if(get)
			{
				get.className="podswietlony";
			}
		}
			//alert('aaaaaaa');
		
	}
}
function taboff(id1,id2,id3,clas)
{
	var id='1';
	var getid;
	var get;
	for (i='1';i<=id2;i++)
	{
		for (ii='1';ii<=id3*id2;ii++)
		{
			getid='tr'+id1+'w'+i+'w'+ii;
			get=document.getElementById(getid);
			if(get)
			{
				get.className=clas;
			}
		
		}
		//alert('aaaaaaa');
	}
}