//Fb
$(document).ready(function()
{
		$("#fb_box").css('padding-left', '55px');$("#fb_box").css('width', '228px');
	
		$("#fb_box").mouseover(function(){$('#fb_box').stop();$('#fb_box').animate({right:"0"}, "medium");});$("#fb_box").mouseout(function(){$('#fb_box').stop();$('#fb_box').animate({right:-240}, "fast");});
	
});


$(document).ready(function(){

      $(".overlay3").hide();
        $(".show_hide").show();
	 
	    $('.show_hide').click(function(){
    $(".overlay3").slideToggle();
	    });
	 
	});

// AKORDEON

$(function() {
	// Hide all the content except the first
	$('.accordian li:odd').hide();
	
	//$(".accordian li").eq(2).addClass("active");
	//$(".accordian li").eq(3).show();

	
	
	// pierwszy link w lewo
	$('.accordian li:first').animate( {
		paddingLeft:"0px"
	} );
	
	
	// dowiazanei do klasy 'event'
	$('.accordian li:even').addClass('even');
	
	
	// pokaz kursor na klasie 'event'
	$('.accordian li:even').css('cursor', 'pointer');
	
	// klikniecie na klasie
	$('.accordian li:even').click( function() {
		// Get the content that needs to be shown
		var cur = $(this).next();
		
		// Get the content that needs to be hidden
		var old = $('.accordian li:odd:visible');
		
		// Make sure the content that needs to be shown 
		// isn't already visible
		if ( cur.is(':visible') )
			return false;
		
		// Hide the old content
		old.slideToggle(500);
		
		// Show the new content
		cur.stop().slideToggle(500);
		
		// Animate (add) the padding in the new link
		$(this).stop().animate( {
			paddingLeft:"30px"
		} );
		
		// Animate (remove) the padding in the old link
		old.prev().stop().animate( {
			paddingLeft:"10px"
		} );
	} );
});


//okno
$(function() {

	// positions for each overlay
	var positions = [
		[20, 400]
	];

	// setup triggers
	$(".button").each(function(i) {

		$(this).overlay({

			// common configuration for each overlay
			oneInstance: false,
			closeOnClick: false,

			// setup custom finish position
			top: positions[i][0],
			left: positions[i][1],

			// use apple effect
			effect: 'apple'

		});
	});
	
	
		$(".button2").each(function(i) {

		$(this).overlay({

			// common configuration for each overlay
			oneInstance: false,
			closeOnClick: false,

			// setup custom finish position
			top: positions[i][0],
			left: positions[i][1],

			// use apple effect
			effect: 'apple'

		});
	});
	
			$(".button3").each(function(i) {

		$(this).overlay({

			// common configuration for each overlay
			oneInstance: false,
			closeOnClick: false,

			// setup custom finish position
			top: positions[i][0],
			left: positions[i][1],

			// use apple effect
			effect: 'apple'

		});
	});

});


