		//preloaduj obrazki
		//jQuery.preLoadImages("../img/reklama.jpg", "../img/reklama2.jpg", "../img/reklama3.jpg", "../img/reklama4.jpg");        
        
         $(document).ready(function(){
        
		          
		                $("#main_post").capslide({
		                    caption_color	: 'black',
		                    caption_bgcolor	: 'white',
		                    overlay_bgcolor : '#444444',
		                    border			: '',
		                    showcaption	    : true
		                });
		
		                $("#sub_post1").capslide({
		                    caption_color	: 'black',
		                    caption_bgcolor	: 'white',
		                    overlay_bgcolor : '#444444',
		                    border			: '',
		                    showcaption	    : true
		                });
		                
		                $("#sub_post2").capslide({
		                    caption_color	: 'black',
		                    caption_bgcolor	: 'white',
		                    overlay_bgcolor : '#444444',
		                    border			: '',
		                    showcaption	    : true
		                });
		                
		                
		                // --------------
		                // cycle - polecamy
		                // --------------
						var $animacja = $('#adv').cycle({
							speed: 1000,
							timeout: 4000
						});		                
				                
		                
		                // --------------
		                // szukajka
		                // --------------
				        var szukana = $('#szukaj').val();
						if(szukana == 'szukaj w serwisie') {
							
						} else {
						  // document.forms["szukajka"].submit();
						}
		                
		                // ---------------
						// obsługa marquee
						// ---------------
		                $('marquee').marquee('pointer').mouseover(function () {
						  $(this).trigger('stop');
						}).mouseout(function () {
						  $(this).trigger('start');
						}).mousemove(function (event) {
						  if ($(this).data('drag') == true) {
						    this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
						  }
						}).mousedown(function (event) {
						  $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
						}).mouseup(function () {
						  $(this).data('drag', false);
						}); 
						
             		
             		
		      
            
             });
            
            function przenies(where) {            
            	window.location = where;            
            }  
