jQuery.noConflict();
jQuery(document).ready(function() {
	
	// Expand Panel
	jQuery("#open").click(function(){
		jQuery("div#log_panel").slideDown("slow");
	
	});	
	
	// Collapse Panel
jQuery("#close").click(function(){
		jQuery("div#log_panel").slideUp("slow");	
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	jQuery("#toggle a").click(function () {
		jQuery("#toggle a").toggle();
	});
	
  jQuery("ul#lc_prztyki li").children("p").hover(function() 
  { jQuery(this).addClass("lc_prztyk_on"); }, function() { jQuery(this).removeClass("lc_prztyk_on"); });

  jQuery("ul#lc_prztyki li").children("p").click( 
  function() {jQuery(this).addClass("lc_prztyk_onn");
  jQuery("ul#lc_prztyki li p").not(this).removeClass("lc_prztyk_onn");
  });
  
  jQuery('a[href*=#]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=jQuery(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // animate to target and set the hash to the window.location after the animation
      jQuery('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});

});