$(document).ready(function(){
    $('div#top').flash({
        src: 'top.swf',
        wmode: 'transparent',
        width: 980,
        height: 128 },
        { version: 8 }
    );
    
    $('div#main_slider').flash({
        src: 'slideshow.swf',
        wmode: 'transparent',
        width: 980,
        height: 310 },
        { version: 8 }
    );
    
    $('li.small_slider').flash({
        src: 'small_slideshow.swf',
        wmode: 'transparent',
        flashvars: { xml_path: 'xml/xmlfile.xml' },
        width: 491,
        height: 113 },
        { version: 8 }
    );
    
   	$("div.technologia_desc").hide();
	$("h2.technologia_title").toggle(function(){
		$(this).next("div.technologia_desc").slideDown(1000);
		$(this).toggleClass("active");
	}, function(){
		$(this).next("div.technologia_desc").slideUp(800);
		$(this).toggleClass("active");
	});
    
     $('form#kontakt_form input, form#kontakt_form textarea, form#zainteresowany_form input, form#zainteresowany_form textarea').blur(function(){
        $(this).removeClass("focus");
        })
            .focus(function() {                
                $(this).addClass("focus")
        });
});
