function zmien() { 

	$("#1").hover(function() { $(this).addClass("highlight");$("#1 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#1 span").css("color","#7BADD2");});
		$("#2").hover(function() { $(this).addClass("highlight");$("#2 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#2 span").css("color","#7BADD2");});
		$("#3").hover(function() { $(this).addClass("highlight");$("#3 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#3 span").css("color","#7BADD2");});
		$("#4").hover(function() { $(this).addClass("highlight");$("#4 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#4 span").css("color","#7BADD2");});
		$("#5").hover(function() { $(this).addClass("highlight");$("#5 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#5 span").css("color","#7BADD2");});
		$("#6").hover(function() { $(this).addClass("highlight");$("#6 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#6 span").css("color","#7BADD2");});
		$("#7").hover(function() { $(this).addClass("highlight");$("#7 span").css("color","red");
 }, function() { $(this).removeClass("highlight"); $("#7 span").css("color","#7BADD2");});
	
	$("#1").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#2").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#3").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#4").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#5").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#6").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })
	$("#7").click(function(){$("#srodek").load('http://www.alarmsat.com.pl/moduly/oferta.php') })

}
$(document).ready(
	function()
	{
	zmien();
	//$("#srodek").load('http://www.alarmsat.com.pl/moduly/ofirmie.php',function(){zmien()})
	$("#oferta").click(function(){$("#srodek").load('./moduly/oferta.php') })
	$("#ofirmie").click(function(){$("#srodek").load('./moduly/ofirmie.php',function(){zmien()}) })
	$("#pobieranie").click(function(){$("#srodek").load('./moduly/pobieranie.php') })
	$("#kontakt").click(function(){$("#srodek").load('./moduly/kontakt.php') })
	
	}

);


