/*$(function(){
	$('#menu a').click(function() {
	if ($('#submenu').is(":hidden"))	
 	 	$('#submenu').slideDown('slow');
  	else
  		$('#submenu').slideUp('slow');
  	return false;
	});
})  */

$(document).ready(function(){  
$("a.show-panel").click(function(){  
$("#lightbox, #lightbox-panel").fadeIn(300);  
return false;
})  
$("a#close-panel").click(function(){  
$("#lightbox, #lightbox-panel").fadeOut(300);  
return false;
})  
})  

$(document).ready(function(){  
$("a.show-panel2").click(function(){  
$("#lightbox2, #lightbox-panel2").fadeIn(300);
return false;  
})  
$("a#close-panel2").click(function(){  
$("#lightbox2, #lightbox-panel2").fadeOut(300);  
return false;
})  
})  


jQuery(function($) {

			//facebook widget
			$(".facebook").toggle(function(){
				$(".facebook").stop(true, false).animate({right:"-12"},"fast");
				$('.facebook').css('zIndex', 200);
				$('.skype').css('zIndex', 20);
				$(".skype").stop(true, false).animate({right:"-408"},"fast");

			},function(){
					$(".facebook").stop(true, false).animate({right:"-306"},"fast");
					$('.facebook').css('zIndex', 20);
			}
			);
			
			$(window).load(function(){
				$('#fbiframe').attr('src','http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/pages/Wyższa-Szkoła-Ekonomiczno-Humanistyczna-z-siedzib±-w-Bielsku-Białej/198052773544904?ref=ts+&width=292&colorscheme=light&show_faces=false&stream=true&header=false&height=395');
			});
			
		});
		
jQuery(function($) {

			//facebook widget
			$(".skype").toggle(function(){
				$(".skype").stop(true, false).animate({right:"-12"},"fast");
				$('.skype').css('zIndex', 200);
				$(".facebook").stop(true, false).animate({right:"-306"},"fast");
			},function(){
					$(".skype").stop(true, false).animate({right:"-408"},"fast");
					$('.skype').css('zIndex', 20);
			}
			);
			
			});
			
			
			
$(function () {
$('.dropdown').each(function () {
$(this).parent().eq(0).hover(function () {
$('.dropdown:eq(0)', this).show();
}, function () {
$('.dropdown:eq(0)', this).hide();
});
});
});

/*
$(function() {
    $(".newsmainp").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        auto: 8000,
        speed: 800,
    });
});
*/
