

function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(document).ready(function(){

$('input#in_szuk').focus(function() {
		
		$('input#in_szuk')[0].value = "";
		
	});
	
$('span#szukaj').click(function() {  
		
		oBj = $('form[name="szukaj"]')[0];
		oBj.submit();
		
		//location.href=('/szukaj/'+$('input#in_szuk')[0].value);
		
		});	


$('img.rek_link').click(function() {  
		
		window.open(this.getAttribute('rel'));
		
		});	
	
});


$(function() {
    setInterval( "slideSwitch()", 5000 );

	$('a.lightbox').lightBox(); // Select all links with lightbox class

});




	
	/*
*/
		