
$(document).ready(function()
	{
	$(".menu_1 img").bind("mouseover",
	function(e)
		{
		buff=$(this).attr("alt");
		if(buff=='start')
			$(this).attr("src","obr/men1.png");
		if(buff=='mapa strony')
			$(this).attr("src","obr/men2.png");
		if(buff=='kontakt')
			$(this).attr("src","obr/men3.png");
		});
	
	$(".menu_1 img").bind("mouseout",
	function(e)
		{
		buff=$(this).attr("alt");
		if(buff=='start')
			$(this).attr("src","obr/men1b.png");
		if(buff=='mapa strony')
			$(this).attr("src","obr/men2b.png");
		if(buff=='kontakt')
			$(this).attr("src","obr/men3b.png");
		});
			
	$(".it4 img").bind("mouseover",
			function(e)
				{
				$(this).attr("src","obr/logo_milenium1.jpg");
				});		
				
	$(".it4 img").bind("mouseout",
			function(e)
				{
				$(this).attr("src","obr/logo_milenium2.jpg");
				});	

$("#animacja img").bind("mouseover",
	function(e)
		{
		buff=$(this).attr("alt");
		
		if(buff=='sprzedaz')
			$(this).attr("src","obr/sell.png");
			
		if(buff=='wynajem')
			$(this).attr("src","obr/rent.png");
			
		if(buff=='przyjaciel')
			$(this).attr("src","obr/addfriend.png");
		});

$("#animacja img").bind("mouseout",
	function(e)
		{
		buff=$(this).attr("alt");
		
		if(buff=='sprzedaz')
			$(this).attr("src","obr/sell2.png");
			
		if(buff=='wynajem')
			$(this).attr("src","obr/rent2.png");
			
		if(buff=='przyjaciel')
			$(this).attr("src","obr/addfriend2.png");
		});
});		


function ukryj(id)
{
var obrazek=document.getElementById(id);
obrazek.style.visibility = 'hidden';
obrazek.style.Height=0+"px";
obrazek.style.Width=0+"px";
}

function show_map(id,klucz,id2)
{
	var okno=document.getElementById(id);
	okno.style.visibility = 'visible'
	var wei=document.documentElement.scrollWidth;
	if(document.documentElement.scrollHeight>document.documentElement.clientHeight)
			var hei=document.documentElement.scrollHeight;
			else
			var hei=document.documentElement.clientHeight;
		okno.style.width=wei+"px";
		okno.style.height=hei+"px";
	var tresc=document.getElementById(klucz);
	advAJAX.get({
    url: "mapa.php",
		parameters : {"id" : id2  },
		onLoading : function(obj) {tresc.innerHTML='<h3>Å?adowanie strony...</h3>' },
    onSuccess : function(obj) {tresc.innerHTML=obj.responseText; }
		});
}


