/* 
   Metody jQuery na potrzeby menu dynamicznego
*/

var dynamicNavigation = new Object();

dynamicNavigation.init = function() {
	$("#dynamicNavigation > ul > li").hover(
		function() {
			$(this).children("a").css('background','#788CC7');
			$(this).children(".m1").show()
			var divWidth = $(this).children(".m1").width()
			$(this).children("div.m1").children("ul").children('li').css('width',divWidth+'px')
		},
		function() {
			$(this).not(".active").children("a").css('background','#ff6000');
			$(this).children(".m1").hide()
		}
	).css('cursor', 'pointer');
};