/* Author: 

*/
jQuery(document).ready(function() {
	
	var wysokoscproduktow = jQuery('.opis_produktu').height();
	jQuery('.opis_produktu .zdjecie').height(wysokoscproduktow);
	jQuery('#slider').cycle({ 
		fx:      'fade',
		pager:  '#nav_slider'
	});
	
	
	jQuery(window).resize(function() {
	 jQuery('#slider').cycle('destroy'); 
	jQuery('#slider').cycle({ 
		fx:      'fade',
		pager:  '#nav_slider'
	});
	});
	jQuery('.lista_produktow #lista_produktow').scrollingCarousel();
	

	jQuery(".right_hide").hover(
  function () {
    jQuery(this).stop().animate({width:189});
  }, 
  function () {
    jQuery(this).stop().animate({width:26});
  }
);

jQuery("a.icon_ulubione").click(function(e){
	e.preventDefault(); // this will prevent the anchor tag from going the user off to the link
	var bookmarkUrl = this.href;
	var bookmarkTitle = this.title;
 
	if (window.sidebar) { // For Mozilla Firefox Bookmark
		window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
	} else if( window.external || document.all) { // For IE Favorite
		window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
	} else if(window.opera) { // For Opera Browsers
		jQuery("a.jQueryBookmark").attr("href",bookmarkUrl);
		jQuery("a.jQueryBookmark").attr("title",bookmarkTitle);
		jQuery("a.jQueryBookmark").attr("rel","sidebar");
	} else { // for other browsers which does not support
		 alert('Twoja przeglądarka nie obsługuje tej funkcji');
		 return false;
	}
});


});

















