$(function() {
			$("#manufacturers").simplyScroll({
				autoMode: 'loop',
				speed: 4
			});
			
			$(".boxing").tipTip();
			
			$('.wyprawka-title').toggle(
				function() {
					$(this).next('div.wyprawka-content').slideDown(275);
				},
				function() {
					$(this).next('div.wyprawka-content').slideUp(275);
					}
			);
			
			$('.faq-title').toggle(
				function() {
					$(this).next('p.faq-answer').slideDown(275);
					$(this).parent().nextAll('div.faq-ask').children('p.faq-answer').slideUp(275);
					$(this).parent().prevAll('div.faq-ask').children('p.faq-answer').slideUp(275);
				},
				function() {
					$(this).next('p.faq-answer').slideUp(275);
					}
			);
			
			// prepare the form when the DOM is ready 
			$(document).ready(function() { 
				// bind form using ajaxForm 
				$('#news').ajaxForm({ 
					// target identifies the element(s) to update with the server response 
					target: '#wyniki', 
					// success identifies the function to invoke when the server response 
					// has been received; here we apply a fade-in effect to the new content 
					success: 
					
						function() { 
						$("#news").delay(150).slideUp(100, function() {
							setTimeout($('#wyniki').slideDown(900),400);
						});
						
						
					} 
				}); 
			});
			
			// prepare the form when the DOM is ready 
			$(document).ready(function() { 
				// bind form using ajaxForm 
				$('#mojezamowienie').ajaxForm({ 
					// target identifies the element(s) to update with the server response 
					target: '#zamowienie-content', 
					// success identifies the function to invoke when the server response 
					// has been received; here we apply a fade-in effect to the new content 
					success: 
					
						function() { 
						$("#zamowienie-head").slideUp(800, function() {
							setTimeout($('#zamowienie-content').show(),1000);
						});
						
						
					} 
				}); 
			});
			
			$("#mapa").gMap({ 	controls: false,
                  				scrollwheel: false,
								markers: [{ latitude: 50.020213,
										longitude: 21.979051,
										icon: { image: "img/gpspin.png",
											iconsize: [48, 48],
											iconanchor: [12,46],
											infowindowanchor: [12, 0] }
										}],
								zoom: 15 
			}); 
			
			$(document).ready(function() 
				{ 
					$("#zamowienie-check-table").tablesorter( {sortList: [[0,0]]} ); 
				} 
			); 	  
})
