
	var menu_id=0;

	function RestoreColor(element) {
		element.style.backgroundColor='';
		element.style.color='';
	}
	function ChangeColor(element,kolor1,kolor2) {
		element.style.cursor='pointer';
		element.style.backgroundColor=kolor1;
		element.style.color=kolor2;
	}


	function pokaz_menu(id,element) {
		//alert(menu_id)
		if (menu_id>0 && menu_id!=id) {
			document.getElementById('Przycisk_'+menu_id).style.backgroundImage='url(/images/przycisk.jpg)'
			document.getElementById('Przycisk_'+menu_id).style.color=''
		}
		//alert(tmp)
		menu_id=id;
		//alert(""+menu_id);
		for (var x=0;x<=6;x++) {
			if (x==id)
				document.getElementById('menu_'+x).style.display='block';
			else
				document.getElementById('menu_'+x).style.display='none';
		}
		window.status="pokaz "+menu_id;
	}

	/*function ukryj_menu() {
		for (var x=1;x<=6;x++) {
			document.getElementById('menu_'+x).style.display='none';
		}
		document.getElementById('menu_0').style.display='block';
		aktualne_podmenu=0;
		window.status="ukryj "+aktualne_podmenu;
	}*/

	function podswietl(x) {
		document.getElementById('Przycisk_'+x).style.backgroundImage='url(/images/przycisk_a.jpg)'
		document.getElementById('Przycisk_'+x).style.color='#2952a0'
		document.getElementById('Przycisk_'+x).style.cursor='pointer'
	}

	function usun_podswietlenie(x) {
		//alert (x+" "+aktulane_podmenu)
		if (menu_id!=x) {
			document.getElementById('Przycisk_'+x).style.backgroundImage='url(/images/przycisk.jpg)'
			document.getElementById('Przycisk_'+x).style.color=''
		}
	}
	/***********************************************
	* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
	***********************************************/

	var baseopacity=30

	function slowhigh(which2){
		cleartimer()
		imgobj=which2
		browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
		instantset(baseopacity)
		highlighting=setInterval("gradualfade(imgobj)",2)
	}

	function slowlow(which2){
		cleartimer()
		instantset(100)
	}

	function instantset(degree){
	if (browserdetect=="mozilla")
		imgobj.style.MozOpacity=degree/100
	else if (browserdetect=="ie")
		imgobj.filters.alpha.opacity=degree
	}

	function cleartimer(){
		if (window.highlighting) clearInterval(highlighting)
	}

	function gradualfade(cur2){
	if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
		cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
	else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=33
	else if (window.highlighting)
		clearInterval(highlighting)
	}
