activateMenu = function(nav) {

			/* currentStyle restricts the Javascript to IE only */
				if (document.all && document.getElementById(nav).currentStyle) {  
			        var navroot = document.getElementById(nav);

			        /* Get all the list items within the menu */

			        var lis=navroot.getElementsByTagName("LI");  
			        for (i=0; i<lis.length; i++) {

			           /* If the LI has another menu level */
			            if(lis[i].lastChild.tagName=="UL"){

			                /* assign the function to the LI */
			             	lis[i].onmouseover=function() {	

			                   /* display the inner menu */
			                   this.lastChild.style.display="block";
			                }
			                lis[i].onmouseout=function() {   
			                   this.lastChild.style.display="none";
			                }
			            }
			        }
			    }
			}
			
			
			
					function show(el,x,y)
			{
			
				var mapInfo=$('mapContact');
				
				var elId=el.parentNode.getAttribute('id');
			//	$('lublin').setStyle('display','none');
				
//				if(elId=='p11') woj = 'Tel. +48 081 445 82 38,39<br/>';
				var woj = el.innerHTML;
				mapInfo.getElement('h4').setHTML(woj);
				mapInfo.setStyle('display','block');
				mapInfo.setStyle('left',x);
				mapInfo.setStyle('top',y);
				if(elId=='p11') {
					$('lublin').setStyle('display','block');
					$('outsidelublin').setStyle('display','none');
				}
				else {
					$('lublin').setStyle('display','none');
					$('outsidelublin').setStyle('display','block');
				}
			}
			
			
			function baner()
			{
				if (document.getElementById('special2')){			
				var a = new Fx.Style('special2', 'width', {duration:500});
				a.start(0, 890);
				
				}
				
			}
			
			
			function startIndex(URLIK)
			{
				var dStart=0;
				s=URLIK.split('#')[1];				
				if(s && !isNaN(s)){dStart=s-1};
				
				return dStart;				
			}
			
			
			var start=startIndex(window.location.href)
			function showAcoo(start){
				
							var accordion = new Accordion('h3.atStart', 'div.atStart', {
								opacity: true,
								display: start,
								onActive: function(toggler, element){
									toggler.setStyle('color', '#b0d3e8');
									toggler.setStyle('text-decoration', 'none');
								},

								onBackground: function(toggler, element){
									toggler.setStyle('color', '#b0d3e8');
									toggler.setStyle('text-decoration', 'underline');
								}
							}, $('content'));
			}
			
			

			window.addEvent('domready', function(){
		
				showAcoo(start)
	
				
				
			 activateMenu('nav'); 	
			baner();			  
			var mapa=$('mapa');
			if($defined(mapa)){					
			var el=mapa.getElements('a');		
			for(i=0;i<el.length;i++)
{el[i].addEvent('click',function(event){var e = new Event(event);x=e.client.x;y=e.client.y;show(this,x,y)})};
};


			}); 
			
			
			
	
			
		

		