jQuery(document).ready(function(){
	jQuery('#submenu li').hover(function(){
		if(jQuery(this).find('ul')){
			jQuery(this).find('ul').css({display: 'block'});
		}
	}, function(){
		jQuery(this).find('ul').css({display: 'none'});
	})
	/*$('.print').click(function(){
		 window.print();
		 return false;
	});*/
	
	jQuery('#zoom1').click(function(){
		jQuery('#content h3').css({'font-size': '14px'});
		jQuery('#content p').css({'font-size': '9px'});
		return false;
	})
	jQuery('#zoom2').click(function(){
		jQuery('#content h3').css({'font-size': '28px'});
		jQuery('#content p').css({'font-size': '12px'});
		return false;
	})
	
	jQuery('#zoom3').click(function(){
		jQuery('#content h3').css({'font-size': '38px'});
		jQuery('#content p').css({'font-size': '15px'});
		return false;
	})
	
	jQuery('.wyborGdzie').click(function(){
		jQuery(this).parent().parent().parent().find('.szukajW').css({display: 'block'});
		return false;
	})
	
	jQuery('.szukajW a').click(function(){
		//$(this).parent().parent().parent().parent().find('.szukajGdzie').attr('value', $(this).text());
		jQuery(this).parent().parent().parent().parent().find('.szukajGdzie').attr('value', $(this).attr("id"));
		
		jQuery(this).parent().parent().parent().css({display: 'none'});
		return false;
	})
	
	jQuery('.backward a').click(function(){
		history.back();
		return false;
	})
});
